.kr-pulse-shell {
  width: min(calc(100% - 32px), var(--kr-container));
  margin-inline: auto;
}

.kr-preview-page {
  padding: var(--kr-space-10) 0 var(--kr-space-16);
}

.kr-section {
  margin-block: var(--kr-space-12);
}

.kr-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--kr-space-4);
  margin-bottom: var(--kr-space-5);
}

.kr-section-heading h2 {
  margin: 0;
  color: var(--kr-ink);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.kr-eyebrow {
  margin: 0 0 var(--kr-space-3);
  color: var(--kr-brand);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kr-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--kr-radius-pill);
  background: rgba(24,20,48,.48);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(10px);
}

.kr-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: var(--kr-radius-pill);
  font-size: .9rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none !important;
  transition: transform .2s var(--kr-ease), box-shadow .2s var(--kr-ease), background .2s var(--kr-ease);
}

.kr-button:hover { transform: translateY(-1px); }

.kr-button:focus-visible,
.kr-story-card__link:focus-visible,
.kr-read-card__link:focus-visible,
.kr-brief-card__link:focus-visible {
  outline: 3px solid rgba(71,54,143,.32);
  outline-offset: 3px;
}

.kr-button--primary {
  background: var(--kr-brand);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(71,54,143,.22);
}

.kr-button--primary:hover { background: var(--kr-brand-strong); }
.kr-button--secondary { background: var(--kr-surface); color: var(--kr-brand) !important; border-color: var(--kr-border); }

.kr-category-hero {
  overflow: hidden;
  position: relative;
  border: 1px solid var(--kr-border);
  border-radius: var(--kr-radius-lg);
  background:
    radial-gradient(circle at 92% 8%, rgba(184,138,56,.22), transparent 28%),
    radial-gradient(circle at 70% 0%, rgba(71,54,143,.18), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f4f1ff 100%);
  box-shadow: var(--kr-shadow-sm);
}

.kr-category-hero__inner {
  max-width: 820px;
  padding: clamp(28px, 5vw, 64px);
}

.kr-category-hero__title {
  margin: 0;
  max-width: 12ch;
  color: var(--kr-ink);
  font-size: clamp(2.25rem, 1.7rem + 2.7vw, 4.75rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.kr-category-hero__description {
  max-width: 62ch;
  margin: var(--kr-space-5) 0 var(--kr-space-6);
  color: var(--kr-ink-soft);
  font-size: clamp(1rem, .94rem + .25vw, 1.15rem);
  line-height: 1.7;
}

.kr-story-rail-wrapper {
  position: relative;
  width: 100%;
  margin: var(--kr-space-4) 0;
}

.kr-story-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 4px 24px;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.kr-story-rail::-webkit-scrollbar,
.kr-story-rail-wrapper::-webkit-scrollbar,
#kr-home-story-rail::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.kr-story-nav {
  position: absolute;
  top: calc(50% - 12px);
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  color: #1d1d1f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.92;
  transition: all 0.25s var(--kr-ease);
}

.kr-story-nav:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  background: #ffffff;
}

.kr-story-nav--prev { left: -18px; }
.kr-story-nav--next { right: -18px; }

@media (max-width: 768px) {
  .kr-story-nav { display: none !important; }
}

.kr-story-card {
  flex: 0 0 210px;
  min-width: 210px;
  scroll-snap-align: start;
}

@media (max-width: 640px) {
  .kr-story-card {
    flex: 0 0 170px;
    min-width: 170px;
  }
}

.kr-story-card--featured {
  flex: 0 0 clamp(290px, 26vw, 350px) !important;
  min-width: clamp(290px, 26vw, 350px) !important;
}

.kr-story-card--featured .kr-story-card__link {
  border: 1px solid rgba(224, 166, 60, 0.45);
  box-shadow: 0 12px 32px -4px rgba(10, 8, 24, 0.35), 0 0 0 1px rgba(224, 166, 60, 0.25) inset;
}

