/* KeenEye — welcome post inside one forum topic (class .ke-forum-welcome-post) */

#prime-forum .prime-post.ke-forum-welcome-post {
  max-width: 800px;
  margin: 0 auto 24px;
  display: block;
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  position: relative;
}

#prime-forum .prime-post.ke-forum-welcome-post::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #dc1539, #0ea5e9);
}

#prime-forum .prime-post.ke-forum-welcome-post .prime-topic-left {
  display: none;
}

#prime-forum .prime-post.ke-forum-welcome-post .prime-topic-right {
  width: 100%;
  float: none;
}

#prime-forum .prime-post.ke-forum-welcome-post .prime-post-top {
  display: none;
}

#prime-forum .prime-post.ke-forum-welcome-post .prime-post-content {
  padding: 20px 20px 16px;
  text-align: center;
}

#prime-forum .prime-post.ke-forum-welcome-post .prime-post-content strong {
  display: block;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0f172a;
  margin: 0 0 6px;
}

#prime-forum .prime-post.ke-forum-welcome-post .prime-post-content strong + strong {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 16px;
}

#prime-forum .prime-post.ke-forum-welcome-post .prime-post-content strong:first-child::before {
  content: "Archive & updates";
  display: block;
  margin: 0 0 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #dc1539;
}

#prime-forum .prime-post.ke-forum-welcome-post .prime-post-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 10px auto 0;
  border: 0;
  border-radius: 10px;
}

#prime-forum .prime-post.ke-forum-welcome-post .prime-post-content a {
  display: block;
  margin-top: 10px;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

#prime-forum .prime-post.ke-forum-welcome-post .prime-post-content a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

#prime-forum .prime-post.ke-forum-welcome-post .prime-post-bottom {
  display: none;
}

@media (max-width: 767px) {
  #prime-forum .prime-post.ke-forum-welcome-post .prime-post-content {
    padding: 16px 14px 12px;
  }
}

/* ── Archive year posts (spoiler + text banners) ── */

#prime-forum .prime-post.ke-forum-archive-post {
  margin-bottom: 20px;
}

#prime-forum .prime-post.ke-forum-archive-post .ke-forum-archive-intro {
  display: block;
  margin: 0 0 18px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e4e8ee;
  border-left: 3px solid #94a3b8;
  border-radius: 10px;
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.5;
  font-style: normal;
}

#prime-forum .prime-post.ke-forum-archive-post .ke-forum-archive-intro em {
  font-style: normal;
}

#prime-forum .prime-post.ke-forum-archive-post .ke-forum-archive-intro strong {
  color: #0f172a;
  font-weight: 700;
}

#prime-forum .prime-post.ke-forum-archive-post .ke-forum-section-title {
  display: block;
  margin: 20px 0 0;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e4e8ee;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a5f;
  line-height: 1.3;
}

#prime-forum .prime-post.ke-forum-archive-post .ke-forum-section-title:first-of-type {
  margin-top: 0;
}

#prime-forum .prime-post.ke-forum-archive-post .ke-forum-section-title + br,
#prime-forum .prime-post.ke-forum-archive-post .prime-post-content > strong + br {
  display: none;
}

#prime-forum .prime-post.ke-forum-archive-post .prime-spoiler + .ke-forum-section-title,
#prime-forum .prime-post.ke-forum-archive-post .prime-spoiler + strong,
#prime-forum .prime-post.ke-forum-archive-post .prime-spoiler + .ke-forum-section-card,
#prime-forum .prime-post.ke-forum-archive-post .ke-forum-section-card + .ke-forum-section-card {
  margin-top: 20px;
}

/* Fallback: plain <strong> / <em> if classes were stripped in editor */
#prime-forum .prime-post.ke-forum-archive-post .prime-post-content > em:first-child {
  display: block;
  margin: 0 0 18px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e4e8ee;
  border-left: 3px solid #94a3b8;
  border-radius: 10px;
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.5;
  font-style: normal;
}

#prime-forum .prime-post.ke-forum-archive-post .prime-post-content > em:first-child strong {
  color: #0f172a;
  font-weight: 700;
}

#prime-forum .prime-post.ke-forum-archive-post .prime-post-content > strong {
  display: block;
  margin: 20px 0 0;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e4e8ee;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a5f;
  line-height: 1.3;
}

#prime-forum .prime-post.ke-forum-archive-post .prime-post-content > strong:not(:has(+ .prime-spoiler)) {
  border-bottom: 1px solid #e4e8ee;
  border-radius: 10px;
}

#prime-forum .prime-post.ke-forum-archive-post .prime-post-content > .ke-forum-year-title + strong,
#prime-forum .prime-post.ke-forum-archive-post .prime-post-content > em:first-child + strong {
  margin-top: 0;
}

#prime-forum .prime-post.ke-forum-archive-post .prime-post-content .ke-forum-year-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 16px;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e4e8ee;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

#prime-forum .prime-post.ke-forum-archive-post .ke-forum-year-title__year {
  display: inline-block;
  padding: 5px 14px;
  background: #e8eef5;
  color: #1e3a5f;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 8px;
  line-height: 1.2;
  border: 1px solid #c9d6e6;
  box-shadow: none;
}

/* Fallback if title is still plain <strong> */
#prime-forum .prime-post.ke-forum-archive-post .prime-post-content > strong:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 16px;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e4e8ee;
  border-left: 4px solid #94a3b8;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0;
}

#prime-forum .prime-post.ke-forum-archive-post .prime-spoiler {
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  margin-top: 4px;
  margin-bottom: 0;
  clear: none;
}

#prime-forum .prime-post.ke-forum-archive-post .prime-spoiler .prime-spoiler-link {
  background: #f1f1f1;
  color: #4d78af;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 8px 12px;
  border-bottom: 1px solid #e5e5e5;
}

