/*
  Raw Kettlebell — noir / argent / blanc (no webfonts).
*/

:root {
  --rk-bg: #020202;
  --rk-surface: #0a0a0b;
  --rk-elevated: #101012;
  --rk-text: #f4f4f2;
  --rk-muted: #8f959e;
  --rk-line: rgba(255, 255, 255, 0.07);
  --rk-accent: #e8eaef;
  --rk-accent-mid: #9ea4ae;
  --rk-accent-soft: rgba(255, 255, 255, 0.12);
  --rk-radius: 1px;
  --rk-max: 72rem;
  --rk-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rk-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--rk-bg);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(255, 255, 255, 0.04), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 255, 255, 0.02), transparent 50%);
  color: var(--rk-text);
  font-family: var(--rk-font);
  font-size: 1.05rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

a {
  color: var(--rk-text);
  text-decoration-color: var(--rk-accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.site-header,
.site-footer {
  border-color: var(--rk-line);
  border-style: solid;
  border-width: 0;
}

.site-header {
  border-bottom-width: 1px;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  backdrop-filter: blur(12px);
  background: rgba(8, 8, 9, 0.82);
}

.site-footer {
  background: var(--rk-surface);
  border-top-width: 1px;
  margin-top: 4rem;
  padding: 2rem clamp(1rem, 3vw, 2rem);
  color: var(--rk-muted);
  font-size: 0.9rem;
}

.site-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-title a {
  text-decoration: none;
  color: var(--rk-text);
}

.site-tagline {
  margin: 0.35rem 0 0;
  color: var(--rk-muted);
  font-size: 0.85rem;
}

main.site-main {
  max-width: var(--rk-max);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

/* Headings */
.entry-header h1,
h1.wp-block-heading {
  font-family: var(--rk-font);
  font-weight: 600;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rk-accent-soft);
}

h2,
h2.wp-block-heading {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: 0.45rem;
  background: linear-gradient(90deg, var(--rk-accent), transparent);
}

h3,
h3.wp-block-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: #e6e6e6;
}

/* Prose */
.entry-content p,
.wp-block-post-content p {
  margin: 0 0 1rem;
  color: var(--rk-text);
}

.entry-content ul,
.entry-content ol,
.wp-block-post-content ul,
.wp-block-post-content ol {
  margin: 0 0 1.25rem 1.2rem;
  padding: 0;
}

.entry-content li,
.wp-block-post-content li {
  margin-bottom: 0.35rem;
}

.entry-content blockquote,
.wp-block-post-content blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 0 0.75rem 1rem;
  border-left: 3px solid var(--rk-accent);
  background: var(--rk-elevated);
  color: var(--rk-muted);
}

/* Tables — “spec sheet” look */
.entry-content table,
.wp-block-post-content table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  background: var(--rk-surface);
}

.entry-content th,
.entry-content td,
.wp-block-post-content th,
.wp-block-post-content td,
.wp-block-table th,
.wp-block-table td {
  border: 1px solid var(--rk-accent-soft);
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.entry-content thead th,
.wp-block-table thead th {
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border-color: var(--rk-accent);
  background: #121212;
}

.entry-content tbody tr:nth-child(even) td,
.wp-block-table tbody tr:nth-child(even) td {
  background: #0c0c0c;
}

/* Code */
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

pre {
  background: var(--rk-elevated);
  border: 1px solid var(--rk-line);
  padding: 1rem;
  overflow-x: auto;
  border-radius: var(--rk-radius);
}

/* Images */
.entry-content img,
.wp-block-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--rk-radius);
}

/* Archives / lists */
.posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.posts-list li {
  border-bottom: 1px solid var(--rk-line);
  padding: 1.25rem 0;
}

.posts-list a {
  text-decoration: none;
  font-weight: 600;
}

.post-meta {
  color: var(--rk-muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

/* Utility */
.rk-muted {
  color: var(--rk-muted);
}

/* Appended block from scripts/internal_linking.py */
section.rk-internal-related {
  margin-top: 2.75rem;
  padding: 1.25rem 1.35rem;
  background: var(--rk-elevated);
  border: 1px solid var(--rk-accent-soft);
  border-radius: var(--rk-radius);
}

section.rk-internal-related h2 {
  margin-top: 0;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

section.rk-internal-related ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

section.rk-internal-related a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--rk-accent-soft);
}

/* --- Accessibility --- */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rk-skip-link:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 99999;
  padding: 0.5rem 1rem;
  background: var(--rk-elevated);
  color: var(--rk-text);
  border: 1px solid var(--rk-accent-soft);
  clip: auto !important;
  width: auto !important;
  height: auto !important;
}

