/* Tokeniser GEO Knowledge Hub — page-level styles. Tokens only. */
:root {
  --mint-50: #e8fff2;
  --mint-100: #c9fede;
  --mint-300: #77feb3;
  --mint-400: #54f9a1;
  --mint-500: #29f590;
  --mint-900: #009952;
  --tk-neutral-100: #e8eaef;
  --tk-neutral-300: #a2a7b7;
  --tk-neutral-400: #8d94a6;
  --tk-neutral-500: #798197;
  --tk-neutral-600: #6b7285;
  --tk-neutral-700: #595e6e;
  --tk-neutral-800: #484c58;
  --tk-neutral-900: #343740;
  --tk-slate-50: #f8fafc;
  --tk-slate-100: #f1f5f9;
  --white: #ffffff;
  --border-1: #e2e8f0;
  --border-2: #cbd5e1;
  --background: #ffffff;
  --foreground: var(--tk-neutral-900);
  --font-family-text: 'Montserrat', sans-serif;
  --font-family-numerical: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  --radius: 10px;
  --rounded-sm: 4px;
  --rounded-2xl: 16px;
  --ease: ease-out;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body.kh-page {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-family-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

.kh-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--tk-neutral-100);
  color: var(--tk-neutral-700);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
* {
  box-sizing: border-box;
}
a {
  color: var(--tk-neutral-900);
  text-decoration: none;
}
a:hover {
  color: var(--mint-900);
}
.num {
  font-family: var(--font-family-numerical, 'JetBrains Mono', monospace);
  font-variant-numeric: tabular-nums;
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.eyebrow {
  font-size: 12px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tk-neutral-500);
}

/* prototype chrome offsets — only when .proto bar is present (staging) */
html:has(.proto) .toc,
html:has(.proto) .pillar-side {
  top: calc(var(--kh-proto-height, 52px) + 76px + 52px);
}

/* site header */
.site-head {
  position: sticky;
  top: 52px;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border-1);
}
.site-head-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--tk-neutral-800);
  cursor: default;
  height: 76px;
}
.nav-item[data-active='true'] {
  color: var(--tk-neutral-900);
}
.nav-item[data-active='true']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--mint-400);
}
.nav-menu {
  position: absolute;
  top: 70px;
  left: -16px;
  min-width: 248px;
  background: var(--white);
  border: 1px solid var(--border-1);
  border-radius: var(--radius, 10px);
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(0, 0, 0, 0.1));
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.nav-item:hover .nav-menu {
  display: flex;
}
.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--rounded-sm, 4px);
  font-size: 14px;
  font-weight: 500;
  color: var(--tk-neutral-700);
}
.nav-menu a:hover {
  background: var(--mint-50);
  color: var(--tk-neutral-900);
}
.nav-menu a[data-current='true'] {
  background: var(--mint-100);
  color: var(--tk-neutral-900);
}
.head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.head-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--tk-neutral-700);
}

/* article layout */
.article {
  padding-top: 56px;
}
.art-grid {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  min-width: 0;
}
.toc {
  position: sticky;
  /* Header stack without staging proto bar (76px nav + 52px page chrome). */
  top: 128px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 8px;
}
.toc-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tk-neutral-500);
}
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc-list a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 19px;
  color: var(--tk-neutral-600);
  text-wrap: pretty;
}
.toc-list a:hover {
  color: var(--tk-neutral-900);
}
.toc-list a[data-current='true'] {
  border-left-color: var(--mint-500);
  color: var(--tk-neutral-900);
  font-weight: 600;
}
.col {
  max-width: 760px;
  min-width: 0;
}

/* article head */
.art-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.art-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
h1.art-h1 {
  font-family: var(--font-family-text, 'Montserrat', sans-serif);
  font-size: 48px;
  line-height: 52px;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 0;
  color: var(--tk-neutral-900);
  text-wrap: pretty;
}
.art-meta {
  font-size: 18px;
  line-height: 28px;
  color: var(--tk-neutral-600);
  margin: 0;
  max-width: 66ch;
  text-wrap: pretty;
}

