/* =============================================================================
   knowledge-element.css — Paramour Knowledge Element (Quitox / Paramour brand)
   Replaces: wp-content/plugins/paramour-knowledge-engine/assets/pke-front.css
   Scope: .ke-* only — no global body resets
   ============================================================================= */

/* --------------------------------------------------------------------------- */
/* 1. DESIGN TOKENS                                                             */
/* --------------------------------------------------------------------------- */
:root {
  --ke-font-body: 'Outfit', sans-serif;
  --ke-font-heading: 'Poppins', sans-serif;
  --ke-text: #62637D;
  --ke-text-muted: #8a90a2;
  --ke-heading: #151718;
  --ke-heading-blue: #141774;
  --ke-accent: #ec4f6a;
  --ke-accent-blue: #017EFA;
  --ke-icon: #726ffc;
  --ke-surface: #ffffff;
  --ke-surface-soft: #E8F6FF;
  --ke-border: #DCEDF9;
  --ke-border-light: #e8e4f4;
  --ke-shadow: 0 4px 24px rgba(20, 23, 116, 0.07);
  --ke-shadow-card: 0 2px 16px rgba(20, 23, 116, 0.09);
  --ke-radius: 1rem;
  --ke-radius-sm: 0.625rem;
  --ke-section-gap: 2.5rem;
}

/* --------------------------------------------------------------------------- */
/* 2. PAGE SHELL                                                                */
/* --------------------------------------------------------------------------- */
.ke-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  font-family: var(--ke-font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ke-text);
}

/* Hidden intelligence payload — never remove */
.ke__json {
  display: none !important;
}

/* --------------------------------------------------------------------------- */
/* 3. TWO-COLUMN LAYOUT                                                         */
/* --------------------------------------------------------------------------- */
.ke__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.ke__main {
  flex: 1 1 0;
  min-width: 0;
}

.ke__aside {
  flex: 0 0 300px;
  width: 300px;
}

/* Stack on mobile */
@media (max-width: 991px) {
  .ke__layout {
    flex-direction: column;
    gap: 0;
  }
  .ke__aside {
    flex: none;
    width: 100%;
    order: 2;
  }
  .ke__main {
    order: 1;
  }
}

/* --------------------------------------------------------------------------- */
/* 4. BLOCK BASE                                                                */
/* --------------------------------------------------------------------------- */
.ke__block {
  margin-bottom: var(--ke-section-gap);
}

.ke__block > :first-child { margin-top: 0; }
.ke__block > :last-child  { margin-bottom: 0; }

/* --------------------------------------------------------------------------- */
/* 5. TYPOGRAPHY HELPERS                                                        */
/* --------------------------------------------------------------------------- */
.ke__label {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-family: var(--ke-font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ke-accent);
}

.ke-page h1,
.ke-page h2,
.ke-page h3,
.ke-page h4 {
  font-family: var(--ke-font-heading);
  color: var(--ke-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
}

.ke__main h1 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  color: var(--ke-heading);
  margin-bottom: 0.75rem;
}

.ke__main h2 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--ke-heading-blue);
  margin-bottom: 0.75rem;
}

.ke__main h3 {
  font-size: 1.1rem;
  color: var(--ke-heading);
}

/* --------------------------------------------------------------------------- */
/* 6. HERO BLOCK                                                                */
/* --------------------------------------------------------------------------- */
.ke__hero {
  background: var(--ke-surface);
  border: 1px solid var(--ke-border);
  border-radius: var(--ke-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--ke-shadow);
  position: relative;
  overflow: hidden;
}

.ke__hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--ke-accent) 0%, var(--ke-accent-blue) 100%);
  border-radius: var(--ke-radius) 0 0 var(--ke-radius);
}

.ke__hero .ke__label {
  margin-bottom: 0.75rem;
}

.ke__hero p {
  color: var(--ke-text-muted);
  font-size: 18px;
  line-height: 27px;
  margin-bottom: 1.25rem;
}

.ke__meta {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--ke-text-muted);
}

.ke__meta li strong {
  color: var(--ke-heading-blue);
  font-weight: 600;
}

@media (max-width: 575px) {
  .ke__hero {
    padding: 1.5rem 1.25rem;
  }
}

/* --------------------------------------------------------------------------- */
/* 7. QUICK ANSWER BLOCK                                                        */
/* --------------------------------------------------------------------------- */
.ke__answer {
  background: var(--ke-surface-soft);
  border: 1px solid var(--ke-border);
  border-radius: var(--ke-radius);
  padding: 1.75rem 2rem;
  position: relative;
}