.kr-story-card--featured .kr-story-card__title {
  font-size: clamp(1.15rem, 1.4vw, 1.35rem) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

.kr-badge--featured {
  background: rgba(224, 166, 60, 0.25);
  color: #fce7b0;
  border: 1px solid rgba(224, 166, 60, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.kr-story-card__link,
.kr-story-card__link:hover,
.kr-story-card__link:focus,
.kr-story-card__link:active,
.kr-story-card__link:visited {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  background: #14121e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px -4px rgba(10, 8, 24, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
  transform: translateZ(0);
  cursor: pointer;
  transition: transform 0.3s var(--kr-ease), box-shadow 0.3s var(--kr-ease);
}

.kr-story-card__link:hover {
  transform: translateY(-6px) scale(1.015) translateZ(0);
  box-shadow: 0 20px 38px -6px rgba(10, 8, 24, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

.kr-story-card__media,
.kr-read-card__media { background-position: center; background-size: cover; }

.kr-story-card__media {
  position: absolute;
  inset: 0;
  opacity: 0.94;
  transform: scale(1);
  transition: transform 0.6s var(--kr-ease);
}

.kr-story-card__link:hover .kr-story-card__media {
  transform: scale(1.06);
}

.kr-story-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 24, 0.05) 0%, rgba(12, 10, 24, 0.28) 45%, rgba(12, 10, 24, 0.85) 80%, rgba(12, 10, 24, 0.98) 100%) !important;
  pointer-events: none;
}

.kr-story-card__content {
  position: absolute;
  inset: auto 16px 18px;
  z-index: 2;
  pointer-events: none;
}

.kr-story-card__link .kr-story-card__title,
.kr-story-card__title,
h3.kr-story-card__title {
  margin: var(--kr-space-2) 0 0 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 1.06rem !important;
  font-weight: 580 !important;
  line-height: 1.28 !important;
  letter-spacing: -0.015em !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65) !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.kr-story-card__link .kr-story-card__meta,
.kr-story-card__meta,
p.kr-story-card__meta {
  margin: 6px 0 0 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.76rem !important;
  font-weight: 450 !important;
  letter-spacing: 0.03em !important;
}

.kr-story-card__link:hover .kr-story-card__media { transform: scale(1.045); }

.kr-card-grid,
.kr-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--kr-space-5);
}

.kr-read-card,
.kr-brief-card {
  overflow: hidden;
  border: 1px solid var(--kr-border);
  border-radius: var(--kr-radius-md);
  background: var(--kr-surface);
  box-shadow: 0 3px 16px rgba(25,22,43,.045);
  transition: transform .22s var(--kr-ease), box-shadow .22s var(--kr-ease);
}

.kr-read-card:hover,
.kr-brief-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--kr-shadow-sm);
}

.kr-read-card__link,
.kr-brief-card__link {
  display: block;
  height: 100%;
  color: inherit !important;
  text-decoration: none !important;
}

.kr-read-card__media {
  aspect-ratio: 16 / 9;
  background-color: var(--kr-surface-soft);
}

.kr-media-placeholder {
  background:
    radial-gradient(circle at 76% 20%, rgba(184,138,56,.32), transparent 26%),
    linear-gradient(135deg, #ded8f7, #f2effb 56%, #f5ead3);
}

.kr-read-card__body,
.kr-brief-card__link { padding: var(--kr-space-5); }

.kr-read-card .kr-badge,
.kr-brief-card .kr-badge {
  border-color: rgba(71,54,143,.12);
  background: var(--kr-brand-soft);
  color: var(--kr-brand);
  backdrop-filter: none;
}

.kr-read-card__title,
.kr-brief-card__title {
  margin: var(--kr-space-3) 0 0;
  color: var(--kr-ink);
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.kr-read-card__excerpt,
.kr-brief-card__excerpt,
.kr-card-meta { color: var(--kr-ink-soft); }

.kr-read-card__excerpt,
.kr-brief-card__excerpt {
  margin: var(--kr-space-3) 0 0;
  font-size: .94rem;
  line-height: 1.62;
}

.kr-card-meta {
  margin: var(--kr-space-4) 0 0;
  font-size: .78rem;
}

.kr-brief-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(71,54,143,.1), transparent 38%),
    var(--kr-surface);
}

/* ==========================================================================
   World Bridge Component (Native Template & In-Content Formats)
   ========================================================================== */

