/*
 * PULPOFFE — EDGE-STYLE PLANTATION SPOTLIGHT SLIDER & STORY PAGE
 */

.craft-slider-band {
  background: var(--alt) !important;
  padding: 20px 0 24px !important;
  border-bottom: 1px solid var(--line);
}

.craft-page section#craft {
  background: #FAF8F5 !important;
  padding: 28px 0 56px !important;
}

.edge-carousel {
  position: relative;
  width: 100%;
  height: clamp(310px, 46vh, 430px);
  border-radius: 16px;
  overflow: hidden;
  background: #1B120C;
  box-shadow: 0 16px 38px rgba(61, 43, 31, 0.16);
  border: 1px solid rgba(61, 43, 31, 0.14);
  user-select: none;
}

.edge-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.edge-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease, transform 6s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: #FFFFFF;
}

.edge-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.edge-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.01);
  transition: transform 6.5s ease-out;
}

.edge-slide.active .edge-slide-img {
  transform: scale(1.06);
}

/* Edge-style Bottom Gradient Scrim */
.edge-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 10, 6, 0.12) 0%,
    rgba(16, 10, 6, 0.25) 38%,
    rgba(16, 10, 6, 0.82) 74%,
    rgba(14, 9, 5, 0.96) 100%
  );
  pointer-events: none;
}

/* Top-right counter badge */
.edge-top-badge {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(18, 12, 8, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #F5EBE1;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* Slide overlay text content (bottom-left like Edge New Tab) */
.edge-slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 24px 72px 40px 72px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.edge-source-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.edge-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #F4EFE6;
}

.edge-source-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #B08D57;
  color: #1A1008;
  display: inline-grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
}

.edge-follow-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.75rem;
  font-weight: 500;
  color: #FFFFFF;
}

.edge-slide:hover .edge-follow-pill {
  background: #C9A56B;
  border-color: #C9A56B;
  color: #180F09;
}

.edge-slide-title {
  margin: 0 !important;
  font-family: var(--disp) !important;
  font-size: clamp(1.32rem, 2.35vw, 1.95rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #FFFFFF !important;
  max-width: 780px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.edge-slide-sub {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #E2D8CA;
  max-width: 700px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.edge-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 2px;
  font-size: 0.78rem;
  color: #C9A56B;
  font-weight: 500;
}

/* Edge-style Left & Right Arrow Buttons */
.edge-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.92);
  color: #2D1A10;
  font-size: 1.1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.edge-nav-btn:hover {
  background: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
}

.edge-nav-prev {
  left: 16px;
}

.edge-nav-next {
  right: 16px;
}

/* Edge-style Bottom Progress Dots/Pills */
.edge-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.edge-dot {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: all 0.3s ease;
}

.edge-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.edge-dot.active {
  width: 42px;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* ── Reduced Headings Below Divider Line ── */
.craft-moved-intro {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(61, 43, 31, 0.16);
}

.craft-intro-heading {
  font-size: clamp(1.55rem, 2.4vw, 2.05rem) !important;
  margin: 4px 0 6px !important;
  line-height: 1.18 !important;
  color: var(--ink) !important;
}

.craft-intro-sub {
  max-width: 62ch;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.craft-sub-hd {
  margin-bottom: 24px !important;
  max-width: 64ch !important;
}

.craft-sub-heading {
  font-size: clamp(1.32rem, 1.95vw, 1.68rem) !important;
  margin: 6px 0 8px !important;
  line-height: 1.2 !important;
  color: var(--ink) !important;
}

.craft-sub-copy {
  font-size: 0.93rem !important;
  color: var(--muted) !important;
  margin: 0 !important;
  line-height: 1.55 !important;
}

@media (max-width: 720px) {
  .edge-carousel {
    height: 300px;
    border-radius: 12px;
  }
  .edge-slide-content {
    padding: 18px 54px 36px 54px;
  }
  .edge-slide-sub {
    display: none;
  }
  .edge-nav-btn {
    width: 34px;
    height: 34px;
  }
  .edge-nav-prev { left: 10px; }
  .edge-nav-next { right: 10px; }
}