/* generic section rhythm */
.sec {
  margin: 0 0 56px;
}
h2.sec-h2 {
  font-size: 30px;
  line-height: 34px;
  font-weight: 500;
  margin: 0 0 20px;
  color: var(--tk-neutral-900);
  text-wrap: pretty;
}
h3.sub-h3 {
  font-size: 24px;
  line-height: 30px;
  font-weight: 500;
  margin: 44px 0 14px;
  color: var(--tk-neutral-900);
  text-wrap: pretty;
}
.sec p,
.body-p {
  font-size: 17px;
  line-height: 29px;
  color: var(--tk-neutral-800);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.body-p strong {
  font-weight: 600;
}

/* answer block */
.answer {
  border: 1px solid var(--mint-300);
  background: linear-gradient(180deg, var(--mint-50) 0%, var(--white) 100%);
  border-radius: var(--rounded-2xl, 16px);
  padding: 32px 36px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.answer-tag {
  display: flex;
  align-items: center;
  gap: 10px;
}
.answer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-500);
}
.answer h2 {
  font-size: 12px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-900);
  margin: 0;
}
.answer p {
  font-size: 20px;
  line-height: 32px;
  color: var(--tk-neutral-900);
  margin: 0;
  text-wrap: pretty;
}

/* tldr */
.tldr {
  border: 1px solid var(--border-1);
  border-radius: var(--radius, 10px);
  padding: 28px 32px;
}
.tldr h2 {
  font-size: 12px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tk-neutral-500);
  margin: 0 0 18px;
}
.tldr ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tldr li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 16px;
  line-height: 26px;
  color: var(--tk-neutral-800);
  text-wrap: pretty;
}
.tldr li::before {
  content: '';
  width: 8px;
  height: 8px;
  margin: 9px 0 0 6px;
  border-radius: 2px;
  background: var(--mint-400);
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  margin: 32px 0;
}
.stat {
  padding: 26px 24px 26px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat + .stat {
  border-left: 1px solid var(--border-1);
  padding-left: 24px;
}
.stat-v {
  font-family: var(--font-family-numerical, monospace);
  font-variant-numeric: tabular-nums;
  font-size: 34px;
  line-height: 38px;
  font-weight: 500;
  color: var(--tk-neutral-900);
}
.stat-l {
  font-size: 14px;
  line-height: 20px;
  color: var(--tk-neutral-600);
}

/* comparison table */
.cmp {
  border: 1px solid var(--border-1);
  border-radius: var(--radius, 10px);
  margin: 28px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
table.cmp-t {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}
.cmp-t th,
.cmp-t td {
  text-align: left;
  vertical-align: top;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 24px;
  color: var(--tk-neutral-800);
  border-bottom: 1px solid var(--border-1);
}
.cmp-t tr:last-child td {
  border-bottom: 0;
}
.cmp-t thead th {
  background: var(--tk-slate-50);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tk-neutral-600);
  padding: 14px 20px;
}
.cmp-t thead th:last-child {
  background: var(--mint-50);
  color: var(--mint-900);
}
.cmp-t td:last-child {
  background: color-mix(in oklab, var(--mint-50) 55%, var(--white));
}
.cmp-t th[scope='row'] {
  width: 22%;
  font-weight: 600;
  color: var(--tk-neutral-900);
  background: var(--white);
}
.cmp-t td:last-child strong {
  font-weight: 600;
  color: var(--tk-neutral-900);
}

/* stages */
.stages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
}
.stage {
  border: 1px solid var(--border-1);
  border-radius: var(--radius, 10px);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  background: var(--white);
}
.stage-n {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mint-400);
  color: var(--tk-neutral-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-numerical, monospace);
  font-size: 16px;
  font-weight: 500;
}
.stage h3 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
  margin: 10px 0 14px;
  color: var(--tk-neutral-900);
}
.stage ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stage li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 25px;
  color: var(--tk-neutral-700);
  text-wrap: pretty;
}
.stage li svg {
  margin-top: 4px;
  color: var(--mint-900);
}

/* definition */
.define {
  border: 1px solid var(--border-1);
  background: var(--tk-slate-50);
  border-radius: var(--radius, 10px);
  padding: 22px 26px;
  margin: 26px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.define dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--tk-neutral-900);
}
.define dd {
  margin: 0;
  font-size: 15px;
  line-height: 25px;
  color: var(--tk-neutral-700);
}