.ke__answer .ke__label {
  color: var(--ke-accent-blue);
}

.ke__answer p {
  font-size: 18px;
  line-height: 27px;
  color: var(--ke-text);
  margin: 0;
  font-weight: 500;
}

.ke__answer blockquote {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--ke-accent);
  font-size: 18px;
  line-height: 27px;
  color: var(--ke-text);
  font-style: normal;
}

@media (max-width: 575px) {
  .ke__answer {
    padding: 1.25rem;
  }
}

/* --------------------------------------------------------------------------- */
/* 8. GENERIC CONTENT BLOCK (Overview, Body sections, Final thoughts, etc.)    */
/* --------------------------------------------------------------------------- */
.ke__main > .ke__block:not(.ke__hero):not(.ke__answer):not(.ke__faq):not(.ke__cta) {
  background: var(--ke-surface);
  border: 1px solid var(--ke-border-light);
  border-radius: var(--ke-radius);
  padding: 2rem;
  box-shadow: var(--ke-shadow);
}

.ke__main > .ke__block:not(.ke__hero):not(.ke__answer):not(.ke__faq):not(.ke__cta) p {
  color: var(--ke-text-muted);
  font-size: 18px;
  line-height: 27px;
  margin-bottom: 0.75rem;
}

.ke__main > .ke__block:not(.ke__hero):not(.ke__answer):not(.ke__faq):not(.ke__cta) p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------- */
/* 9. FEATURE CARDS                                                             */
/* --------------------------------------------------------------------------- */
.ke__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 991px) {
  .ke__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .ke__cards {
    grid-template-columns: 1fr;
  }
}

.ke__card {
  background: var(--ke-surface);
  border: 1px solid var(--ke-border);
  border-radius: var(--ke-radius);
  padding: 1.5rem;
  box-shadow: var(--ke-shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ke__card:hover {
  box-shadow: 0 8px 32px rgba(20, 23, 116, 0.13);
  transform: translateY(-2px);
}

.ke__card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--ke-surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.ke__card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--ke-icon);
  fill: none;
}

.ke__card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ke-heading);
  margin: 0 0 0.375rem;
}

.ke__card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ke-text-muted);
  margin: 0;
  flex: 1;
}

/* Cards section wrapper resets the generic block padding */
.ke__block:has(.ke__cards) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* --------------------------------------------------------------------------- */
/* 10. NUMBERED STEPS                                                           */
/* --------------------------------------------------------------------------- */
.ke__steps {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ke-step;
}

.ke__steps li {
  counter-increment: ke-step;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 18px;
  color: var(--ke-text-muted);
  line-height: 27px;
}

