/* ═══════════════════════════════════════════════════════════════════════════
   ANCHOR & BLOOM — WELLNESS HUB
   Image-first rhythms · short watches · sleep · gentle assistant rows.
   Loaded after css/app.css so it can refine existing chrome without forks.
   Brand: warm luxury — italic Playfair display, Jost body, gold rule, ink + cream.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ab-w-cream: var(--lux-cream, #FAF7F2);
  --ab-w-cream-dk: var(--cream-dark, #F2EDE4);
  --ab-w-ink: var(--ink, #2A2420);
  --ab-w-muted: var(--muted, #594f46);
  --ab-w-gold: var(--lux-gold, #C9A66B);
  --ab-w-gold-soft: rgba(201, 166, 107, 0.32);
  --ab-w-forest: var(--forest, #6B8068);
  --ab-w-terra: var(--terra, #A0546A);
  --ab-w-slate: var(--slate, #4A5E6A);
  --ab-w-line: rgba(180, 160, 140, 0.28);
  --ab-w-card: #FFFEFB;
  --ab-w-shadow-sm: 0 6px 24px rgba(42, 36, 32, 0.08);
  --ab-w-shadow-md: 0 14px 36px rgba(42, 36, 32, 0.12);
  --ab-w-radius: 18px;
  --ab-w-radius-sm: 12px;
}

/* ── Section eyebrow + heading micro-system ────────────────────────────── */
.ab-w-eyebrow {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ab-w-gold);
  margin: 0 0 6px;
  text-transform: none;
}
.ab-w-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--ab-w-gold-soft);
  margin-top: 6px;
}
.ab-w-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ab-w-ink);
  margin: 0 0 14px;
}

/* ═══════════════════════════════════════════════════════════════════════
   1) RHYTHMS — image-first horizontal lane
   ═══════════════════════════════════════════════════════════════════════ */
.ab-rhythms {
  margin: 6px 0 22px;
}
.ab-rhythms__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ab-rhythms__head-title {
  margin: 0;
}
.ab-rhythms__lane {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px;
  margin: 0 -2px;
  scrollbar-width: none;
}
.ab-rhythms__lane::-webkit-scrollbar { display: none; }

.ab-rhythm-card {
  flex: 0 0 220px;
  min-height: 280px;
  border-radius: var(--ab-w-radius);
  border: 1px solid var(--ab-w-line);
  background: linear-gradient(135deg, #d9cfc1 0%, #b9a890 100%);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  scroll-snap-align: start;
  box-shadow: var(--ab-w-shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  isolation: isolate;
}
.ab-rhythm-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ab-w-shadow-md);
}
.ab-rhythm-card:focus-visible {
  outline: 2px solid var(--ab-w-gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .ab-rhythm-card { transition: none; }
  .ab-rhythm-card:hover { transform: none; }
}
.ab-rhythm-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s ease;
}
.ab-rhythm-card:hover .ab-rhythm-card__img {
  transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
  .ab-rhythm-card__img { transition: none; }
  .ab-rhythm-card:hover .ab-rhythm-card__img { transform: none; }
}
.ab-rhythm-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 22, 18, 0.05) 0%, rgba(28, 22, 18, 0.55) 70%, rgba(28, 22, 18, 0.78) 100%);
  z-index: 1;
}
.ab-rhythm-card__caption {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 18px 16px;
  color: #fff;
}
.ab-rhythm-card__rule {
  width: 28px;
  height: 1px;
  background: var(--ab-w-gold);
  margin: 0 0 10px;
}
.ab-rhythm-card__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 4px;
  color: #fff;
  letter-spacing: 0.005em;
}
.ab-rhythm-card__cue {
  font-family: 'Jost', 'Lato', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  color: rgba(255, 251, 240, 0.92);
}