/* figure */
.figure {
  margin: 30px 0;
}
.figure-frame {
  border: 1px solid var(--border-1);
  border-radius: var(--radius, 10px);
  background: var(--tk-slate-100);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.figure-frame--empty {
  align-items: flex-start;
  justify-content: flex-start;
}
.figure-ph {
  padding: 18px 20px;
  font-size: 14px;
  line-height: 20px;
  color: var(--tk-neutral-600);
}
.figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 20px;
  color: var(--tk-neutral-500);
}

/* faq */
.faq {
  border-top: 1px solid var(--border-2);
}
.faq-row {
  border-bottom: 1px solid var(--border-1);
}
.faq-q {
  appearance: none;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.faq-q h3 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  margin: 0;
  color: var(--tk-neutral-900);
  text-wrap: pretty;
}
.faq-ico {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tk-neutral-700);
  transition: background 140ms var(--ease, ease-out);
}
.faq-q[aria-expanded='true'] .faq-ico {
  background: var(--mint-400);
  border-color: var(--mint-400);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 220ms var(--ease, ease-out);
}
/* Open first answer without waiting for hub.js (matches kit inline open height). */
.faq-q[aria-expanded='true'] + .faq-a {
  max-height: 800px;
}
.faq-a p {
  font-size: 16px;
  line-height: 27px;
  color: var(--tk-neutral-700);
  margin: 0 0 22px;
  max-width: 68ch;
  padding-right: 52px;
  text-wrap: pretty;
}

/* sources */
.sources {
  list-style: none;
  counter-reset: src;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sources li {
  counter-increment: src;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  font-size: 14px;
  line-height: 23px;
  color: var(--tk-neutral-700);
}
.sources li::before {
  content: '[' counter(src) ']';
  font-family: var(--font-family-numerical, monospace);
  font-size: 12px;
  color: var(--tk-neutral-500);
  padding-top: 2px;
}
.sources cite {
  font-style: normal;
  color: var(--tk-neutral-900);
  font-weight: 500;
}

/* related */
.related {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-2);
}
.related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border-1);
  font-size: 17px;
  font-weight: 500;
  color: var(--tk-neutral-800);
  transition: padding-left 140ms var(--ease, ease-out);
}
.related a:hover {
  padding-left: 10px;
  color: var(--tk-neutral-900);
  background: var(--mint-50);
}
.related span.rel-pillar {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tk-neutral-400);
  font-weight: 600;
  white-space: nowrap;
}

