/* v719: a calmer home hero, in every language. Only what was already there:
   the art (with a small Switch pill on its corner), the slot title with one line
   under it (Fresh meditations every day), Begin, and Best with headphones as a
   tiny muted line at the end.
   - The sit name (Fresh Light) is no longer shown; it stays inside the heading as
     visually hidden text, so screen readers still hear "Morning Meditation, Fresh Light".
   - "The stamp is ready when you are." is not shown in the hero (the link and its
     script stay; the after-sit screen still offers the stamp).
   - Switch keeps its button, label and behaviour; it is a slim 26px pill on the
     art's top-right corner, with a 44px tap target (transparent band around it).
   - Layout only while the card is idle; a live sit keeps its own layout.
   - Reduced motion: nothing here animates. */
body.page-sit #day-home #go-stamp {
  display: none !important;
}
body.page-sit #day-home .day-sit-name {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Idle card: art → title → one line → Begin → headphones. */
body.page-sit #day-home:has(.sit-now.is-idle) {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
body.page-sit #day-home:has(.sit-now.is-idle) > .phase-one {
  display: contents;
}
body.page-sit #day-home:has(.sit-now.is-idle) .phase-art {
  order: 0;
  position: relative;
  margin: 0 0 0.95rem;
}
body.page-sit #day-home:has(.sit-now.is-idle) > .sit-name-line {
  order: 1;
  margin: 0 0 0.3rem;
}
body.page-sit #day-home:has(.sit-now.is-idle) > .day-daily {
  order: 2;
}
body.page-sit #day-home:has(.sit-now.is-idle) > .sit-now {
  order: 3;
}
body.page-sit #day-home:has(.sit-now.is-idle) > .phase-one > .sit-headphones {
  order: 4;
  align-self: center;
  position: relative;
  margin: 0.7rem auto 0.35rem;
  gap: 0.45rem;
  font-size: 13.5px; /* v721: was 0.74rem (11.84px) */
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #857a5a; /* v720: rgba(246,227,168,.5) was 4.37:1 on the card; this solid tone clears AA (4.5:1) */
}
body.page-sit #day-home:has(.sit-now.is-idle) > .phase-one > .sit-headphones .sit-headphones-icon {
  width: 21px; /* v721: was 15px */
  height: 21px;
  stroke: #d4af37;
  stroke-width: 1.35;
  opacity: 1;
  animation: none;
  filter: none;
}

/* Switch: a slim glass pill on the art's top-right corner. The art is the first
   thing in the card, so the card's top edge is the art's top edge. */
html:is([lang], :not([lang])) body.page-sit #day-home:has(.sit-now.is-idle) .phase-switch {
  order: 0;
  position: absolute;
  z-index: 2;
  top: calc(var(--hero-pad-top, 0px) + 2px);
  right: 2px;
  box-sizing: border-box;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 0.75rem;
  border: 9px solid transparent;
  border-width: 9px 6px;
  background-clip: padding-box;
  background-color: rgba(12, 9, 6, 0.66);
  box-shadow: inset 0 0 0 1px rgba(232, 200, 120, 0.6);
  /* no backdrop blur: it would blur the whole 44px tap box, not just the pill */
  color: rgba(248, 236, 206, 0.92);
  font-size: 0.64rem;
  line-height: 1;
  letter-spacing: 0.14em;
}
html:is([lang="hi"], [data-lang="hi"], [lang="pa"], [data-lang="pa"], [lang="ko"], [data-lang="ko"], [lang="ja"], [data-lang="ja"], [lang^="zh"], [data-lang^="zh"]) body.page-sit #day-home:has(.sit-now.is-idle) .phase-switch {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
html:is([lang], :not([lang])) body.page-sit #day-home:has(.sit-now.is-idle) .phase-switch:focus-visible {
  outline: 2px solid rgba(243, 226, 168, 0.95);
  outline-offset: -8px;
}

/* v720: one muted line under the title: "Today's meditation · <sit name>".
   The name is a second [data-day-sit-name] element, so day-home.js updates it on
   Switch together with the heading's (visually hidden) copy. It is aria-hidden
   here because the heading already announces it. One line; an ellipsis if it
   ever runs long. (Swap back: "Fresh meditations every day" is still in every
   dictionary.) */
body.page-sit #day-home .day-daily {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.page-sit #day-home .day-daily-name::before {
  content: " \00B7  ";
  white-space: pre;
}
body.page-sit #day-home .day-daily-name[hidden] {
  display: none;
}

/* v721: Best with headphones is a little larger (13.5px text, 14px in Hindi and
   Punjabi; a 21px gold icon) and a tiny star glints softly near the right earcup
   about every 7 s (opacity and transform only). The star is decoration on the line
   itself (no text, so nothing is announced); the icon stays aria-hidden and the
   words are the accessible content. Reduced motion: no star, static icon. */