/* --- Header / nav --- */
.rk-header-inner {
  max-width: var(--rk-max);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.rk-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rk-nav-list a {
  text-decoration: none;
  color: var(--rk-muted);
  border-bottom: 1px solid transparent;
}

.rk-nav-wl {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--rk-muted);
  border-bottom: 1px solid transparent;
}

.rk-nav-wl:hover {
  color: #fff;
  border-bottom-color: var(--rk-accent-soft);
}

/* --- Wiki hub --- */
.rk-wiki-main {
  padding-bottom: 3rem;
}

.rk-wiki-hero {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rk-line);
}

.rk-wiki-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rk-accent);
}

.rk-wiki-hero h1 {
  margin: 0 0 1rem;
  border-bottom: none;
  padding-bottom: 0;
}

.rk-wiki-lead {
  margin: 0 0 1.5rem;
  max-width: 52ch;
  color: var(--rk-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.rk-wiki-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.rk-btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--rk-radius);
  border: 1px solid var(--rk-line);
}

.rk-btn-primary {
  background: var(--rk-accent);
  color: var(--rk-bg);
  border-color: var(--rk-accent);
}

.rk-btn-primary:hover {
  color: var(--rk-bg);
  filter: brightness(1.05);
}

.rk-btn-ghost {
  background: transparent;
  color: var(--rk-text);
  border-color: var(--rk-accent-soft);
}

.rk-btn-ghost:hover {
  border-color: var(--rk-accent);
  color: #fff;
}

.rk-wiki-h2 {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 2.5rem 0 1rem;
  color: #fff;
}

.rk-wiki-h2::after {
  display: none;
}

/* Search */
.rk-wiki-search {
  margin-bottom: 2.5rem;
}

.rk-wiki-search--inline {
  margin: 1rem 0 0;
}

.rk-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.rk-search-field {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--rk-line);
  background: var(--rk-surface);
  color: var(--rk-text);
  border-radius: var(--rk-radius);
}

.rk-search-field:focus {
  outline: none;
  border-color: var(--rk-accent-soft);
  box-shadow: 0 0 0 1px var(--rk-accent-soft);
}

.rk-search-submit {
  padding: 0.75rem 1.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--rk-accent);
  background: transparent;
  color: var(--rk-accent);
  cursor: pointer;
  border-radius: var(--rk-radius);
}

.rk-search-submit:hover {
  background: var(--rk-accent);
  color: var(--rk-bg);
}

/* Cluster chips */
.rk-cluster-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rk-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  text-decoration: none;
  border: 1px solid var(--rk-line);
  border-radius: 999px;
  color: var(--rk-muted);
  background: var(--rk-surface);
}

.rk-chip:hover {
  border-color: var(--rk-accent-soft);
  color: #fff;
}

.rk-cluster-wall--compact {
  margin-bottom: 2rem;
}

/* Cards */
.rk-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rk-card-list--spaced .rk-card {
  margin-bottom: 0.5rem;
}

.rk-card {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rk-line);
}

.rk-card-title {
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}

.rk-card-title:hover {
  color: var(--rk-accent);
}