/* cta */
.cta {
  background: var(--tk-neutral-900);
  color: var(--white);
  border-radius: var(--rounded-2xl, 16px);
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 56px 0;
}
.cta h2 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 500;
  margin: 0;
  color: var(--white);
  max-width: 24ch;
  text-wrap: pretty;
}
.cta p {
  font-size: 16px;
  line-height: 26px;
  color: var(--tk-neutral-300);
  margin: 0;
  max-width: 60ch;
}
.cta-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* hub index */
.hub-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  color: var(--white);
  background: var(--tk-neutral-900);
  /* Isolate so shade mix-blend-mode cannot blend CTAs into the white section below. */
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  border-bottom: 0;
}
.hub-hero__bg,
.hub-hero__shade,
.hub-hero__shade-2 {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hub-hero__bg {
  background: url('/assets/knowledge-hub/hero.webp') 50% 40% / cover no-repeat;
  filter: grayscale(1) contrast(1.14) brightness(0.88);
}
.hub-hero__shade {
  background: linear-gradient(
    90deg,
    rgba(52, 55, 64, 0.97) 0%,
    rgba(52, 55, 64, 0.9) 38%,
    rgba(52, 55, 64, 0.72) 68%,
    rgba(52, 55, 64, 0.55) 100%
  );
  mix-blend-mode: multiply;
}
.hub-hero__shade-2 {
  background: linear-gradient(
    90deg,
    rgba(52, 55, 64, 0.55) 0%,
    rgba(52, 55, 64, 0.28) 55%,
    rgba(52, 55, 64, 0.18) 100%
  );
}
.hub-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 64px;
  padding-bottom: 56px;
}
.hub-hero .eyebrow {
  color: #a2ffc8;
}
.hub-hero h1 {
  font-size: 48px;
  line-height: 52px;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 16px 0 16px;
  max-width: 20ch;
  color: var(--white);
}
.hub-hero p {
  font-size: 18px;
  line-height: 29px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 62ch;
  margin: 0;
}
.hub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  min-width: 0;
  width: 100%;
}
.hub-hero__actions .h1b-btn {
  box-sizing: border-box;
  max-width: 100%;
}
.hub-hero__actions .h1b-btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}
.hub-proof {
  background: var(--white);
  border-bottom: 1px solid var(--border-1);
}
.hub-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0;
  max-width: none;
  padding-block: 28px;
}
.hub-stats .stat {
  padding: 0;
  border: 0;
}
.hub-stats .stat + .stat {
  border-left: 1px solid var(--border-1);
  padding-left: 40px;
}
.pillar {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 64px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-1);
  align-items: start;
}
.pillar-side {
  position: sticky;
  /* Match .toc — proto height is added only via html:has(.proto). */
  top: 128px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pillar-side h2 {
  font-size: 24px;
  line-height: 28px;
  font-weight: 500;
  margin: 0;
}
.pillar-side p {
  font-size: 15px;
  line-height: 24px;
  color: var(--tk-neutral-600);
  margin: 0;
}
.pillar-count {
  font-family: var(--font-family-numerical, monospace);
  font-size: 12px;
  color: var(--tk-neutral-500);
  letter-spacing: 0.06em;
}
.qlist {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-1);
}
.qrow {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 6px;
  border-bottom: 1px solid var(--border-1);
  transition: background 140ms var(--ease, ease-out);
}
.qrow:hover {
  background: var(--mint-50);
}
.qrow-n {
  font-family: var(--font-family-numerical, monospace);
  font-size: 12px;
  color: var(--tk-neutral-400);
}
.qrow-q {
  font-size: 17px;
  line-height: 25px;
  font-weight: 500;
  color: var(--tk-neutral-900);
  text-wrap: pretty;
}
.qrow[data-ready='true'] .qrow-q {
  color: var(--tk-neutral-900);
}
.qrow-intent {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tk-neutral-400);
}

/* footer */
.site-foot {
  background: var(--tk-neutral-900);
  color: var(--tk-neutral-300);
  margin-top: 96px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
}
.foot-grid p {
  font-size: 14px;
  line-height: 23px;
  color: var(--tk-neutral-400);
  margin: 16px 0 0;
  max-width: 52ch;
}
.foot-col h3 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tk-neutral-500);
  margin: 0 0 16px;
  font-weight: 600;
}
.foot-col a {
  display: block;
  font-size: 14px;
  line-height: 32px;
  color: var(--tk-neutral-300);
}
.foot-col a:hover {
  color: var(--mint-400);
}
.foot-rule {
  border-top: 1px solid var(--tk-neutral-800);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--tk-neutral-500);
}