@media (max-width: 520px) {
  .ab-rhythms__lane {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
    padding-bottom: 4px;
  }
  .ab-rhythm-card {
    flex: none;
    min-height: 240px;
  }
  .ab-rhythm-card__caption { min-height: 240px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   2) SHORT WATCHES — keep & polish
   ═══════════════════════════════════════════════════════════════════════ */
.ab-watches {
  margin: 22px 0;
}
.ab-watches__head {
  margin-bottom: 8px;
}
.ab-watches .ab-w-eyebrow {
  margin-bottom: 4px;
}
/* Slot the existing .ab-funny-videos-rail under tighter chrome */
.ab-funny-videos-rail-wrap .ab-funny-videos-rail__heading {
  display: none;
}
.ab-watches .ab-funny-videos-rail-wrap {
  margin-top: 4px;
}
.ab-watches .ab-funny-videos-rail__card {
  border-radius: var(--ab-w-radius-sm);
  border: 1px solid var(--ab-w-line);
  background: var(--ab-w-card);
  box-shadow: var(--ab-w-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.ab-watches .ab-funny-videos-rail__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ab-w-shadow-md);
}
.ab-watches .ab-funny-videos-rail__card:focus-visible {
  outline: 2px solid var(--ab-w-gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .ab-watches .ab-funny-videos-rail__card { transition: none; }
  .ab-watches .ab-funny-videos-rail__card:hover { transform: none; }
}
.ab-watches .ab-funny-videos-rail__title {
  font-family: 'Jost', 'Lato', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ab-w-ink);
}

/* ═══════════════════════════════════════════════════════════════════════
   3) ANCHOR & BLOOM PICKS — keep, slimmer chrome (no trust copy)
   ═══════════════════════════════════════════════════════════════════════ */
.ab-garden-podcasts {
  margin: 22px 0;
  padding: 18px 18px 14px;
  border-radius: var(--ab-w-radius);
  background: var(--ab-w-card);
  border: 1px solid var(--ab-w-line);
  box-shadow: var(--ab-w-shadow-sm);
}
.ab-garden-podcasts__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--ab-w-ink);
}
.ab-garden-podcasts__title::before {
  content: 'Picks';
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ab-w-gold);
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════
   4) SLEEP & SOUND — moonlit, single title, timer kept
   ═══════════════════════════════════════════════════════════════════════ */
.ab-sleep {
  margin: 22px 0;
  padding: 22px 20px 20px;
  border-radius: var(--ab-w-radius);
  border: 1px solid rgba(74, 94, 106, 0.28);
  background: linear-gradient(160deg, #2C3A4A 0%, #43525E 38%, #8B7E6A 78%, #F4E9D6 100%);
  color: #FFF7E6;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--ab-w-shadow-md);
}
.ab-sleep::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 240, 210, 0.22) 0%, transparent 32%),
    radial-gradient(circle at 82% 78%, rgba(255, 240, 210, 0.14) 0%, transparent 38%);
  pointer-events: none;
  z-index: 0;
}
.ab-sleep__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.ab-sleep__eyebrow {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(255, 240, 210, 0.78);
  margin: 0 0 6px;
  text-transform: uppercase;
}
.ab-sleep__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 18px;
  color: #FFF7E6;
}
.ab-sleep__rule {
  width: 32px;
  height: 1px;
  background: rgba(255, 240, 210, 0.55);
  margin: 0 auto 18px;
}
.ab-sleep__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}
.ab-sleep__btn {
  appearance: none;
  background: rgba(255, 247, 230, 0.12);
  border: 1px solid rgba(255, 247, 230, 0.32);
  color: #FFF7E6;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
  min-height: 44px;
}
.ab-sleep__btn:hover {
  background: rgba(255, 247, 230, 0.22);
  transform: translateY(-1px);
}
.ab-sleep__btn:focus-visible {
  outline: 2px solid var(--ab-w-gold);
  outline-offset: 3px;
}
.ab-sleep__btn--on {
  background: rgba(201, 166, 107, 0.32);
  border-color: var(--ab-w-gold);
}
@media (prefers-reduced-motion: reduce) {
  .ab-sleep__btn { transition: none; }
  .ab-sleep__btn:hover { transform: none; }
}

.ab-sleep__dial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 12px auto 14px;
  flex-wrap: wrap;
}
.ab-sleep__vol {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ab-sleep__vol-label {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 247, 230, 0.78);
}
.ab-sleep__vol-input {
  width: 140px;
  accent-color: var(--ab-w-gold);
}
.ab-sleep__timer {
  appearance: none;
  background: rgba(255, 247, 230, 0.12);
  border: 1px solid rgba(255, 247, 230, 0.32);
  color: #FFF7E6;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
  min-height: 44px;
}
.ab-sleep__start {
  appearance: none;
  background: var(--ab-w-gold);
  color: #2A2014;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  min-height: 44px;
  margin-top: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ab-sleep__start:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}
.ab-sleep__start:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .ab-sleep__start { transition: none; }
  .ab-sleep__start:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   5) GENTLE ASSISTANT ROWS — Rest & proof + auto-narrated chips
   ═══════════════════════════════════════════════════════════════════════ */
.ab-gentle {
  margin: 24px 0 12px;
  padding: 0;
}
.ab-gentle__head {
  margin-bottom: 10px;
}