.rk-card-meta {
  color: var(--rk-muted);
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.rk-card-excerpt {
  margin: 0.5rem 0 0;
  color: var(--rk-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.rk-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.rk-card--tile {
  border: 1px solid var(--rk-line);
  border-radius: var(--rk-radius);
  padding: 1.15rem 1.1rem;
  background: var(--rk-surface);
  border-bottom: 1px solid var(--rk-line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rk-card--tile .rk-card-title {
  font-size: 1rem;
  line-height: 1.35;
}

.rk-card--tile .rk-card-meta {
  margin-top: auto;
  padding-top: 0.5rem;
}

.rk-pagination {
  margin-top: 2rem;
}

.rk-pagination .nav-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rk-pagination a,
.rk-pagination span {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--rk-line);
  text-decoration: none;
  font-size: 0.85rem;
}

.rk-pagination span.current {
  border-color: var(--rk-accent);
  color: var(--rk-accent);
}

/* Archive */
.rk-archive-header h1 {
  border-bottom: none;
  padding-bottom: 0;
}

.rk-archive-lead {
  max-width: 48ch;
  margin-top: 0.5rem;
}

/* Article layout */
.rk-breadcrumb {
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  color: var(--rk-muted);
}

.rk-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.rk-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  opacity: 0.45;
}

.rk-breadcrumb a {
  color: var(--rk-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rk-accent-soft);
}

.rk-article-header .rk-lede {
  font-size: 1.1rem;
  color: var(--rk-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.rk-article-meta {
  font-size: 0.82rem;
  color: var(--rk-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.rk-meta-sep {
  opacity: 0.4;
}

.rk-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rk-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--rk-accent-soft);
  border-radius: 999px;
  color: var(--rk-accent);
}

.rk-pill--ghost {
  border-color: var(--rk-line);
  color: var(--rk-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.rk-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 960px) {
  /* Two columns only when the outline sidebar is present; otherwise a single
   * child would sit in the 14rem track and the main column stays empty. */
  .rk-article-layout .rk-article-grid--with-sidebar {
    grid-template-columns: 14rem minmax(0, 1fr);
    align-items: start;
  }

  .rk-article-layout .rk-article-grid--with-sidebar .rk-outline {
    position: sticky;
    top: 1rem;
  }
}

.rk-outline {
  padding: 1rem 1rem 1rem 1.1rem;
  background: var(--rk-surface);
  border: 1px solid var(--rk-line);
  border-radius: var(--rk-radius);
  font-size: 0.88rem;
}

.rk-outline-title {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rk-muted);
}

.rk-outline-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--rk-muted);
  line-height: 1.45;
}

.rk-outline-list li {
  margin-bottom: 0.35rem;
}

.rk-prose {
  min-width: 0;
  max-width: 100%;
}

/* Article signature (guides only — not movement sheets) */
.rk-article-signature {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rk-line);
}

.rk-article-signature-inner {
  max-width: 36rem;
  padding: 1rem 0 0.25rem;
}

.rk-article-signature-line {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--rk-muted);
  letter-spacing: 0.02em;
}

.rk-article-signature-name {
  font-weight: 600;
  color: var(--rk-text);
  font-style: italic;
}

.rk-article-signature-sep {
  opacity: 0.55;
}

.rk-article-signature-role {
  color: var(--rk-accent-mid);
  font-weight: 500;
}

/* Footer */
.rk-footer-inner {
  max-width: var(--rk-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}

.rk-footer-copy a {
  font-weight: 600;
  text-decoration: none;
}

.rk-footer-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--rk-muted);
}

.rk-search-header h1 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
}

.rk-static-front {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rk-line);
}

/* --- Knowledge home (futurist industrial, silver) --- */
@keyframes rk-kb-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes rk-kb-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes rk-kb-grid-pan {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-24px, -24px, 0);
  }
}

.rk-kb-page {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.rk-kb-home {
  overflow: hidden;
}

.rk-kb-hero-wrap {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2rem) clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--rk-line);
}

.rk-kb-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: rk-kb-grid-pan 48s linear infinite;
  pointer-events: none;
}

.rk-kb-hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 200%;
  animation: rk-kb-shimmer 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.rk-kb-hero {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
}

.rk-kb-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--rk-accent-mid);
  animation: rk-kb-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rk-kb-hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  animation: rk-kb-rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.rk-kb-hero-sub {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--rk-muted);
  max-width: 46ch;
  animation: rk-kb-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.rk-kb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  animation: rk-kb-rise 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.rk-kb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--rk-radius);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.rk-kb-btn-solid {
  color: #0a0a0a;
  background: linear-gradient(180deg, #fff 0%, #c9cdd4 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.rk-kb-btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 18px 50px rgba(0, 0, 0, 0.45);
  color: #0a0a0a;
}

.rk-kb-btn-line {
  color: var(--rk-text);
  border: 1px solid var(--rk-accent-soft);
  background: rgba(255, 255, 255, 0.02);
}

.rk-kb-btn-line:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  color: #fff;
}

.rk-kb-seo {
  max-width: var(--rk-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2rem);
}

.rk-kb-seo-title {
  margin: 0 0 1.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rk-accent-mid);
}

.rk-kb-seo-columns {
  display: grid;
  gap: 1.25rem 2.5rem;
}

@media (min-width: 768px) {
  .rk-kb-seo-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rk-kb-seo-columns p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.68;
  color: #c5c8ce;
}

.rk-kb-search-wrap {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(2.5rem, 5vw, 3.5rem);
}

.rk-kb-lenses {
  max-width: var(--rk-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--rk-line);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.rk-kb-lenses-title {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #fff;
}

.rk-kb-lenses-lead {
  margin: 0 0 1.75rem;
  max-width: 52ch;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--rk-muted);
}

