/* ──────────────────────────────────────────────────────────────────────────
   KL Journey Widget — inner page sidebar
   Tokens are inherited from kl-global.css (child theme).
   ────────────────────────────────────────────────────────────────────────── */

/* ── OUTER WRAPPER ────────────────────────────────────────────────────────
   Full width + sticky so the widget follows the user as they scroll.
   top: 108px clears the sticky nav (72px) + breathing room.
   align-self: start is required for sticky inside a flex column.
   ────────────────────────────────────────────────────────────────────────── */

.kl-journey-widget {
  width: 100%;
  display: block;
  box-sizing: border-box;
  font-family: var(--font-sans);
  position: sticky;
  top: 108px;
  align-self: start;
}

/* ─────────────────────────────────────────────────────────────────────────
   STORY CARD
   ──────────────────────────────────────────────────────────────────────── */

.kl-jw-story {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(14, 57, 87, 0.14);
  margin-bottom: 12px;
  background: var(--white);
}

/* Portrait area */
.kl-jw-story__portrait {
  position: relative;
  height: 214px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.kl-jw-story__portrait--video {
  height: auto;
  align-items: center;
  background: #000;
}

.kl-jw-story__video {
  width: 100%;
  height: auto;
  display: block;
}

/* Three-colour stripe background (image variant) */
.kl-jw-story__portrait-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #FCEE21 0%, #FCEE21 33%,
    #EE7203 33%, #EE7203 66%,
    #89C9B2 66%, #89C9B2 100%
  );
}

.kl-jw-story__portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.kl-jw-story__portrait-ph {
  position: relative;
  z-index: 1;
  width: 148px;
  height: 200px;
  border-radius: 10px 10px 0 0;
  background: rgba(255, 255, 255, 0.25);
}

.kl-jw-story__eyebrow {
  position: absolute;
  top: 13px;
  left: 15px;
  z-index: 2;
  background: rgba(14, 57, 87, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 20px;
}

/* Story body */
.kl-jw-story__body { padding: 18px 20px 20px; }

.kl-jw-story__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.2;
}

.kl-jw-story__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-mid);
  margin: 0 0 14px;
}

.kl-jw-story__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  transition: gap 0.15s, color 0.15s;
  margin-top: 8px;
}

.kl-jw-story__link:first-of-type { margin-top: 0; }

.kl-jw-story__link:hover { color: #c55f00; gap: 10px; text-decoration: none; }
.kl-jw-story__link svg   { flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────────────────
   EASY READ DOWNLOAD ROW
   ──────────────────────────────────────────────────────────────────────── */

.kl-jw-easyread {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 2px solid var(--mint);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: background 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.kl-jw-easyread:hover {
  background: #EFF7F4;
  box-shadow: 0 2px 12px rgba(137, 201, 178, 0.25);
  text-decoration: none;
}

.kl-jw-easyread__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EFF7F4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kl-jw-easyread__text { flex: 1; min-width: 0; }

.kl-jw-easyread__text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.kl-jw-easyread__text span { font-size: 0.78rem; color: var(--text-mid); }
.kl-jw-easyread__arrow      { color: var(--mint); flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────────────────
   WHAT'S NEXT PANEL
   ──────────────────────────────────────────────────────────────────────── */

.kl-jw-next {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
}

.kl-jw-next__label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kl-jw-next__label::before {
  display: none;
}

.kl-jw-next__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--white);
  margin: 0 0 8px;
}

.kl-jw-next__sub {
  font-family: var(--font-sans);
  font-size: 0.83rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
  margin: 0 0 18px;
}

.kl-jw-next__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}

.kl-jw-next__cta:hover { background: #d4640a; color: var(--white); text-decoration: none; }
.kl-jw-next__cta svg   { flex-shrink: 0; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .kl-jw-story__portrait     { height: 180px; }
  .kl-jw-story__portrait-img { width: 120px; height: 164px; }
}