/* Rest & proof hero */
.ab-rest-hero {
  border-radius: var(--ab-w-radius);
  border: 1px solid var(--ab-w-gold-soft);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96) 0%, rgba(244, 233, 214, 0.96) 100%),
    var(--ab-w-card);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--ab-w-shadow-sm);
}
.ab-rest-hero__eyebrow {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ab-w-gold);
  text-transform: uppercase;
  margin: 0;
}
.ab-rest-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ab-w-ink);
  margin: 0;
}
.ab-rest-hero__lede {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ab-w-muted);
  margin: 0;
}
.ab-rest-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.ab-rest-hero__btn {
  appearance: none;
  background: var(--ab-w-card);
  border: 1px solid var(--ab-w-gold);
  color: var(--ab-w-ink);
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.ab-rest-hero__btn:hover {
  background: rgba(201, 166, 107, 0.12);
  transform: translateY(-1px);
}
.ab-rest-hero__btn:focus-visible {
  outline: 2px solid var(--ab-w-gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .ab-rest-hero__btn { transition: none; }
  .ab-rest-hero__btn:hover { transform: none; }
}

/* Assistant-narrated rows */
.ab-gentle__rows {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ab-gentle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--ab-w-radius-sm);
  border: 1px solid var(--ab-w-line);
  background: var(--ab-w-card);
  min-height: 56px;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.ab-gentle-row--done {
  background: linear-gradient(180deg, rgba(244, 233, 214, 0.45) 0%, var(--ab-w-card) 100%);
  border-color: var(--ab-w-gold-soft);
}
.ab-gentle-row__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4e9d6 0%, #e3d4ba 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ab-w-ink);
  font-size: 16px;
}
.ab-gentle-row--done .ab-gentle-row__icon {
  background: linear-gradient(135deg, #efe2c6 0%, var(--ab-w-gold) 100%);
  color: #2A2014;
}
.ab-gentle-row__body {
  flex: 1;
  min-width: 0;
}
.ab-gentle-row__narration {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ab-w-ink);
  margin: 0;
}
.ab-gentle-row__hint {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ab-w-muted);
  margin: 2px 0 0;
}
.ab-gentle-row__check {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ab-w-gold-soft);
  background: transparent;
  color: var(--ab-w-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  min-height: 28px;
  min-width: 28px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.ab-gentle-row__check:focus-visible {
  outline: 2px solid var(--ab-w-gold);
  outline-offset: 3px;
}
.ab-gentle-row--done .ab-gentle-row__check {
  background: var(--ab-w-gold);
  color: #2A2014;
}
@media (prefers-reduced-motion: reduce) {
  .ab-gentle-row,
  .ab-gentle-row__check { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   6) MY TIME header — strip wordy chrome
   ═══════════════════════════════════════════════════════════════════════ */
.ab-home-my-time-hub__hdr--quiet {
  padding: 18px 4px 10px;
  border-bottom: 1px solid var(--ab-w-line);
  margin-bottom: 18px;
}
.ab-home-my-time-hub__hdr--quiet .ab-home-my-time-hub__eyebrow {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ab-w-gold);
  margin: 0 0 6px;
}
.ab-home-my-time-hub__hdr--quiet .ab-home-my-time-hub__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  color: var(--ab-w-ink);
  margin: 0 0 6px;
}
.ab-home-my-time-hub__hdr--quiet .ab-home-my-time-hub__rule {
  width: 36px;
  height: 1px;
  background: var(--ab-w-gold);
  margin-top: 8px;
}
.ab-home-my-time-hub__hdr--quiet .ab-home-my-time-hub__lede { display: none; }

/* ═══════════════════════════════════════════════════════════════════════
   7) Calendar — Screens off by nine soft nudge
   ═══════════════════════════════════════════════════════════════════════ */
.ab-cal-evening-nudge {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: var(--ab-w-radius-sm);
  border: 1px solid var(--ab-w-gold-soft);
  background: linear-gradient(135deg, #faf2e0 0%, #efe1c4 100%);
  display: flex;
  align-items: center;
  gap: 14px;
}
.ab-cal-evening-nudge__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2C3A4A 0%, #43525E 100%);
  color: #FFF7E6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.ab-cal-evening-nudge__body { flex: 1; min-width: 0; }
.ab-cal-evening-nudge__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: var(--ab-w-ink);
  margin: 0;
}
.ab-cal-evening-nudge__sub {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ab-w-muted);
  margin: 2px 0 0;
}

/* Hide the legacy "Care prompts · small rests" details + pills if any leak through */
.ab-home-me-details { display: none !important; }
.ab-garden-social-rail-wrap { display: none !important; }
.ab-garden-feed-disclaimer { display: none !important; }

/* Sleep section — hide the legacy intro paragraph and visible chrome */
.ab-garden-sleep__lede,
.ab-garden-sleep__note {
  display: none !important;
}
.ab-garden-podcasts__sub { display: none !important; }
.garden-quote { display: none !important; }
.garden-customize-btn { display: none !important; }
.ab-garden-customize-disclaimer { display: none !important; }