html:is([lang="hi"], [data-lang="hi"], [lang="pa"], [data-lang="pa"]) body.page-sit #day-home:has(.sit-now.is-idle) > .phase-one > .sit-headphones {
  font-size: 14px;
}
body.page-sit #day-home:has(.sit-now.is-idle) > .phase-one > .sit-headphones::after {
  content: "";
  position: absolute;
  left: 13px;   /* over the top of the right earcup of the 21px icon */
  top: calc(50% - 7px);
  width: 9px;
  height: 9px;
  pointer-events: none;
  background:
    linear-gradient(#fff4cf, #fff4cf) center / 1px 100% no-repeat,
    linear-gradient(#fff4cf, #fff4cf) center / 100% 1px no-repeat,
    radial-gradient(circle, rgba(255, 238, 180, 0.95) 0 1.2px, rgba(240, 200, 110, 0.35) 2px, transparent 4px);
  opacity: 0;
  transform: scale(0.3) rotate(0deg);
}
@media (prefers-reduced-motion: no-preference) {
  body.page-sit #day-home:has(.sit-now.is-idle) > .phase-one > .sit-headphones::after {
    will-change: transform, opacity;
    animation: dd-hp-glint 7s ease-in-out 2.5s infinite;
  }
}
@keyframes dd-hp-glint {
  0%, 84%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  90% { opacity: 0.95; transform: scale(1) rotate(45deg); }
  95% { opacity: 0.4; transform: scale(0.7) rotate(70deg); }
}
@media (prefers-reduced-motion: reduce) {
  body.page-sit #day-home:has(.sit-now.is-idle) > .phase-one > .sit-headphones::after {
    content: none;
    animation: none;
  }
}

/* v722: today's meditation length at the end of the muted line ("Today's
   meditation · Fresh Light · 3 min"), same ink as the line, never smaller than
   14px. If the whole line will not fit, sit/hero-length.js sets data-length-wrap
   and the length takes its own line just under it (no separator). */
body.page-sit #day-home .day-daily-length {
  font-size: max(14px, 1em);
  font-variant-numeric: tabular-nums;
}
body.page-sit #day-home .day-daily-length::before {
  content: " \00B7  ";
  white-space: pre;
}
body.page-sit #day-home .day-daily-length[hidden] {
  display: none;
}
body.page-sit #day-home .day-daily[data-length-wrap] .day-daily-length {
  display: block;
}
body.page-sit #day-home .day-daily[data-length-wrap] .day-daily-length::before {
  content: none;
}

/* v722: Begin gets a slower, softer diagonal light: one gold-white band crosses
   in 1.2 s, then rests, every 6 s (it replaces the v707 background-position
   sweep on this button only). The band is a skewed ::before that moves with
   transform and fades with opacity only, painted under the label (z-index -1
   inside the button's own isolated stack), so the dark label stays fully legible.
   Timing: Begin sweeps at 1.5 s, 7.5 s, 13.5 s ...; the headphones glint shares
   the same 6 s beat but 3 s later, so they never sparkle together.
   Reduced motion: no band, no animation. */
body.page-sit button#begin-sit.btn::before {
  inset: -30% auto -30% 0;
  width: 34%;
  border-radius: 0;
  background: linear-gradient(90deg,
    rgba(255, 246, 214, 0) 0%,
    rgba(255, 244, 205, 0.28) 30%,
    rgba(255, 253, 244, 0.62) 50%,
    rgba(255, 244, 205, 0.28) 70%,
    rgba(255, 246, 214, 0) 100%);
  background-size: auto;
  background-position: 0 0;
  opacity: 0;
  transform: translateX(-115%) skewX(-22deg);
  will-change: transform, opacity;
  animation: dd-begin-sweep 6s cubic-bezier(0.37, 0, 0.63, 1) 1.5s infinite;
}
@keyframes dd-begin-sweep {
  0% { transform: translateX(-115%) skewX(-22deg); opacity: 0; }
  5% { opacity: 1; }
  15% { opacity: 1; }
  20% { transform: translateX(305%) skewX(-22deg); opacity: 0; }
  100% { transform: translateX(305%) skewX(-22deg); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  /* v722: the v721 glint moves onto Begin's 6 s beat, 3 s after each sweep
     (it shows about 5.0-5.7 s into its cycle; -0.5 s puts that at 4.5-5.2 s,
     between Begin's sweeps at 0-1.2 s). Same look, same keyframes. */
  body.page-sit #day-home:has(.sit-now.is-idle) > .phase-one > .sit-headphones::after {
    animation: dd-hp-glint 6s ease-in-out -0.5s infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.page-sit button#begin-sit.btn::before {
    content: none;
    animation: none;
  }
}