.ke__steps li::before {
  content: counter(ke-step);
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--ke-accent-blue);
  color: #fff;
  font-family: var(--ke-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

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

.ke__steps li strong {
  color: var(--ke-heading);
  font-weight: 700;
}

/* --------------------------------------------------------------------------- */
/* 11. FAQ ACCORDION                                                            */
/* --------------------------------------------------------------------------- */
.ke__faq {
  background: var(--ke-surface) !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.ke__faq > .ke__label {
  display: block;
  margin-bottom: 1.25rem;
}

.ke__faq-item {
  border: 1px solid var(--ke-border);
  border-radius: var(--ke-radius-sm);
  margin-bottom: 0.875rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.ke__faq-item.is-open {
  box-shadow: 0 4px 18px rgba(20, 23, 116, 0.08);
  border-color: var(--ke-border);
}

.ke__faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: var(--ke-surface);
  border: 0;
  font-family: var(--ke-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ke-heading);
  cursor: pointer;
  line-height: 1.4;
  gap: 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.ke__faq-q:hover {
  background: var(--ke-surface-soft);
}

.ke__faq-item.is-open .ke__faq-q {
  background: var(--ke-surface-soft);
  color: var(--ke-heading-blue);
  border-radius: var(--ke-radius-sm) var(--ke-radius-sm) 0 0;
}

.ke__faq-q-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ke-surface-soft);
  border: 1.5px solid var(--ke-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ke__faq-item.is-open .ke__faq-q-icon {
  background: var(--ke-accent);
  border-color: var(--ke-accent);
}

.ke__faq-q-icon::before {
  content: '+';
  font-size: 1rem;
  font-weight: 700;
  color: var(--ke-accent);
  line-height: 1;
  transition: transform 0.25s ease, color 0.2s ease;
}

.ke__faq-item.is-open .ke__faq-q-icon::before {
  content: '−';
  color: #fff;
}

.ke__faq-a {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 18px;
  line-height: 27px;
  color: var(--ke-text-muted);
}

.ke__faq-a p {
  margin: 0;
}

.ke__faq-item.is-open .ke__faq-a {
  display: block;
}

@media (max-width: 575px) {
  .ke__faq-q {
    padding: 1rem 1rem;
    font-size: 0.9375rem;
  }
  .ke__faq-a {
    padding: 0 1rem 1rem;
  }
}

/* --------------------------------------------------------------------------- */
/* 12. RELATED LINKS                                                            */
/* --------------------------------------------------------------------------- */
.ke__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ke__links li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--ke-border-light);
  font-size: 0.9375rem;
}

.ke__links li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ke__links a {
  color: var(--ke-accent-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.ke__links a:hover {
  color: var(--ke-accent);
  text-decoration: underline;
}

.ke__links span {
  color: var(--ke-text-muted);
  font-size: 0.8125rem;
}

.ke__links li::before {
  content: '';
  flex-shrink: 0;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--ke-accent);
}

/* --------------------------------------------------------------------------- */
/* 13. CHIP TAGS                                                                */
/* --------------------------------------------------------------------------- */
.ke__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.ke__chips li {
  padding: 0.25rem 0.875rem;
  border: 1.5px solid var(--ke-border);
  border-radius: 2rem;
  font-size: 0.8rem;
  color: var(--ke-text-muted);
  background: var(--ke-surface);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  cursor: default;
}

.ke__chips li:hover {
  border-color: var(--ke-accent-blue);
  color: var(--ke-accent-blue);
  background: var(--ke-surface-soft);
}

/* --------------------------------------------------------------------------- */
/* 14. CTA ROW                                                                  */
/* --------------------------------------------------------------------------- */
.ke__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.ke__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 2.5rem;
  font-family: var(--ke-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ke__cta a:first-child {
  background: var(--ke-accent-blue);
  color: #fff;
  border: 2px solid var(--ke-accent-blue);
  box-shadow: 0 4px 14px rgba(1, 126, 250, 0.3);
}

.ke__cta a:first-child:hover {
  background: #0067d6;
  border-color: #0067d6;
  box-shadow: 0 6px 20px rgba(1, 126, 250, 0.4);
}

.ke__cta a:not(:first-child) {
  background: transparent;
  color: var(--ke-accent-blue);
  border: 2px solid var(--ke-border);
}

.ke__cta a:not(:first-child):hover {
  border-color: var(--ke-accent-blue);
  background: var(--ke-surface-soft);
}

/* --------------------------------------------------------------------------- */
/* 15. BOTTOM NAV                                                               */
/* --------------------------------------------------------------------------- */
.ke__nav {
  margin-top: 2rem;
  font-size: 0.875rem;
}

.ke__nav a {
  color: var(--ke-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.ke__nav a::before {
  content: '←';
  font-size: 0.9em;
}

.ke__nav a:hover {
  color: var(--ke-accent-blue);
}

/* --------------------------------------------------------------------------- */
/* 16. SIDEBAR BLOCKS                                                           */
/* --------------------------------------------------------------------------- */
.ke__aside .ke__block {
  background: var(--ke-surface);
  border: 1px solid var(--ke-border-light);
  border-radius: var(--ke-radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--ke-shadow);
  margin-bottom: 1.25rem;
}

.ke__aside .ke__block > .ke__label {
  display: block;
  margin-bottom: 0.75rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--ke-border-light);
  width: 100%;
}

.ke__aside p {
  font-size: 0.875rem;
  color: var(--ke-text-muted);
  margin: 0;
  line-height: 1.65;
}

.ke__aside .ke__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--ke-text-muted);
}

.ke__aside .ke__list li {
  padding: 0.3rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
  color: var(--ke-text-muted);
}

.ke__aside .ke__list li::before {
  content: '';
  flex-shrink: 0;
  width: 0.3125rem;
  height: 0.3125rem;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--ke-icon);
}

.ke__aside .ke__list a {
  color: var(--ke-accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.ke__aside .ke__list a:hover {
  text-decoration: underline;
}

.ke__discovery {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ke__block-discovery .ke__discovery-summary {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--ke-text-muted);
  line-height: 1.6;
}

.ke__discovery-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.ke__discovery-labels li {
  margin: 0;
}

.ke__discovery-labels a,
.ke__discovery-labels li {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--ke-surface-soft);
  border: 1px solid var(--ke-border-light);
  font-size: 0.8125rem;
  color: var(--ke-text);
  text-decoration: none;
}

.ke__discovery-labels a:hover {
  border-color: var(--ke-accent-blue);
  color: var(--ke-accent-blue);
}

.ke__list-links .ke__discovery-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--ke-text-muted);
  margin-top: 0.125rem;
}

