/* Blog article media + lightweight widgets — cream/ink/red, no CDN */
.sp-media {
  margin: 0 0 1.6rem;
}
.sp-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #ddd5c5;
  background: #efe8dc;
}
.sp-media figcaption {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #6b6357;
}

.bw-demo {
  --bw-bg: #faf7f1;
  --bw-paper: #ffffff;
  --bw-ink: #0a0a0a;
  --bw-muted: #6b6357;
  --bw-border: #ddd5c5;
  --bw-accent: #ff3d2e;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--bw-bg);
  border: 1px solid var(--bw-border);
  border-radius: 14px;
}
.bw-demo__label {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bw-muted);
  background: var(--bw-paper);
  border: 1px solid var(--bw-border);
  border-radius: 4px;
}
.bw-demo__title {
  margin: 0 0 0.35rem;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--bw-ink);
  line-height: 1.35;
}
.bw-demo__hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--bw-muted);
  line-height: 1.45;
}
.bw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
}
.bw-tab {
  appearance: none;
  border: 1px solid var(--bw-border);
  background: var(--bw-paper);
  color: var(--bw-ink);
  font-family: Manrope, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}
.bw-tab:hover,
.bw-tab[aria-pressed="true"] {
  border-color: var(--bw-ink);
}
.bw-tab[aria-pressed="true"] {
  background: var(--bw-ink);
  color: #fff;
}
.bw-panel p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #2b2b2b;
}
.bw-panel p:last-child {
  margin-bottom: 0;
}
.bw-form {
  display: grid;
  gap: 0.55rem;
  margin: 0.35rem 0 0.75rem;
  padding: 0.85rem 0.9rem;
  background: var(--bw-paper);
  border: 1px solid var(--bw-border);
  border-radius: 10px;
}
.bw-form label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bw-muted);
}
.bw-form input,
.bw-form select {
  font-family: Manrope, sans-serif;
  font-size: 0.95rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--bw-border);
  border-radius: 8px;
  background: #fff;
  color: var(--bw-ink);
}
.bw-form input[disabled],
.bw-form select[disabled] {
  color: #3a342c;
  opacity: 1;
}
.bw-fake-btn {
  appearance: none;
  border: 0;
  background: var(--bw-ink);
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  justify-self: start;
  cursor: default;
}
.bw-range {
  display: grid;
  gap: 0.35rem;
}
.bw-range output {
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
}
.bw-chat {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
}
.bw-bubble {
  max-width: 92%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
  background: var(--bw-paper);
  border: 1px solid var(--bw-border);
}
.bw-bubble--in {
  justify-self: start;
}
.bw-bubble--out {
  justify-self: end;
  background: #fff4f2;
  border-color: #f0cfc8;
}
.bw-sheet {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 0.7rem 0.8rem;
  background: #fff;
  border: 1px dashed var(--bw-border);
  border-radius: 8px;
  color: #4a4338;
  overflow-x: auto;
}
.bw-note {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  color: var(--bw-muted);
  line-height: 1.45;
}

.kc-banner {
  --kc-coral: #ff6a58;
  --kc-ivory: #fff9f2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(260px, 0.96fr);
  min-height: 390px;
  margin: 2.5rem 0 0.25rem;
  width: min(1040px, calc(100vw - 48px));
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  color: var(--kc-ivory);
  background:
    radial-gradient(circle at 5% 8%, rgba(177, 45, 39, 0.2), transparent 34%),
    linear-gradient(135deg, #160d10 0%, #090708 56%, #19090d 100%);
  border: 1px solid rgba(255, 221, 210, 0.18);
  border-radius: 24px;
  box-shadow:
    0 26px 70px rgba(28, 8, 12, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.kc-banner::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}
.kc-banner__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 3;
  padding: clamp(2rem, 5vw, 3.6rem) clamp(1.5rem, 4.5vw, 3.3rem);
}
.kc-banner__label {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 1.3rem;
  padding: 0 0 0.55rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb4a9;
  border-bottom: 1px solid rgba(255, 106, 88, 0.68);
}
.kc-banner .kc-banner__title {
  max-width: 12ch;
  margin: 0 0 1.05rem;
  font-family: Lora, Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--kc-ivory);
  line-height: 1.06;
  text-wrap: balance;
}
.kc-banner .kc-banner__body {
  max-width: 52ch;
  margin: 0 0 1.45rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(255, 249, 242, 0.74);
}
.kc-banner__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
}
.kc-banner__primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--kc-coral);
  color: #14090b !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow:
    0 8px 24px rgba(255, 71, 58, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.kc-banner__primary:hover {
  background: #ff7b6c;
  transform: translateY(-1px);
  box-shadow:
    0 11px 30px rgba(255, 71, 58, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.kc-banner__primary:focus-visible {
  outline: 3px solid var(--kc-ivory);
  outline-offset: 3px;
}
.kc-banner__hint {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  color: rgba(255, 249, 242, 0.58);
  line-height: 1.4;
}
.kc-banner__art {
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #10090c;
}
.kc-banner__art::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 28%;
  pointer-events: none;
  background: linear-gradient(90deg, #0a0708 0%, rgba(10, 7, 8, 0) 100%);
}
.kc-banner__art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(0.94) contrast(1.04);
}

@media (max-width: 800px) {
  .kc-banner {
    grid-template-columns: 1fr;
    min-height: 0;
    width: calc(100vw - 28px);
    border-radius: 20px;
  }
  .kc-banner__copy {
    padding: 1.65rem 1.35rem 1.8rem;
  }
  .kc-banner__label {
    margin-bottom: 1rem;
  }
  .kc-banner__title {
    max-width: 13ch;
    font-size: clamp(1.75rem, 9vw, 2.25rem);
  }
  .kc-banner__art {
    grid-row: 1;
    height: clamp(155px, 45vw, 220px);
    border-bottom: 1px solid rgba(255, 221, 210, 0.12);
  }
  .kc-banner__art::before {
    inset: auto 0 0;
    width: auto;
    height: 30%;
    background: linear-gradient(0deg, rgba(10, 7, 8, 0.72), rgba(10, 7, 8, 0));
  }
  .kc-banner__art img {
    min-height: 0;
    height: 100%;
    object-position: 61% 51%;
  }
  .kc-banner__links {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kc-banner__primary {
    transition: none;
  }
}