/* v724: a quieter, classier Begin. Roughly the width of the line above it
   ("Today's meditation · Fresh Light · 3 min"): at least 280px (320px from
   768px wide), centred, 50px tall (a 50px tap
   target, more than 44). It grows to fit a longer label and never wraps.
   - Label: the title serif, Cormorant Garamond 600, 21px, a touch of tracking
     (0.04em). Hindi and Punjabi: Noto Sans Devanagari / Gurmukhi 500 at 19px,
     tracking 0 (the v700 rule keeps 0 for hi, pa, ko, ja and zh). Korean,
     Japanese and Chinese: their own sans at 500, 18px. Dark #1a1000 on the gold.
   - A small line lotus (19px, the label's dark ink at 85%) before the label. It is
     CSS (::after with an inline SVG mask), so it is never read out and survives
     sit.js rewriting the label ("Continue").
   - The 6 s light sweep (v722 ::before) and reduced motion stay as they were; the
     outer glow and rim are a little softer on the smaller button. */
body.page-sit #day-home .sit-now.is-idle .actions {
  justify-content: center;
}
html:is([lang], :not([lang])) body.page-sit #day-home .sit-now.is-idle button#begin-sit.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  align-self: center;
  box-sizing: border-box;
  width: auto;
  min-width: min(100%, 280px);
  max-width: 100%;
  min-height: 50px;
  height: 50px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.6rem;
  font-family: "Cormorant Garamond", "Noto Serif", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  border-color: rgba(147, 96, 15, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 254, 244, 0.9),
    inset 0 0 0 1px rgba(255, 236, 178, 0.22),
    inset 0 -3px 6px -2px rgba(110, 64, 4, 0.3),
    0 0 0 1px rgba(214, 160, 52, 0.16),
    0 0 14px 1px rgba(240, 184, 72, 0.2),
    0 8px 20px -10px rgba(0, 0, 0, 0.6);
}
html:is([lang], :not([lang])) body.page-sit #day-home .sit-now.is-idle button#begin-sit.btn:active {
  box-shadow:
    inset 0 2px 6px rgba(100, 58, 2, 0.38),
    0 0 0 1px rgba(214, 160, 52, 0.14),
    0 0 10px 1px rgba(240, 184, 72, 0.16);
}
html:is([lang], :not([lang])) body.page-sit #day-home .sit-now.is-idle button#begin-sit.btn::after {
  content: "";
  order: -1;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  background-color: rgba(26, 16, 0, 0.85);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.5c2 2.3 3 4.8 3 7.4 0 2.7-1.2 4.8-3 6.1-1.8-1.3-3-3.4-3-6.1 0-2.6 1-5.1 3-7.4z'/%3E%3Cpath d='M9.3 9.9C7.1 9.1 4.9 9.2 3 10.2c.5 3.8 3.8 7 9 7.8'/%3E%3Cpath d='M14.7 9.9c2.2-.8 4.4-.7 6.3.3-.5 3.8-3.8 7-9 7.8'/%3E%3Cpath d='M5.5 20h13'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.5c2 2.3 3 4.8 3 7.4 0 2.7-1.2 4.8-3 6.1-1.8-1.3-3-3.4-3-6.1 0-2.6 1-5.1 3-7.4z'/%3E%3Cpath d='M9.3 9.9C7.1 9.1 4.9 9.2 3 10.2c.5 3.8 3.8 7 9 7.8'/%3E%3Cpath d='M14.7 9.9c2.2-.8 4.4-.7 6.3.3-.5 3.8-3.8 7-9 7.8'/%3E%3Cpath d='M5.5 20h13'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
@media (min-width: 768px) {
  html:is([lang], :not([lang])) body.page-sit #day-home .sit-now.is-idle button#begin-sit.btn {
    min-width: 320px;
  }
}
html:is([lang="hi"], [data-lang="hi"]) body.page-sit #day-home .sit-now.is-idle button#begin-sit.btn {
  font-family: "Noto Sans Devanagari", "Nirmala UI", Mangal, sans-serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}
html:is([lang="pa"], [data-lang="pa"]) body.page-sit #day-home .sit-now.is-idle button#begin-sit.btn {
  font-family: "Noto Sans Gurmukhi", Raavi, "Nirmala UI", sans-serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}
html:is([lang="ko"], [data-lang="ko"], [lang="ja"], [data-lang="ja"], [lang^="zh"], [data-lang^="zh"]) body.page-sit #day-home .sit-now.is-idle button#begin-sit.btn {
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
}

/* v725: on wide screens (1280px and up) sit.css caps the art at 40vh x 16/9 and
   centres it with margin-inline: auto; the idle hero margin above had pinned it
   left. Centre it again (as live does), and keep Switch on the art's top-right
   corner: the card is the anchor, so step in by half the gap beside the art.
   Below 1280px the art fills the card and max() keeps right: 2px, so phones
   are unchanged. */
@media (min-width: 1280px) {
  body.page-sit #day-home:has(.sit-now.is-idle) .phase-art {
    margin-left: auto;
    margin-right: auto;
  }
  html:is([lang], :not([lang])) body.page-sit #day-home:has(.sit-now.is-idle) .phase-switch {
    right: max(2px, calc((100% - 40vh * 16 / 9) / 2 + 0.4px));
  }
}