#prime-forum .prime-post.ke-forum-archive-post .prime-spoiler .prime-spoiler-link:hover {
  background: #e8e8e8;
  color: #3a6494;
}

#prime-forum .prime-post.ke-forum-archive-post .prime-spoiler .prime-spoiler-content {
  padding: 14px;
  display: none;
}

/* Title + spoiler as one card (wrapper from forum-welcome.php) */
#prime-forum .prime-post.ke-forum-archive-post .ke-forum-section-card {
  display: block;
  margin: 20px 0 0;
}

#prime-forum .prime-post.ke-forum-archive-post .ke-forum-archive-intro + .ke-forum-section-card,
#prime-forum .prime-post.ke-forum-archive-post .prime-post-content > .ke-forum-section-card:first-child {
  margin-top: 0;
}

#prime-forum .prime-post.ke-forum-archive-post .ke-forum-section-card .ke-forum-section-title,
#prime-forum .prime-post.ke-forum-archive-post .ke-forum-section-card .ke-forum-year-title {
  margin: 0;
}

#prime-forum .prime-post.ke-forum-archive-post .ke-forum-section-card .prime-spoiler {
  margin-top: 0;
  clear: none;
  border-top: none;
  border-radius: 0 0 10px 10px !important;
}

#prime-forum .prime-post.ke-forum-archive-post .ke-forum-section-card--year .prime-spoiler {
  border-radius: 0 0 12px 12px !important;
}

#prime-forum .prime-post.ke-forum-archive-post .ke-forum-section-card .prime-spoiler .prime-spoiler-link {
  border-radius: 0 !important;
  border-top: none;
  background: #f8fafc;
}

#prime-forum .prime-post.ke-forum-archive-post .ke-forum-section-card .prime-spoiler .prime-spoiler-link:hover {
  background: #eef2f7;
}

#prime-forum .prime-post.ke-forum-archive-post .ke-forum-section-card .prime-spoiler .prime-spoiler-content {
  border-radius: 0;
}

/* Fallback if card wrapper is missing (br / <p> between title and spoiler) */
#prime-forum .prime-post.ke-forum-archive-post .ke-forum-section-title + .prime-spoiler,
#prime-forum .prime-post.ke-forum-archive-post .ke-forum-section-title + br + .prime-spoiler,
#prime-forum .prime-post.ke-forum-archive-post .ke-forum-year-title + .prime-spoiler,
#prime-forum .prime-post.ke-forum-archive-post .ke-forum-year-title + br + .prime-spoiler,
#prime-forum .prime-post.ke-forum-archive-post .prime-post-content > strong + .prime-spoiler,
#prime-forum .prime-post.ke-forum-archive-post .prime-post-content > strong + br + .prime-spoiler,
#prime-forum .prime-post.ke-forum-archive-post .prime-post-content p:has(> .ke-forum-section-title) + .prime-spoiler,
#prime-forum .prime-post.ke-forum-archive-post .prime-post-content p:has(> .ke-forum-section-title) + p > .prime-spoiler {
  margin-top: 0;
  clear: none;
  border-top: none;
  border-radius: 0 0 10px 10px !important;
}

#prime-forum .prime-post.ke-forum-archive-post .ke-forum-section-title + .prime-spoiler .prime-spoiler-link,
#prime-forum .prime-post.ke-forum-archive-post .ke-forum-section-title + br + .prime-spoiler .prime-spoiler-link,
#prime-forum .prime-post.ke-forum-archive-post .ke-forum-year-title + .prime-spoiler .prime-spoiler-link,
#prime-forum .prime-post.ke-forum-archive-post .ke-forum-year-title + br + .prime-spoiler .prime-spoiler-link,
#prime-forum .prime-post.ke-forum-archive-post .prime-post-content > strong + .prime-spoiler .prime-spoiler-link,
#prime-forum .prime-post.ke-forum-archive-post .prime-post-content > strong + br + .prime-spoiler .prime-spoiler-link {
  border-radius: 0 !important;
  border-top: none;
  background: #f8fafc;
}

#prime-forum .ke-forum-strip {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #e2e8f0;
  font-family: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(0.6875rem, 1.8vw, 0.875rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 8px;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

#prime-forum .ke-forum-strip__sep {
  color: #f87171;
  padding: 0 0.35em;
  font-weight: 900;
}

#prime-forum .ke-forum-join {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35em 0.5em;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#prime-forum a:has(.ke-forum-join) {
  display: block;
  text-decoration: none !important;
}

#prime-forum a:has(.ke-forum-join):hover .ke-forum-join {
  border-color: rgba(220, 21, 57, 0.45);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

#prime-forum .ke-forum-join__side {
  font-family: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(0.625rem, 1.7vw, 0.8125rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0f1e46;
  line-height: 1.3;
}

#prime-forum .ke-forum-join__chev {
  color: #0f1e46;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: -0.05em;
}

#prime-forum .ke-forum-join__cta {
  font-family: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(0.75rem, 2vw, 0.9375rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dc1539;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  animation: ke-forum-join-pulse 2.2s ease-in-out infinite;
}

@keyframes ke-forum-join-pulse {
  0%, 100% {
    color: #dc1539;
    transform: scale(1);
    text-shadow: none;
  }
  50% {
    color: #e11d48;
    transform: scale(1.06);
    text-shadow: 0 0 12px rgba(220, 21, 57, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  #prime-forum .ke-forum-join__cta {
    animation: none;
  }
}

@media (max-width: 767px) {
  #prime-forum .ke-forum-strip {
    padding: 10px 12px;
  }

  #prime-forum .ke-forum-join {
    padding: 10px 12px;
    gap: 0.25em 0.35em;
  }
}
