/* t1435 Glance hero: 3 readable beats, reserved caption, ring never on the email.
   Override only. Existing Outlook window, Do It glass, logo glow, and Done / Undo stay.
   Glance blue only. */

#hero{
  --beat-head:56px;
  --beat-cap-h:28px;
  --beat-ring-slot:36px;
  --beat-gap:6px;
}
@media (max-width:759px){
  #hero{
    --beat-head:52px;
    --beat-cap-h:40px;
    --beat-ring-slot:40px;
    --beat-gap:6px;
  }
}

#hero .hero-beat-cap{
  position:absolute;
  left:0;
  right:0;
  top:calc(var(--beat-head) + var(--beat-gap));
  height:var(--beat-cap-h);
  margin:0;
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  pointer-events:none;
  z-index:6;
  overflow:hidden;
  opacity:0;
  color:#1d1d1f;
  font-family:"Inter Tight",-apple-system,system-ui,sans-serif;
  font-style:normal;
  font-weight:500;
  font-size:16px;
  line-height:1.25;
  letter-spacing:-.014em;
  text-align:center;
  text-wrap:balance;
}
#hero .hero-beat-cap-txt{
  /* Avoid -webkit-box/line-clamp: it breaks RTL and left-aligns the product name. */
  display:block;
  overflow:hidden;
  max-width:min(720px,100%);
  font-style:normal;
}
html[lang=he] #hero .hero-beat-cap,
html[lang=he] #hero .hero-beat-cap-txt{
  font-family:Heebo,"Inter Tight",sans-serif;
  font-style:normal;
  font-size:16.5px;
  letter-spacing:0;
}
html[data-theme=dark] #hero .hero-beat-cap{
  color:#F5F5F7;
}
@media (max-width:759px){
  #hero .hero-beat-cap{font-size:14.5px;padding:0 12px}
  html[lang=he] #hero .hero-beat-cap,
  html[lang=he] #hero .hero-beat-cap-txt{font-size:15px}
}

/* One caption only: the dock "reading the email" label would compete with the beat line. */
#hero .dock-label{opacity:0 !important;visibility:hidden}

/* Existing underline language, just readable: 2px, a bit more of Glance blue. Not a chip, not a glow. */
#hero{--ul:rgba(0,113,227,.62);--ul-done:rgba(0,113,227,.78)}
html[data-theme=dark] #hero{--ul:rgba(0,113,227,.72);--ul-done:rgba(96,168,240,.86)}
#hero .intent{
  background-size:calc(var(--u,0) * 100%) 2px;
}

/* Keep the pinned stage from leaking sideways on 320. Do not clip Y: logo glow and ring stay visible. */
#hero,#hero .stage{overflow-x:clip}

html[lang=he] #hero .hero-beat-cap{direction:rtl}
html:not([lang=he]) #hero .hero-beat-cap{direction:ltr}

/* Short phones: keep the reserved slot, but spend less height so Do It still fits. */
@media (max-width:759px) and (max-height:700px){
  #hero{
    --beat-cap-h:36px;
    --beat-ring-slot:32px;
    --beat-gap:4px;
  }
}
/* iPhone SE-class: even tighter so the card does not climb over the email. */
@media (max-width:380px) and (max-height:700px){
  #hero{
    --beat-cap-h:32px;
    --beat-ring-slot:28px;
    --beat-gap:3px;
  }
  #hero .hero-beat-cap{font-size:13.5px;padding:0 10px}
  html[lang=he] #hero .hero-beat-cap,
  html[lang=he] #hero .hero-beat-cap-txt{font-size:14px}
}

/* SE leftover: the existing short-phone rule pulls the card up 24px (visual only).
   With the reserved caption/ring slot that climb covers the email. Keep scale, drop the lift. */
@media (max-width:360px) and (max-height:640px){
  #hero #addin,
  #hero #addin:where(.gxh,.gxh *){
    translate:0 0;
  }
}
