.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
/* =========================
   Comments
   ========================= */

/* Main comments container â€” keeps everything centred and aligned with page */
.episode-comments{
  max-width: 980px;
  margin: 0 auto;
}

/* Section heading spacing */
.episode-comments h2{
  margin-bottom: 10px;
}

/* Comment form wrapper */
.episode-comments .comment-form{
  display: block;
}

/* Main textarea input */
.episode-comments .comment-form textarea{
  display: block;
  width: 100%;                 /* full width */
  min-height: 160px;           /* comfortable typing height */
  box-sizing: border-box;      /* padding doesn't break layout */
  padding: 10px 10px;          /* inner spacing */
  border: 1px solid var(--jd-olive); /* main border colour */
  background: transparent;
  color: var(--jd-cream);
  resize: vertical;            /* allow user to resize vertically only */
  font: inherit;               /* match site typography */
  line-height: 1.45;
}

/* Placeholder text style */
.episode-comments .comment-form textarea::placeholder{
  color: rgba(248, 237, 194, 0.5); /* faded cream */
}

/* Focus state (when user clicks into textarea) */
.episode-comments .comment-form textarea:focus{
  outline: none;
  border-color: var(--jd-mustard); /* highlight colour */
}

/* Space above submit button */
.episode-comments .comment-form .btn{
  margin-top: 14px;
}

/* Container for all comments */
.episode-comments .comment-list{
  display: flex;
  flex-direction: column;
  gap: 10px; /* vertical spacing between comments */
}

/* Individual comment block */
.episode-comments .comment-item{
  padding: 10px 0 0;
  border-top: 1px dashed var(--jd-olive); /* ðŸ‘ˆ dashed divider between comments */
}

/* Remove border from first comment */
.episode-comments .comment-item:first-child{
  padding-top: 0;
  border-top: none;
}

/* Top row: avatar + name/date */
.episode-comments .comment-head{
  display: flex;
  align-items: flex-start;
  gap: 14px;          /* space between avatar and text */
  margin-bottom: 10px;
}

.episode-comments .comment-meta{
  margin-top: 6px; /* ðŸ‘ˆ tweak this (2â€“6px sweet spot) */
}

/* Avatar container (circular) */
.episode-comments .comment-avatar{
  flex: 0 0 40px;     /* fixed size */
  width: 40px;
  height: 40px;
  border-radius: 50%; /* circle */
  overflow: hidden;   /* crop image inside circle */
  background: var(--jd-olive); /* fallback background */
  border: 3px solid var(--jd-olive); /* avatar border */
}

/* Avatar image */
.episode-comments .comment-avatar img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures image fills circle nicely */
}

/* Fallback avatar (initial letter) */
.episode-comments .comment-avatar-fallback{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--jd-mustard);
  font-weight: 700;
  font-size: 1rem;
}

/* Wrapper for name + date */
.episode-comments .comment-meta{
  min-width: 0; /* prevents overflow issues */
}

/* Author name */
.episode-comments .comment-meta h3{
  margin: 0 0 4px;
  line-height: 1;
}

/* Date text */
.episode-comments .comment-meta .p1{
  margin: 0;
}

/* Comment body text */
.episode-comments .comment-item .author-text-body{
  padding-left: 60px; /* aligns text under name (avatar offset) */
  overflow-wrap: anywhere; /* prevents long URLs breaking layout */
  word-break: break-word;
}

/* Remove top margin from first paragraph inside comment */
.episode-comments .comment-item .author-text-body p:first-child,
.episode-comments .comment-item .author-text-body > :first-child{
  margin-top: 0;
}

/* Links inside comments */
.episode-comments .comment-item .author-text-body a{
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Flash message (success/error box) */
.episode-comments .comment-flash{
  padding: 12px 14px;
  border: 1px solid var(--jd-olive);
  margin-bottom: 16px;
}

/* Error state */
.episode-comments .comment-flash.is-error{
  border-color: var(--jd-red);
  color: var(--jd-red);
}

/* Success state */
.episode-comments .comment-flash.is-success{
  border-color: var(--jd-olive);
  color: var(--jd-cream);
}

.comment-replies{
  margin-top: 18px;
  margin-left: 66px;
}

.comment-item.is-reply{
  padding: 20px 16px 14px 14px;
  border-left: 2px dashed var(--jd-olive);
  background: rgba(255,255,255,0.03);
}



.comment-item.is-reply .comment-head{
	padding-top: 5px;
  align-items: flex-start;
}



.comment-item.is-reply .comment-avatar{
  flex-basis: 36px;
  width: 36px;
  height: 36px;
}

.comment-item.is-reply .comment-meta h3{
	padding-top: 2px;
  margin-bottom: 2px;
}

.comment-replying-to{
  margin: 2px 0 8px;
  opacity: .65;
}

/* view comments anchor link */

.episode-comments-jump{
  display:flex;
  align-items:baseline;
  gap:6px;
}

.episode-video-topbar{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  width:100%;
  margin-bottom:0;
}

.comments-jump-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.comments-jump-heading{
  margin:0;

  align-items:baseline;
  gap:6px;
}

.comments-jump-heading .p1{
  margin:0;
}

.comment-actions {
	margin-top: 10px;
	margin-left: 60px; /* aligns text under name (avatar offset) */
}


@keyframes comments-bounce{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}


/* Mobile adjustments */
@media (max-width: 640px){

  .episode-comments .comment-head{
    gap: 10px;
  }

  .episode-comments .comment-avatar{
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .episode-comments .comment-item .author-text-body{
    padding-left: 0;
  }

  .episode-comments .comment-item .comment-actions{
    margin-left: 0;
  }
}

