/* =====================================================================
   TEDY v58 — poster-hotspot layer (last CSS layer).
   The new dashboard artwork prints its own «መግቢያ», «ምርቶቻችን» and
   «ይደውሉ» gold pills. This layer makes those painted pills clickable:
   invisible, precisely positioned hotspots that sit exactly on the art,
   plus a subtle glow pulse on the call pill and the same real-button
   press response as v56. The floating v56 call button (fab) is removed;
   the call control now lives inside the artwork itself.
   Selectors are duplicated for body[data-tedy-bright].
   ===================================================================== */

/* ------------------------------------------------------------------ 1
   Remove the floating call button (markup already deleted; belt and
   braces in case an older page shell is still cached).
--------------------------------------------------------------------- */
#page-home.home-page .tedyy-call-fab,
body[data-tedy-bright] #page-home.home-page .tedyy-call-fab {
  display: none !important;
}

/* ------------------------------------------------------------------ 2
   Hotspot base: fully transparent, positioned over the painted pill.
   Geometry (percent of the 9:16 frame, measured from the artwork):
     (v62 artwork) menu x 3.0..33.0%   y 1.1..6.4%
     cta   x 20.0..78.0%  y 81.2..90.9%
     call  x 43.0..61.0%  y 91.0..95.3%
     (v63: tightened so the arrow disc below owns
      y 96.0..99.2% cleanly)
--------------------------------------------------------------------- */
#page-home.home-page .tedyy-v58-hot,
body[data-tedy-bright] #page-home.home-page .tedyy-v58-hot {
  position: absolute !important;
  display: block !important;
  z-index: 5 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  cursor: pointer !important;
  text-decoration: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  border-radius: 999px !important;
  transition: transform .14s cubic-bezier(.22, .61, .36, 1),
              background .18s ease, box-shadow .22s ease !important;
}
#page-home.home-page .tedyy-v58-menu,
body[data-tedy-bright] #page-home.home-page .tedyy-v58-menu {
  left: 3.0% !important;
  top: 1.1% !important;
  width: 30.0% !important;
  height: 5.3% !important;
}
#page-home.home-page .tedyy-v58-cta,
body[data-tedy-bright] #page-home.home-page .tedyy-v58-cta {
  left: 20.0% !important;
  top: 81.2% !important;
  width: 58.0% !important;
  height: 9.7% !important;
}
#page-home.home-page .tedyy-v58-call,
body[data-tedy-bright] #page-home.home-page .tedyy-v58-call {
  left: 43.0% !important;
  top: 91.0% !important;
  width: 18.0% !important;
  height: 4.3% !important;
}

/* ------------------------------------------------------------------ 3
   Soft "alive" ring around the call pill only — the artwork already
   sells the gold, so this is a whisper: a breathing outer glow.
--------------------------------------------------------------------- */
#page-home.home-page .tedyy-v58-call::after,
body[data-tedy-bright] #page-home.home-page .tedyy-v58-call::after {
  content: "" !important;
  position: absolute !important;
  inset: 4% 2% !important;
  border-radius: 999px !important;
  pointer-events: none !important;
  box-shadow: 0 0 0 0 rgba(255, 200, 70, 0) !important;
  animation: tedyy-v58-glow 3.2s ease-out infinite !important;
}

/* ------------------------------------------------------------------ 4
   Interaction states. The pills are printed in the artwork, so press
   feedback is painted by the hotspot itself: a translucent darkening
   plate (the universal "button went down" cue) that fades away on
   release, plus a slight scale that moves the glow ring.
--------------------------------------------------------------------- */
#page-home.home-page .tedyy-v58-hot:hover,
body[data-tedy-bright] #page-home.home-page .tedyy-v58-hot:hover {
  box-shadow: 0 0 16px 2px rgba(255, 205, 92, .22) !important;
  background: radial-gradient(ellipse at 50% 42%,
    rgba(255, 232, 160, .10) 0%,
    rgba(255, 232, 160, .04) 55%,
    rgba(0, 0, 0, 0) 78%) !important;
}
#page-home.home-page .tedyy-v58-hot:active,
#page-home.home-page .tedyy-v58-hot.tedyy-v58-pressed,
body[data-tedy-bright] #page-home.home-page .tedyy-v58-hot:active,
body[data-tedy-bright] #page-home.home-page .tedyy-v58-hot.tedyy-v58-pressed {
  transform: translateY(2px) scale(.972) !important;
  background: radial-gradient(ellipse at 50% 42%,
    rgba(16, 10, 2, .34) 0%,
    rgba(16, 10, 2, .22) 55%,
    rgba(16, 10, 2, .06) 78%,
    rgba(0, 0, 0, 0) 100%) !important;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, .35),
    0 0 0 1px rgba(255, 214, 120, .30) !important;
}
#page-home.home-page .tedyy-v58-hot.tedyy-v58-pressed::after,
body[data-tedy-bright] #page-home.home-page .tedyy-v58-hot.tedyy-v58-pressed::after {
  animation-play-state: paused !important;
}
#page-home.home-page .tedyy-v58-hot:focus-visible,
body[data-tedy-bright] #page-home.home-page .tedyy-v58-hot:focus-visible {
  outline: 2px solid #ffd23f !important;
  outline-offset: 2px !important;
  border-radius: 999px !important;
}

/* ------------------------------------------------------------------ 5
   Keyframes.
--------------------------------------------------------------------- */
@keyframes tedyy-v58-glow {
  0%   { box-shadow: 0 0 0 0 rgba(255, 214, 120, 0); }
  35%  { box-shadow: 0 0 14px 3px rgba(255, 205, 92, .38); }
  70%  { box-shadow: 0 0 22px 6px rgba(255, 196, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 196, 64, 0); }
}

/* ------------------------------------------------------------------ 6
   Short/landscape windows: frame shrinks with the artwork; percentages
   keep the hotspots aligned, nothing else to change.
--------------------------------------------------------------------- */

/* ------------------------------------------------------------------ 7
   Reduced motion: no glow, press feedback stays (it is instantaneous).
--------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  #page-home.home-page .tedyy-v58-call::after,
  body[data-tedy-bright] #page-home.home-page .tedyy-v58-call::after {
    animation: none !important;
    box-shadow: 0 0 12px 2px rgba(255, 205, 92, .25) !important;
  }
  #page-home.home-page .tedyy-v58-hot,
  body[data-tedy-bright] #page-home.home-page .tedyy-v58-hot {
    transition: none !important;
  }
}