.ke__vertical-scope {
  padding-top: 0;
}

.ke__vertical-scope-label {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ke-text-muted);
  line-height: 1.6;
}

.ke__vertical-scope-label a {
  color: var(--ke-accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.ke__vertical-scope-label a:hover {
  text-decoration: underline;
}

.ke__read-next {
  margin-top: 1.5rem;
}

/* Audience badge */
.ke__audience-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--ke-surface-soft);
  border: 1.5px solid var(--ke-border);
  border-radius: 2rem;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ke-heading-blue);
  font-family: var(--ke-font-heading);
}

.ke__audience-badge::before {
  content: '👤';
  font-size: 0.875rem;
}

/* Knowledge path breadcrumb */
.ke__aside ol.ke__list {
  counter-reset: ke-path;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ke__aside ol.ke__list li {
  counter-increment: ke-path;
}

.ke__aside ol.ke__list li::before {
  content: counter(ke-path);
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--ke-accent-blue);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--ke-font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.2em;
}

/* AI retrieval data block — subtler */
.ke__block-ai p {
  font-size: 0.8125rem;
  color: var(--ke-text-muted);
  line-height: 1.6;
  margin-bottom: 0.625rem;
}

.ke__block-ai p strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ke-icon);
  margin-bottom: 0.2rem;
}

/* --------------------------------------------------------------------------- */
/* 17. SECTION DIVIDER (visual separation between main blocks)                 */
/* --------------------------------------------------------------------------- */
.ke__main .ke__block + .ke__block {
  /* spacing handled by margin-bottom on .ke__block */
}

/* --------------------------------------------------------------------------- */
/* 18. PRINT OVERRIDE                                                           */
/* --------------------------------------------------------------------------- */
@media print {
  .ke__aside { display: none; }
  .ke__cta   { display: none; }
  .ke__nav   { display: none; }
  .ke__json  { display: none !important; }
}

/* --------------------------------------------------------------------------- */
/* 19. SCROLL REVEAL (driven by pke-front.js)                                 */
/* --------------------------------------------------------------------------- */
.ke--reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ke--reveal.ke--visible {
  opacity: 1;
  transform: none;
}

.ke__card.ke--reveal:nth-child(1) { transition-delay: 0.05s; }
.ke__card.ke--reveal:nth-child(2) { transition-delay: 0.13s; }
.ke__card.ke--reveal:nth-child(3) { transition-delay: 0.21s; }

/* =============================================================================
   20. KNOWLEDGE INDEX (/knowledge/) — corpus doorway
   ============================================================================= */
.pke-index {
  max-width: 1200px;
}

.pke-index__hero {
  background: var(--ke-surface);
  border: 1px solid var(--ke-border);
  border-radius: var(--ke-radius);
  padding: 2.5rem 2rem;
  margin-bottom: var(--ke-section-gap);
  box-shadow: var(--ke-shadow);
  position: relative;
  overflow: hidden;
}

.pke-index__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--ke-accent) 0%, var(--ke-accent-blue) 100%);
  border-radius: var(--ke-radius) 0 0 var(--ke-radius);
}

.pke-index__eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--ke-font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ke-accent);
}

.pke-index__title {
  margin: 0 0 0.75rem;
  font-family: var(--ke-font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ke-heading);
}

.pke-index__intro {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ke-text-muted);
  max-width: 52rem;
}

.pke-index__trust {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ke-heading-blue);
}

.pke-index__stat {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--ke-text-muted);
}

.pke-index__block {
  margin-bottom: var(--ke-section-gap);
}

.pke-index__block-title {
  margin: 0 0 0.5rem;
  font-family: var(--ke-font-heading);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--ke-heading-blue);
}

.pke-index__block-lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ke-text-muted);
  max-width: 48rem;
}

.pke-index__audience-grid,
.pke-index__world-grid,
.pke-index__vertical-grid,
.pke-index__section-grid {
  display: grid;
  gap: 1.25rem;
}

