/* SHUDDHI voice helper (header microphone + panel). Moved out of every page into this cached file (1 Dec 2026). */
.bar .vh-btn { margin: 0 auto; }
@media (min-width: 1100px) { .site-header .bar { grid-template-columns: auto minmax(0, 1fr) auto auto !important; } .bar .vh-btn { margin: 0 6px; } } /* brand | menu | Speak | icons */
/* a small round microphone: red = off, green = on (listening) */
.vh-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; flex: none; z-index: 2;
  background: radial-gradient(circle at 35% 30%, #F87171, #DC2626 60%, #B91C1C); color: #fff; font-size: 1.02rem;
  box-shadow: 0 3px 0 #991B1B, 0 8px 18px -6px rgba(220,38,38,.65); transition: transform .15s, box-shadow .15s, background .2s; }
.vh-btn:hover { transform: translateY(-2px); } .vh-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #991B1B, 0 3px 8px -4px rgba(220,38,38,.6); }
.vh-btn.on { background: radial-gradient(circle at 35% 30%, #4ADE80, #16A34A 60%, #15803D); box-shadow: 0 3px 0 #166534, 0 8px 18px -6px rgba(22,163,74,.7); }
.vh-btn.on::before, .vh-btn.on::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(34,197,94,.75); animation: vhRing 1.6s ease-out infinite; pointer-events: none; }
.vh-btn.on::after { animation-delay: .8s; }
.vh-btn.talk { background: radial-gradient(circle at 35% 30%, #4ADE80, #16A34A 60%, #15803D); } /* she is speaking: still green */
@keyframes vhRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.75); opacity: 0; } }
@media (max-width: 767px) { .vh-btn { width: 34px; height: 34px; font-size: .9rem; } }
/* phones: the header row must fit (logo · Speak · language · search · account · menu) without anything cut off */
@media (max-width: 1099px) { .site-header .bar { gap: 8px; } .site-header .right-side { flex: none; min-width: 0; } }
@media (max-width: 480px) {
  .mobile-actions, .gf .mobile-actions { gap: 6px !important; }
  .mobile-actions .icon-btn, .mobile-actions .hdr-login-icon { width: 40px !important; height: 40px !important; min-width: 40px; font-size: .95rem; position: relative; }
  .mobile-actions .icon-btn::after, .mobile-actions .hdr-login-icon::after { content: ""; position: absolute; inset: -3px; } /* 46 px to the thumb */
  .site-header .brand img { max-width: 74px; height: auto; }
}
@media (max-width: 360px) { .mobile-actions, .gf .mobile-actions { gap: 4px !important; } .mobile-actions .icon-btn, .mobile-actions .hdr-login-icon { width: 38px !important; height: 38px !important; min-width: 38px; } }
@media (max-width: 330px) { .mobile-actions .icon-btn, .mobile-actions .hdr-login-icon { width: 34px !important; height: 34px !important; min-width: 34px; } }
.vh-panel { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); width: min(520px, calc(100vw - 20px)); max-height: calc(100vh - 150px); overflow: auto; z-index: 3000;
  background: #fff; border-radius: 22px; box-shadow: 0 24px 60px -12px rgba(30,16,60,.45), 0 0 0 1px rgba(124,58,237,.15); padding: 16px 16px 14px; color: #1F1A3D; }
.vh-panel[hidden] { display: none; }
.vh-top { display: flex; align-items: center; gap: 10px; } .vh-top b { flex: 1; font-size: 1.02rem; }
.vh-wave { display: inline-flex; gap: 3px; align-items: center; height: 22px; } .vh-wave i { width: 4px; height: 6px; border-radius: 4px; background: #DB2777; }
.vh-panel.listening .vh-wave i { animation: vhWave 1s ease-in-out infinite; background: #16A34A; } .vh-wave i:nth-child(2) { animation-delay: .15s !important; } .vh-wave i:nth-child(3) { animation-delay: .3s !important; } .vh-wave i:nth-child(4) { animation-delay: .45s !important; }
@keyframes vhWave { 50% { height: 20px; } }
.vh-lang, .vh-x { border: 1px solid #E9E5F5; background: #F7F5FF; border-radius: 999px; height: 32px; padding: 0 10px; font-weight: 800; cursor: pointer; color: #5B21B6; }
.vh-x { width: 32px; padding: 0; font-size: 1.1rem; }
.vh-heard { margin: 12px 0 6px; min-height: 1.4em; font-size: 1.05rem; font-weight: 700; color: #1F1A3D; } .vh-heard:empty::before { content: attr(data-empty); color: #9A93B5; font-weight: 600; }
.vh-said { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; background: #ECFDF5; color: #065F46; font-size: .95rem; } .vh-said:empty { display: none; }
.vh-said.warn { background: #FFF7ED; color: #9A3412; }
.vh-rep { display: block; width: 100%; margin: 0 0 10px; height: 40px; border: 0; border-radius: 12px; background: #DB2777; color: #fff; font: inherit; font-weight: 800; cursor: pointer; } .vh-rep[hidden] { display: none; }
.vh-talk { display: block; width: 100%; margin: 0 0 10px; height: 48px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #7C3AED, #DB2777); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 800; cursor: pointer; box-shadow: 0 4px 0 #5B21B6; } .vh-talk[hidden] { display: none; }
.vh-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; } .vh-links a { padding: 8px 12px; border-radius: 999px; background: #7C3AED; color: #fff; font-weight: 800; text-decoration: none; font-size: .9rem; }
.vh-try { font-size: .84rem; color: #5B5876; } .vh-try summary { cursor: pointer; font-weight: 800; color: #5B21B6; }
.vh-try ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }
.vh-type { display: flex; gap: 8px; margin-top: 10px; } .vh-type input { flex: 1; min-width: 0; height: 40px; border: 1px solid #E9E5F5; border-radius: 12px; padding: 0 12px; font: inherit; }
.vh-type button { height: 40px; border: 0; border-radius: 12px; padding: 0 14px; background: #7C3AED; color: #fff; font-weight: 800; }
.vh-note { font-size: .76rem; color: #8A84A6; margin: 8px 0 0; }
/* phones: a short sheet at the bottom (above the bottom bar) so the form on the page stays visible */
@media (max-width: 767px) {
  .vh-panel { top: auto; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); max-height: 42vh; padding: 12px 14px 10px; border-radius: 20px; }
  .vh-heard { margin: 8px 0 4px; font-size: .98rem; } .vh-said { padding: 8px 10px; font-size: .9rem; margin-bottom: 8px; }
  .vh-note { display: none; } .vh-type { margin-top: 8px; } .vh-type input, .vh-type button { height: 38px; }
}
#vhFrame { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2900; background: #fff; }
html.vh-framed, html.vh-framed body { overflow: hidden; }
.vh-glow { outline: 4px solid #F59E0B !important; outline-offset: 4px; border-radius: 10px; animation: vhGlow 1.2s ease-in-out infinite; }
@keyframes vhGlow { 50% { outline-color: #DB2777; } }
@media (prefers-reduced-motion: reduce) { .vh-btn.on::before, .vh-btn.on::after, .vh-glow, .vh-panel.listening .vh-wave i { animation: none; } }