/* kit page */
.kit-head {
  padding-top: 56px;
  padding-bottom: 40px;
}
.kit-head h1 {
  font-size: 48px;
  line-height: 52px;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 0 0 16px;
}
.kit-head p {
  font-size: 18px;
  line-height: 29px;
  color: var(--tk-neutral-600);
  max-width: 64ch;
  margin: 0;
}
.kit-sec {
  padding: 40px 0;
  border-top: 1px solid var(--border-1);
}
.kit-sec > header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.kit-sec h2 {
  font-size: 24px;
  line-height: 28px;
  font-weight: 500;
  margin: 0;
}
.kit-sec header p {
  font-size: 15px;
  line-height: 24px;
  color: var(--tk-neutral-600);
  margin: 0;
  max-width: 70ch;
}
.kit-demo {
  max-width: 820px;
  min-width: 0;
}
.qrow--kit-demo {
  cursor: default;
  grid-template-columns: 28px minmax(0, 1fr);
}
.qrow--kit-demo .qrow-detail {
  grid-column: 1/-1;
  padding-left: 40px;
  font-size: 14px;
  line-height: 22px;
  color: var(--tk-neutral-600);
}
@media (min-width: 681px) {
  .qrow--kit-demo {
    grid-template-columns: 32px 200px minmax(0, 1fr);
  }
  .qrow--kit-demo .qrow-detail {
    grid-column: auto;
    padding-left: 0;
  }
}
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  max-width: 900px;
}
.sw {
  border: 1px solid var(--border-1);
  border-radius: var(--rounded-lg, 8px);
  overflow: hidden;
}
.sw-chip {
  height: 56px;
}
.sw-meta {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sw-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--tk-neutral-800);
}
.sw-val {
  font-family: var(--font-family-numerical, monospace);
  font-size: 11px;
  color: var(--tk-neutral-500);
}
.type-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-1);
  align-items: baseline;
}
.type-row code {
  font-family: var(--font-family-numerical, monospace);
  font-size: 12px;
  color: var(--tk-neutral-500);
}
.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
}
.rules li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 25px;
  color: var(--tk-neutral-700);
}
.rules li svg {
  margin-top: 4px;
  color: var(--mint-900);
}
code.inline {
  font-family: var(--font-family-numerical, monospace);
  font-size: 13px;
  background: var(--tk-slate-100);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--tk-neutral-800);
}

@media (max-width: 1100px) {
  .art-grid,
  .pillar {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .toc,
  .pillar-side {
    position: static;
  }
  .nav {
    display: none;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  h1.art-h1,
  .hub-hero h1,
  .kit-head h1 {
    font-size: 34px;
    line-height: 38px;
    letter-spacing: -0.5px;
  }
  .art-meta {
    font-size: 16px;
    line-height: 26px;
  }
  .sec p,
  .body-p {
    font-size: 16px;
    line-height: 27px;
  }
  .stats,
  .hub-stats {
    grid-template-columns: 1fr;
  }
  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--border-1);
    padding-left: 0;
  }
  /* Match desktop .hub-stats .stat + .stat specificity so left border/pad clear. */
  .hub-stats .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--border-1);
    padding-left: 0;
    padding-top: 20px;
  }
  .hub-hero__shade {
    /* Match product heroes: vertical darkening on mobile for CTA contrast. */
    background: linear-gradient(
      180deg,
      rgba(52, 55, 64, 0.82) 0%,
      rgba(52, 55, 64, 0.9) 55%,
      rgba(52, 55, 64, 0.96) 100%
    );
  }
  .hub-hero__shade-2 {
    background: linear-gradient(
      180deg,
      rgba(52, 55, 64, 0.3) 0%,
      rgba(52, 55, 64, 0.42) 100%
    );
  }
  .hub-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 22px;
  }
  .hub-hero__actions .h1b-btn {
    width: 100%;
    justify-content: center;
  }
  .hub-hero__actions .h1b-btn--ghost {
    /* Match product-page ghost CTAs */
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    backdrop-filter: none;
  }
  .answer {
    padding: 24px;
  }
  .answer p {
    font-size: 17px;
    line-height: 28px;
  }
  .cta {
    padding: 32px 24px;
  }
  /* Horizontal gutters only — do not zero vertical padding on .wrap.hub-hero__inner */
  .wrap,
  .site-head-in {
    padding-left: 20px;
    padding-right: 20px;
  }
  /* After .wrap so hero block padding wins (same specificity otherwise). */
  .wrap.hub-hero__inner {
    padding-top: 40px;
    padding-bottom: 88px;
  }
  .qrow {
    /* Keep the trailing meta/arrow column so the chevron stays right when
       .qrow-intent / badges are hidden — still three grid children. */
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 12px;
  }
  /* Kit demo rows are number + label + spanning detail — restore 2 cols. */
  .qrow--kit-demo {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .qrow-intent,
  .qrow .kh-badge {
    display: none;
  }
  .cmp-t th,
  .cmp-t td {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 22px;
  }
  .cmp-t thead th {
    padding: 12px 16px;
  }
  table.cmp-t {
    min-width: 480px;
  }
  .type-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .faq-a p {
    padding-right: 0;
  }
  .related a {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }
  .related span.rel-pillar {
    white-space: normal;
  }
  .stage {
    padding: 20px 18px;
    gap: 14px;
  }
}