.pke-index__audience-grid {
  grid-template-columns: repeat(2, 1fr);
}

.pke-index__vertical-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pke-index__world-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pke-audience-card,
.pke-world-card,
.pke-vertical-card,
.pke-section-card {
  background: var(--ke-surface);
  border: 1px solid var(--ke-border-light);
  border-radius: var(--ke-radius);
  padding: 1.5rem;
  box-shadow: var(--ke-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pke-audience-card--empty,
.pke-world-card--empty,
.pke-vertical-card--empty,
.pke-section-card--empty {
  background: var(--ke-surface-soft);
  border-style: dashed;
}

.pke-vertical-card__kicker {
  margin: 0;
  font-family: var(--ke-font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ke-accent);
}

.pke-vertical-card__headline {
  margin: 0;
  font-family: var(--ke-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ke-heading);
}

.pke-vertical-card__headline a {
  color: var(--ke-heading-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pke-vertical-card__headline a:hover {
  color: var(--ke-accent);
}

.pke-vertical-card__positioning {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ke-text-muted);
}

.pke-vertical-card__overview {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.pke-vertical-card__overview a {
  color: var(--ke-accent-blue);
  text-decoration: none;
}

.pke-vertical-card__overview a:hover {
  text-decoration: underline;
}

.pke-vertical-card__overview-placeholder {
  margin: 0;
  font-size: 0.85rem;
}

.pke-vertical-card__count {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ke-heading-blue);
}

.pke-vertical-card__articles-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ke-icon);
}

.pke-index__section-grid {
  grid-template-columns: repeat(2, 1fr);
}

.pke-audience-card__title,
.pke-world-card__title,
.pke-section-card__title {
  margin: 0;
  font-family: var(--ke-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ke-heading);
}

.pke-audience-card__description,
.pke-world-card__description,
.pke-section-card__description {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ke-text-muted);
}

.pke-world-card__title a,
.pke-section-card__link {
  color: var(--ke-heading-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pke-world-card__title a:hover,
.pke-section-card__link:hover {
  color: var(--ke-accent);
}

.pke-audience-card__footer {
  margin: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.pke-index__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 2rem;
  background: var(--ke-accent-blue);
  color: #fff;
  font-family: var(--ke-font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(1, 126, 250, 0.25);
}

.pke-index__cta:hover {
  background: #0067d6;
  color: #fff;
}

.pke-index__count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ke-heading-blue);
}

.pke-index__count--muted {
  color: var(--ke-text-muted);
  font-weight: 500;
}

.pke-index__article-list,
.pke-index__featured-list,
.pke-index__question-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pke-index__article-list li,
.pke-index__featured-item,
.pke-index__question-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--ke-border-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pke-index__article-list li:last-child,
.pke-index__featured-item:last-child,
.pke-index__question-list li:last-child {
  border-bottom: none;
}

.pke-index__article-list a,
.pke-index__featured-link,
.pke-index__question-list a {
  color: var(--ke-accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.pke-index__article-list a:hover,
.pke-index__featured-link:hover,
.pke-index__question-list a:hover {
  color: var(--ke-accent);
  text-decoration: underline;
}

.pke-index__article-list--spaced li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  align-items: baseline;
}

.pke-index__date {
  font-size: 0.8rem;
  color: var(--ke-text-muted);
  white-space: nowrap;
}

.pke-index__featured-excerpt {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ke-text-muted);
}

.pke-index__empty-note {
  margin: 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ke-text-muted);
}

.pke-index__empty-note--large {
  font-size: 0.95rem;
  font-style: normal;
  text-align: center;
  padding: 1.5rem;
  background: var(--ke-surface-soft);
  border: 1px dashed var(--ke-border);
  border-radius: var(--ke-radius);
}

.pke-section-card__count,
.pke-world-card__meta {
  margin: 0;
  font-size: 0.8125rem;
}