.kr-world-bridge {
  position: relative;
  overflow: hidden;
  margin-block: var(--kr-space-10, 48px);
  padding: clamp(24px, 3.8vw, 40px);
  border: 1px solid rgba(71, 54, 143, .16);
  border-radius: var(--kr-radius-lg, 24px);
  background:
    radial-gradient(circle at 92% 18%, rgba(184, 138, 56, .18), transparent 30%),
    radial-gradient(circle at 8% 85%, rgba(92, 72, 161, .08), transparent 32%),
    linear-gradient(135deg, #fdfbf8 0%, #ffffff 55%, #f6f0ff 100%);
  box-shadow: 0 10px 32px rgba(32, 22, 54, .04);
  transition: transform .25s ease, box-shadow .25s ease;
}

.kr-world-bridge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(32, 22, 54, .08);
}

/* Two-column wide banner layout when direct children are copy + CTA button */
aside.kr-world-bridge,
.kr-world-bridge:has(> .kr-world-bridge__copy) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--kr-space-8, 32px);
  align-items: center;
}

@media (max-width: 860px) {
  aside.kr-world-bridge,
  .kr-world-bridge,
  .kr-world-bridge:has(> .kr-world-bridge__copy) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
    padding: 24px 18px !important;
  }

  aside.kr-world-bridge .kr-button,
  .kr-world-bridge .kr-button,
  .kr-world-bridge__btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
  }
}

/* Vertical card layout for in-content bridge cards (header + desc + actions) */
div.kr-world-bridge,
.kr-world-bridge:has(> .kr-world-bridge__header),
.kr-world-bridge:not(aside):not(:has(> .kr-world-bridge__copy)) {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  align-items: flex-start !important;
}

/* Header & Badges */
.kr-world-bridge__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
}

.kr-world-bridge__badge,
.kr-world-bridge .kr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(92, 72, 161, .11);
  color: #5c48a1;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
}

.kr-world-bridge--devotional .kr-world-bridge__badge,
.kr-world-bridge[data-kriyasya-world="devotional"] .kr-eyebrow {
  background: rgba(184, 138, 56, .16);
  color: #8c6314;
}

.kr-world-bridge--astrology .kr-world-bridge__badge,
.kr-world-bridge[data-kriyasya-world="astrology"] .kr-eyebrow {
  background: rgba(71, 54, 143, .12);
  color: #47368f;
}

