/* What's New — homepage re-engagement bottom-sheet (Sage, 2026-06-08).
   Slides UP over the hero background image (the page itself does not move);
   opens on header click, the chevron, or a downward scroll. Shown only when
   there is something new since the visitor's last visit. */

.whats-new {
  --wn-peek: 62px; /* how much of the sheet shows while collapsed */
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(1000px, 96vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  transform: translateX(-50%) translateY(calc(100% - var(--wn-peek)));
  background: linear-gradient(180deg, #fbf6ec 0%, #f4ecdc 100%);
  border: 1px solid rgba(122, 92, 62, 0.28);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.32);
  z-index: 35;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  overscroll-behavior: contain;
}
.whats-new.is-open {
  transform: translateX(-50%) translateY(0);
}
/* Kept explicit so the .whats-new display:flex doesn't override [hidden]. */
.whats-new[hidden] { display: none; }

/* ── Header: the always-visible peek + the open/close toggle ── */
.whats-new__head {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1.15rem 1.75rem 0.85rem;
  border-bottom: 1px solid rgba(60, 50, 40, 0.16);
}
.whats-new__head[role="button"] { cursor: pointer; }
.whats-new__head[role="button"]:focus-visible {
  outline: 2px solid var(--accent, #7a5c3e);
  outline-offset: -3px;
  border-radius: 12px;
}
/* grab handle */
.whats-new__head::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(60, 50, 40, 0.22);
}

.whats-new__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink, #2c241c);
  margin: 0;
}
.whats-new__cue {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent, #7a5c3e);
  animation: whats-new-bob 1.8s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.whats-new.is-open .whats-new__cue { animation: none; transform: rotate(180deg); }
@keyframes whats-new-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .whats-new__cue { animation: none; }
  .whats-new { transition: none; }
}

.whats-new__badge {
  font-family: "Lora", Georgia, serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent, #7a5c3e);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  white-space: nowrap;
}
.whats-new__badge[hidden] { display: none; }

/* ── List (scrolls internally when the sheet is open and content is tall) ── */
.whats-new__list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 1.25rem 1.4rem;
  overflow-y: auto;
  display: grid;
  gap: 0.35rem;
}

.whats-new__item a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.6rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease;
}
.whats-new__item a:hover,
.whats-new__item a:focus-visible { background: rgba(122, 92, 62, 0.08); }

.whats-new__icon {
  font-size: 1.25rem;
  line-height: 1;
  width: 1.6rem;
  text-align: center;
}

/* Title + teaser share one line on desktop; the teaser ellipsis-truncates. */
.whats-new__text {
  min-width: 0;
  display: flex;
  align-items: baseline;
}

.whats-new__label {
  flex: 0 0 auto;       /* keep the title intact; the teaser yields instead */
  max-width: 60%;
  font-family: "Lora", Georgia, serif;
  font-size: 1rem;
  color: var(--ink, #2c241c);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.whats-new__teaser {
  flex: 1 1 auto;
  min-width: 0;
  font-family: "Lora", Georgia, serif;
  font-size: 0.85rem;
  color: rgba(60, 50, 40, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Consistent separator between title and teaser on every row. */
.whats-new__teaser::before {
  content: "·";
  margin: 0 0.5rem 0 0.45rem;
  color: rgba(60, 50, 40, 0.45);
}

.whats-new__date {
  font-family: "Lora", Georgia, serif;
  font-size: 0.78rem;
  color: rgba(60, 50, 40, 0.55);
  white-space: nowrap;
}

@media (max-width: 560px) {
  /* Taller peek so the stacked title + badge both show while collapsed. */
  .whats-new { --wn-peek: 100px; width: 100vw; border-radius: 14px 14px 0 0; }
  .whats-new__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.05rem 1.25rem 0.8rem;
  }
  .whats-new__item a { grid-template-columns: auto 1fr; }
  .whats-new__date { grid-column: 2; justify-self: start; }
  /* Stack title above teaser on small screens. */
  .whats-new__text { display: block; }
  .whats-new__label { white-space: normal; max-width: none; }
  .whats-new__teaser { white-space: normal; display: block; margin-top: 0.15rem; }
  .whats-new__teaser::before { display: none; }
}
