/* =============================================================================
   PeachPuffTL story page buttons: Start here, Continue reading, Add to shelf
   ============================================================================= */

.pp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}

.pp-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.3rem 1.1rem;
  color: #fff;
  font-family: var(--ff-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  background: var(--button-primary-background, var(--pp-coral));
  border: 0;
  border-radius: 999px;
  box-shadow: var(--button-box-shadow, 0 2px 0 rgb(0 0 0 / 20%));
  cursor: pointer;
  transition: transform 0.1s, filter 0.15s;
}

:root:not([data-mode="light"]) .pp-cta__btn {
  color: var(--fg-100);
}

.pp-cta__btn:hover {
  background: var(--button-primary-background-hover, var(--pp-coral));
  filter: brightness(1.05);
}

.pp-cta__btn:active {
  box-shadow: none;
  transform: translateY(1px);
}

.pp-cta__btn:focus-visible {
  outline: 3px solid var(--pp-gold);
  outline-offset: 2px;
}

.pp-cta__btn[hidden],
.pp-cta__link[hidden] {
  display: none;
}

/* The shelf button is the quiet one, Start here / Continue reading leads */

.pp-cta__btn--shelf {
  color: var(--fg-200);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--pp-rule-strong);
}

.pp-cta__btn--shelf:hover {
  background: var(--pp-card-2);
  filter: none;
}

/* Shelf toggle */

.pp-cta__icon::before {
  content: "+";
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.1rem;
  text-align: center;
  background: var(--pp-coral);
  border-radius: 50%;
}

.pp-cta__btn--shelf[aria-pressed="true"] {
  color: var(--green-600, #43603a);
  background: color-mix(in srgb, var(--pp-leaf) 16%, transparent);
  box-shadow: inset 0 0 0 2px var(--pp-leaf);
}

:root:not([data-mode="light"]) .pp-cta__btn--shelf[aria-pressed="true"] {
  color: var(--green-400);
}

.pp-cta__btn--shelf[aria-pressed="true"] .pp-cta__icon::before {
  content: "\2713";
  background: var(--pp-leaf);
}

.pp-cta__link {
  color: var(--primary-500);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--pp-peach);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.pp-cta__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

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