/* Title */
.kr-world-bridge__title {
  margin: 0;
  color: var(--kr-ink, #181423);
  font-family: 'Playfair Display', Georgia, 'Charter', serif;
  font-size: clamp(1.45rem, 1.22rem + .9vw, 2.1rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.03em;
  width: 100%;
}

/* Description */
.kr-world-bridge__desc,
.kr-world-bridge__description {
  max-width: 68ch;
  margin: 0;
  color: var(--kr-ink-soft, #4f475d);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(0.96rem, 0.92rem + .18vw, 1.06rem);
  line-height: 1.68;
}

/* Actions & Buttons */
.kr-world-bridge__actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
}

.kr-world-bridge__btn,
.kr-world-bridge .kr-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 26px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #5c48a1 0%, #47368f 100%) !important;
  color: #ffffff !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  font-size: 0.94rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(71, 54, 143, .25) !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
  white-space: nowrap !important;
  cursor: pointer;
}

.kr-world-bridge__btn:hover,
.kr-world-bridge .kr-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(71, 54, 143, .36) !important;
  background: linear-gradient(135deg, #6d56be 0%, #523ea3 100%) !important;
  color: #ffffff !important;
}

/* Devotional World Theme Specifics */
.kr-world-bridge--devotional {
  border-color: rgba(184, 138, 56, .26) !important;
  background:
    radial-gradient(circle at 90% 15%, rgba(184, 138, 56, .22), transparent 30%),
    radial-gradient(circle at 10% 88%, rgba(92, 72, 161, .07), transparent 32%),
    linear-gradient(135deg, #fdfbf7 0%, #ffffff 55%, #f9f5ea 100%) !important;
  box-shadow: 0 10px 32px rgba(184, 138, 56, .09) !important;
}

.kr-world-bridge--devotional .kr-world-bridge__btn,
.kr-world-bridge[data-kriyasya-world="devotional"] .kr-button {
  background: linear-gradient(135deg, #b88a38 0%, #8c6314 100%) !important;
  box-shadow: 0 4px 16px rgba(184, 138, 56, .28) !important;
}

.kr-world-bridge--devotional .kr-world-bridge__btn:hover,
.kr-world-bridge[data-kriyasya-world="devotional"] .kr-button:hover {
  background: linear-gradient(135deg, #c99a45 0%, #9e7118 100%) !important;
  box-shadow: 0 6px 22px rgba(184, 138, 56, .38) !important;
}

/* Astrology World Theme Specifics */
.kr-world-bridge--astrology {
  border-color: rgba(71, 54, 143, .22) !important;
  background:
    radial-gradient(circle at 90% 15%, rgba(71, 54, 143, .16), transparent 28%),
    radial-gradient(circle at 10% 88%, rgba(184, 138, 56, .10), transparent 30%),
    linear-gradient(135deg, #f9f7ff 0%, #ffffff 55%, #f2edfc 100%) !important;
  box-shadow: 0 10px 32px rgba(71, 54, 143, .08) !important;
}

/* ==========================================================================
   In-Page Interactive Calculator Component & World Bridge
   ========================================================================== */
.kr-calculator-card {
  margin: var(--kr-space-8, 32px) 0;
  padding: clamp(24px, 4vw, 40px);
  background: #ffffff;
  border: 1px solid rgba(71, 54, 143, 0.14);
  border-radius: 20px;
  box-shadow: 0 12px 36px -8px rgba(71, 54, 143, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  font-family: var(--kr-font-body, system-ui, sans-serif);
}

.kr-calculator-card__header {
  margin-bottom: var(--kr-space-6, 24px);
  text-align: center;
}

.kr-calculator-card__badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kr-brand, #503396);
  background: rgba(71, 54, 143, 0.08);
  border-radius: 100px;
  margin-bottom: 12px;
}

.kr-calculator-card__title {
  margin: 0 0 8px;
  font-family: var(--kr-font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  color: var(--kr-ink, #181430);
  line-height: 1.2;
}

.kr-calculator-card__subtitle {
  margin: 0 auto;
  max-width: 580px;
  font-size: 0.95rem;
  color: var(--kr-ink-muted, #5a5670);
  line-height: 1.55;
}

.kr-calculator-card__form {
  margin-block: var(--kr-space-6, 24px);
  max-width: 520px;
  margin-inline: auto;
}

.kr-calc-input-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.kr-calc-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kr-ink, #181430);
  margin-bottom: 6px;
}

.kr-calc-field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid rgba(71, 54, 143, 0.2);
  border-radius: 10px;
  background: #faf9fd;
  color: var(--kr-ink, #181430);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.kr-calc-field input:focus {
  border-color: var(--kr-brand, #503396);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(80, 51, 150, 0.15);
}

.kr-calc-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  background: linear-gradient(135deg, #503396 0%, #301f60 100%);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(80, 51, 150, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.kr-calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(80, 51, 150, 0.45);
}

.kr-calc-result {
  margin-top: 28px;
  padding: 24px;
  background: linear-gradient(135deg, #f9f7ff 0%, #ffffff 50%, #f4edff 100%);
  border: 1.5px solid rgba(80, 51, 150, 0.2);
  border-radius: 16px;
  text-align: center;
  animation: krFadeIn 0.35s ease-out;
}

@keyframes krFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.kr-calc-result__number-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.kr-calc-result__label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--kr-brand, #503396);
}

.kr-calc-result__value {
  font-family: var(--kr-font-display, "Playfair Display", Georgia, serif);
  font-size: 3.5rem;
  font-weight: 800;
  color: #b88a38;
  line-height: 1;
  margin-block: 4px 8px;
  text-shadow: 0 2px 8px rgba(184, 138, 56, 0.2);
}

.kr-calc-result__title {
  font-family: var(--kr-font-display, "Playfair Display", Georgia, serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--kr-ink, #181430);
  margin-bottom: 8px;
}

.kr-calc-result__desc {
  margin: 0 auto;
  max-width: 580px;
  font-size: 0.95rem;
  color: var(--kr-ink-muted, #5a5670);
  line-height: 1.6;
}

/* Deep Dive World CTA inside Calculator */
.kr-calc-world-cta {
  margin-top: 32px;
  padding: 20px 24px;
  background: radial-gradient(circle at 90% 10%, rgba(184, 138, 56, 0.12), transparent 40%), #181430;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #ffffff;
}

.kr-calc-world-cta__content {
  flex: 1;
}

.kr-calc-world-cta__badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f7d58b;
  background: rgba(184, 138, 56, 0.2);
  border-radius: 100px;
  margin-bottom: 6px;
}

.kr-calc-world-cta h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: #ffffff;
  font-family: var(--kr-font-display, "Playfair Display", Georgia, serif);
}

.kr-calc-world-cta p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.kr-calc-world-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #181430 !important;
  background: linear-gradient(135deg, #d8ab53 0%, #b88a38 100%);
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(184, 138, 56, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.kr-calc-world-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 138, 56, 0.45);
}

@media (max-width: 640px) {
  .kr-calc-input-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .kr-calc-world-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .kr-calc-world-cta__btn {
    width: 100%;
  }
}

/* Calculator Breakdown Tables & Chips */
.kr-calc-table-wrap {
  margin: 18px 0;
  overflow-x: auto;
}

.kr-calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(80, 51, 150, 0.12);
}

.kr-calc-table th {
  background: #f7f5fc;
  color: var(--kr-ink, #181430);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1.5px solid rgba(80, 51, 150, 0.15);
}

.kr-calc-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--kr-ink-muted, #5a5670);
}

.kr-calc-table tr:last-child td {
  border-bottom: none;
}

.kr-calc-table td strong {
  color: #b88a38;
  font-size: 1.05rem;
}

.kr-calc-breakdown-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin: 14px 0;
}

.kr-calc-letter-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid rgba(80, 51, 150, 0.15);
  border-radius: 8px;
  min-width: 36px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.kr-calc-letter-chip__letter {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--kr-ink, #181430);
}

.kr-calc-letter-chip__val {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b88a38;
}

/* Expert Directory Listing Cards (Top Numerologists) */
.kr-expert-listing {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0;
}

.kr-expert-card {
  position: relative;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(80, 51, 150, 0.12);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(24, 20, 48, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.kr-expert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(80, 51, 150, 0.1);
  border-color: rgba(80, 51, 150, 0.25);
}

.kr-expert-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b88a38;
  background: rgba(184, 138, 56, 0.12);
  border-radius: 100px;
}

.kr-expert-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.kr-expert-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #503396 0%, #301f60 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(80, 51, 150, 0.25);
}

.kr-expert-card__title-box {
  flex: 1;
}

.kr-expert-card__name {
  margin: 0 0 4px !important;
  font-size: 1.2rem !important;
  font-weight: 800;
  color: var(--kr-ink, #181430);
  font-family: var(--kr-font-display, "Playfair Display", Georgia, serif);
}

.kr-expert-card__spec {
  display: block;
  font-size: 0.82rem;
  color: var(--kr-brand, #503396);
  font-weight: 600;
}

.kr-expert-card__desc {
  margin: 0 0 14px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--kr-ink-muted, #5a5670);
}

.kr-expert-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kr-expert-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a4563;
  background: #f4f2f9;
  border-radius: 100px;
}

/* Universal Modern Editorial Table Styling */
.entry-content table,
article table,
.single-post table,
.wp-block-table table {
  width: 100%;
  margin: 28px 0;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 0.94rem;
  line-height: 1.6;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(80, 51, 150, 0.12) !important;
  box-shadow: 0 4px 20px rgba(24, 20, 48, 0.05);
  overflow: hidden;
}

.entry-content table th,
article table th,
.single-post table th,
.wp-block-table table th {
  background: linear-gradient(135deg, #f7f5fc 0%, #f0ebf8 100%) !important;
  color: #181430 !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 14px 18px !important;
  text-align: left;
  border-bottom: 2px solid rgba(80, 51, 150, 0.15) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

.entry-content table td,
article table td,
.single-post table td,
.wp-block-table table td {
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(80, 51, 150, 0.07) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  color: #4a4563 !important;
  vertical-align: top;
}

.entry-content table tr:last-child td,
article table tr:last-child td,
.single-post table tr:last-child td,
.wp-block-table table tr:last-child td {
  border-bottom: none !important;
}

.entry-content table tr:nth-child(even) td,
article table tr:nth-child(even) td,
.single-post table tr:nth-child(even) td,
.wp-block-table table tr:nth-child(even) td {
  background: #faf9fe !important;
}

.entry-content table tr:hover td,
article table tr:hover td,
.single-post table tr:hover td,
.wp-block-table table tr:hover td {
  background: #f4effd !important;
}

/* Post Content Editorial Typography Fixes */
.entry-content h2, article h2 {
  font-family: var(--kr-font-display, "Playfair Display", Georgia, serif) !important;
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  color: #181430 !important;
  margin-top: 36px !important;
  margin-bottom: 16px !important;
  line-height: 1.35 !important;
}

.entry-content h3, article h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #301f60 !important;
  margin-top: 24px !important;
  margin-bottom: 12px !important;
}

.entry-content ul, article ul, .single ul, .post-content ul, .entry ul, ul.wp-block-list {
  list-style-type: disc !important;
  padding-left: 28px !important;
  margin: 18px 0 !important;
}

.entry-content ol, article ol, .single ol, .post-content ol, .entry ol, ol.wp-block-list {
  list-style-type: decimal !important;
  padding-left: 28px !important;
  margin: 18px 0 !important;
}

.entry-content li, article li, .single li, .post-content li, .entry li, li.wp-block-list {
  margin-bottom: 10px !important;
  line-height: 1.65 !important;
  color: #3a3652 !important;
}

.kr-related { margin-top: var(--kr-space-12); }

@media (prefers-reduced-motion: reduce) {
  .kr-button,
  .kr-story-card__media,
  .kr-read-card,
  .kr-brief-card { transition: none !important; }
}

/* ==========================================================================
   404 Page & Standard Page Shells
   ========================================================================== */

.kr-404-main,
.kr-launch-main {
  padding: clamp(40px, 7vw, 84px) 0;
  min-height: calc(100vh - 360px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kr-404-shell,
.kr-launch-shell {
  width: min(calc(100% - 32px), 760px);
  margin: 0 auto;
}

.kr-launch-card {
  text-align: center;
  padding: clamp(36px, 6vw, 68px) clamp(24px, 5vw, 56px);
  border-radius: 32px;
  background: #ffffff;
  border: 1px solid rgba(25, 22, 43, 0.08);
  box-shadow: 0 24px 70px rgba(71, 54, 143, 0.09), 0 4px 16px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.kr-launch-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #4f46e5, #06b6d4);
}

.kr-launch-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  text-decoration: none;
}

.kr-launch-brand__img {
  height: clamp(38px, 5vw, 48px);
  width: auto;
  display: block;
}

.kr-launch-brand__pulse {
  background: #181430;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.kr-launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #f4f0fd;
  color: #5b21b6;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(124, 58, 237, 0.18);
}

.kr-launch-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 10px #7c3aed;
  animation: kr-pulse-dot 2s infinite ease-in-out;
}

@keyframes kr-pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.kr-launch-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 900;
  color: #181430;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.kr-launch-desc {
  color: #524d6e;
  font-size: 1.05rem;
  line-height: 1.62;
  max-width: 58ch;
  margin: 0 auto 28px;
}

/* Countdown Clock */
.kr-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 32px;
}

.kr-countdown__item {
  background: #faf8fe;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 18px;
  padding: 16px 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease;
}

.kr-countdown__item:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.3);
}

.kr-countdown__val {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 850;
  color: #3b1d7d;
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.kr-countdown__unit {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a7396;
}

.kr-launch-note {
  color: #6a6485;
  font-size: 0.94rem;
  margin: 0 auto 24px;
  max-width: 48ch;
}

.kr-launch-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.kr-launch-search {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto 32px;
}

.kr-launch-search input {
  flex: 1;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(25, 22, 43, 0.14);
  background: #fdfcff;
  color: #181430;
  font-size: 0.94rem;
}

.kr-launch-search input:focus {
  outline: none;
  border-color: #5b21b6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.12);
}

.kr-launch-topics {
  border-top: 1px solid rgba(25, 22, 43, 0.08);
  padding-top: 24px;
}

.kr-launch-topics__label {
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a7396;
  margin-bottom: 14px;
}

.kr-launch-topics__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 580px) {
  .kr-countdown {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Standard Page Template */
.kr-page-main {
  padding: 48px 0 80px;
}

.kr-page-shell {
  width: min(calc(100% - 32px), 820px);
  margin: 0 auto;
}

.kr-page-header {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--kr-border, rgba(25, 22, 43, 0.08));
  padding-bottom: 24px;
}

.kr-page-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 850;
}

.kr-launch-brand__img {
  height: clamp(38px, 5vw, 48px);
  width: auto;
  display: block;
}

.kr-launch-brand__pulse {
  background: #181430;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.kr-launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #f4f0fd;
  color: #5b21b6;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(124, 58, 237, 0.18);
}

.kr-launch-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 10px #7c3aed;
  animation: kr-pulse-dot 2s infinite ease-in-out;
}

@keyframes kr-pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.kr-launch-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 900;
  color: #181430;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.kr-launch-desc {
  color: #524d6e;
  font-size: 1.05rem;
  line-height: 1.62;
  max-width: 58ch;
  margin: 0 auto 28px;
}

/* Countdown Clock */
.kr-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 32px;
}