.pke-section {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.pke-section__header {
  margin-bottom: 2rem;
}

.pke-section__title {
  margin: 0 0 0.75rem;
}

.pke-section__description {
  color: var(--ke-text-muted);
  margin: 0 0 1rem;
}

.pke-section__discovery {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.pke-section__discovery-block {
  background: var(--ke-surface);
  border: 1px solid var(--ke-border-light);
  border-radius: var(--ke-radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--ke-shadow);
}

.pke-section__discovery-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.pke-section__discovery-list,
.pke-section__discovery-labels {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pke-section__discovery-list li + li,
.pke-section__discovery-labels li + li {
  margin-top: 0.5rem;
}

.pke-section__discovery-list a {
  color: var(--ke-accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.pke-section__discovery-list a:hover {
  text-decoration: underline;
}

.pke-section__discovery-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pke-section__discovery-labels li {
  margin: 0;
}

.pke-section__discovery-labels a,
.pke-section__discovery-labels li {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--ke-surface-soft);
  border: 1px solid var(--ke-border-light);
  font-size: 0.8125rem;
}

.pke-section__discovery-labels a {
  color: var(--ke-text);
  text-decoration: none;
}

.pke-section__discovery-labels a:hover {
  border-color: var(--ke-accent-blue);
  color: var(--ke-accent-blue);
}

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

.pke-section__item + .pke-section__item {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ke-border-light);
}

.pke-section__link {
  color: var(--ke-accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.pke-section__excerpt {
  margin: 0.375rem 0 0;
  color: var(--ke-text-muted);
  font-size: 0.9375rem;
}

@media (max-width: 991px) {
  .pke-index__world-grid,
  .pke-index__vertical-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .pke-index__hero {
    padding: 1.75rem 1.25rem;
  }

  .pke-index__audience-grid,
  .pke-index__section-grid,
  .pke-index__world-grid,
  .pke-index__vertical-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------- */
/* Post-restore additions (kept from 2026-07 live CSS; not in styled.bak)      */
/* --------------------------------------------------------------------------- */
.ke__hero h1 .ke__hero-world-link,
.ke__hero h1 .ke__hero-world-label {
  white-space: nowrap;
}

.ke__hero h1 .ke__hero-world-link {
  color: inherit;
  text-decoration: none;
}

.ke__hero h1 .ke__hero-world-link:hover {
  text-decoration: underline;
}

.ke__list-main-areas {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ke__main-area-item + .ke__main-area-item {
  margin-top: 0.75rem;
}

.ke__main-area-link {
  display: block;
  color: var(--ke-accent-blue);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
}

.ke__main-area-link:hover {
  text-decoration: underline;
}

.ke__main-area-title {
  display: block;
  color: var(--ke-heading);
  font-weight: 600;
  line-height: 1.35;
}

.ke__main-area-meta {
  display: block;
  margin-top: 0.2rem;
  color: var(--ke-text-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/*
 * Authority shield — beat sitewide paramour-ke-readability.css !important
 * so knowledge objects keep original pke-front type (styled.bak).
 */
.ke-page {
  font-family: var(--ke-font-body) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--ke-text) !important;
}

.ke-page :is(p, li, td, th, label) {
  font-family: var(--ke-font-body) !important;
}

.ke-page :is(h1, h2, h3, h4) {
  font-family: var(--ke-font-heading) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--ke-heading) !important;
  -webkit-text-fill-color: var(--ke-heading) !important;
}

.ke-page .ke__main h1 {
  font-size: clamp(1.6rem, 4vw, 2.25rem) !important;
  color: var(--ke-heading) !important;
  -webkit-text-fill-color: var(--ke-heading) !important;
}

.ke-page .ke__main h2,
.ke-page h2 {
  font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
  color: var(--ke-heading-blue) !important;
  -webkit-text-fill-color: var(--ke-heading-blue) !important;
}

.ke-page .ke__main h3,
.ke-page h3 {
  font-size: 1.1rem !important;
  color: var(--ke-heading) !important;
  -webkit-text-fill-color: var(--ke-heading) !important;
}

.ke-page .ke__faq-q {
  font-family: var(--ke-font-heading) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--ke-heading) !important;
  -webkit-text-fill-color: var(--ke-heading) !important;
}

.ke-page .ke__faq-item.is-open .ke__faq-q {
  color: var(--ke-heading-blue) !important;
  -webkit-text-fill-color: var(--ke-heading-blue) !important;
}

.ke-page .ke__faq-a,
.ke-page .ke__faq-a p {
  font-size: 18px !important;
  line-height: 27px !important;
  color: var(--ke-text-muted) !important;
  -webkit-text-fill-color: var(--ke-text-muted) !important;
}

.ke-page .ke__hero p,
.ke-page .ke__answer p,
.ke-page .ke__answer blockquote,
.ke-page .ke__block p,
.ke-page .ke__steps li {
  font-size: 18px !important;
  line-height: 27px !important;
}