.rk-kb-lens-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rk-kb-lens {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--rk-muted);
  border: 1px solid var(--rk-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.rk-kb-lens:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

/* --- Movement library (CPT rk_kb_movement_sheet) --- */
.rk-movement-archive,
.rk-movement-main {
  padding-bottom: 4rem;
}

.rk-movement-archive-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rk-line);
}

.rk-movement-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rk-accent-mid);
}

.rk-movement-archive-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.rk-movement-archive-lead {
  margin: 0;
  max-width: 56ch;
  color: var(--rk-muted);
  line-height: 1.65;
}

.rk-movement-archive-back {
  margin: 1.25rem 0 0;
}

.rk-movement-back-link {
  font-size: 0.82rem;
  color: var(--rk-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rk-accent-soft);
}

.rk-movement-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.rk-movement-card {
  margin: 0;
}

.rk-movement-card-link {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  min-height: 7.5rem;
  padding: 1.25rem 1.2rem;
  text-decoration: none;
  color: var(--rk-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  background: linear-gradient(145deg, rgba(18, 18, 20, 0.95), rgba(8, 8, 9, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.rk-movement-card-link:hover {
  border-color: rgba(232, 234, 239, 0.35);
  transform: translateY(-2px);
}

.rk-movement-card-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rk-accent);
}

.rk-movement-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.rk-movement-card-excerpt {
  font-size: 0.86rem;
  color: var(--rk-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rk-movement-empty {
  color: var(--rk-muted);
}

.rk-movement-sheet-hero {
  margin: 0 calc(-1 * clamp(1.25rem, 3vw, 2.5rem)) 2rem;
  padding: 2.25rem clamp(1.25rem, 3vw, 2.5rem) 2rem;
  background:
    linear-gradient(120deg, rgba(232, 234, 239, 0.07) 0%, transparent 42%),
    linear-gradient(180deg, #101012 0%, #060607 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rk-movement-sheet-label {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rk-accent-mid);
}

.rk-movement-sheet-parent {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
}

.rk-movement-sheet-parent a {
  color: var(--rk-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rk-accent-soft);
}

.rk-movement-sheet-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.rk-movement-sheet-lede {
  margin: 0 0 1rem;
  max-width: 58ch;
  font-size: 1.05rem;
  color: var(--rk-muted);
  line-height: 1.6;
}

.rk-movement-sheet-meta {
  font-size: 0.82rem;
  color: var(--rk-muted);
}

.rk-movement-tax-link {
  color: var(--rk-accent-mid);
  text-decoration: none;
  border-bottom: 1px solid rgba(158, 164, 174, 0.35);
}

.rk-movement-breadcrumb {
  margin-bottom: 1.5rem;
}

.rk-movement-sheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  .rk-movement-sheet-grid--with-outline {
    grid-template-columns: 13rem minmax(0, 1fr);
  }

  .rk-movement-sheet-grid--with-outline .rk-movement-outline {
    position: sticky;
    top: 1rem;
  }
}

.rk-movement-outline {
  padding: 1rem 1rem 1rem 1.05rem;
  border: 1px solid rgba(232, 234, 239, 0.1);
  background: rgba(10, 10, 11, 0.65);
  font-size: 0.84rem;
}

.rk-movement-outline-title {
  margin: 0 0 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rk-muted);
}

.rk-movement-outline-list {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--rk-muted);
  line-height: 1.45;
}

.rk-movement-prose {
  min-width: 0;
  max-width: 100%;
  padding: 0.25rem 0 2rem;
}

@media (min-width: 720px) {
  .rk-movement-prose {
    border-left: 2px solid rgba(232, 234, 239, 0.12);
    padding-left: clamp(1rem, 2.5vw, 1.5rem);
  }

  .rk-movement-sheet-grid:not(.rk-movement-sheet-grid--with-outline) .rk-movement-prose {
    border-left: none;
    padding-left: 0;
  }
}

.rk-movement-prose h2 {
  font-size: 1.08rem;
  letter-spacing: 0.12em;
}

.rk-kb-section-title {
  margin: 2rem 0 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rk-accent-mid);
}

@media (prefers-reduced-motion: reduce) {
  .rk-kb-hero-grid,
  .rk-kb-hero-wrap::before {
    animation: none !important;
  }

  .rk-kb-eyebrow,
  .rk-kb-hero-title,
  .rk-kb-hero-sub,
  .rk-kb-hero-actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.rk-recent-wrap {
  max-width: var(--rk-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(3rem, 6vw, 5rem);
}