.kr-countdown__item {
  background: #faf8fe;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 18px;
  padding: 16px 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease;
}

.kr-countdown__item:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.3);
}

.kr-countdown__val {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 850;
  color: #3b1d7d;
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.kr-countdown__unit {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a7396;
}

.kr-launch-note {
  color: #6a6485;
  font-size: 0.94rem;
  margin: 0 auto 24px;
  max-width: 48ch;
}

.kr-launch-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.kr-launch-search {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto 32px;
}

.kr-launch-search input {
  flex: 1;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(25, 22, 43, 0.14);
  background: #fdfcff;
  color: #181430;
  font-size: 0.94rem;
}

.kr-launch-search input:focus {
  outline: none;
  border-color: #5b21b6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.12);
}

.kr-launch-topics {
  border-top: 1px solid rgba(25, 22, 43, 0.08);
  padding-top: 24px;
}

.kr-launch-topics__label {
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a7396;
  margin-bottom: 14px;
}

.kr-launch-topics__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 580px) {
  .kr-countdown {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ==========================================================================
   Web Stories Filter Navigation & Visual Grid
   ========================================================================== */
.kr-stories-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  margin-bottom: 32px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.kr-stories-filter::-webkit-scrollbar {
  height: 4px;
}

.kr-stories-filter::-webkit-scrollbar-thumb {
  background: rgba(71, 54, 143, 0.15);
  border-radius: 4px;
}

.kr-stories-filter__pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--kr-radius-pill, 9999px);
  background: var(--kr-surface, #ffffff);
  border: 1px solid var(--kr-border, rgba(25, 22, 43, 0.1));
  color: var(--kr-ink-soft, #564f6e) !important;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none !important;
  transition: all 0.2s var(--kr-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.kr-stories-filter__pill:hover {
  border-color: var(--kr-brand, #47368f);
  color: var(--kr-brand, #47368f) !important;
  transform: translateY(-1px);
}

.kr-stories-filter__pill.is-active {
  background: var(--kr-brand, #47368f);
  border-color: var(--kr-brand, #47368f);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(71, 54, 143, 0.25);
}

.kr-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 26px 20px;
  margin-bottom: 56px;
}

.kr-story-grid .kr-story-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: none !important;
}

@media (max-width: 640px) {
  .kr-story-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* ==========================================================================
   Language Switcher & Multilingual Presentation (Strategy A)
   ========================================================================== */
.kr-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 3px 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kr-lang-switch__btn {
  color: #475569 !important;
  text-decoration: none !important;
  padding: 3px 10px;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.kr-lang-switch__btn:hover {
  color: #0f172a !important;
  background: #e2e8f0;
}

.kr-lang-switch__btn.is-active {
  background: #d97706;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.35);
}

.kr-lang-switch__sep {
  color: #cbd5e1;
  font-size: 0.75rem;
  user-select: none;
}

.kr-article-lang-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 9999px;
  font-size: 0.88rem;
}

.kr-article-lang-badge {
  font-weight: 700;
  color: #92400e;
}

.kr-article-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #b45309 !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.kr-article-lang-toggle:hover {
  color: #78350f !important;
}
