/* The slim "ask" bar at the top of guide pages: the homepage question box,
   cut down to one line, on the same tinted band as a question on /ask.
   Submitting opens /ask (assets/help-home.js). Self-contained, because guide
   pages don't load help-site.css. */

/* Cross-document view transition: the bar becomes the question on /ask. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
.ev-askband {
  background: linear-gradient(180deg, #E3F4FD 0%, #F1EEFE 55%, #F6F5FA 100%);
  padding: 22px 32px 18px;
}
.ev-askbar {
  max-width: 820px; height: 58px; margin: 0 auto; box-sizing: border-box;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #DCD7F7; border-radius: 14px;
  padding: 0 8px 0 10px; box-shadow: 0 10px 30px rgba(40, 27, 109, .10);
  view-transition-name: ev-question;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ev-askbar:focus-within { border-color: #593DF3; box-shadow: 0 0 0 3px rgba(89, 61, 243, .14), 0 10px 30px rgba(40, 27, 109, .10); }
.ev-askbar-icon {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: #EEEAFE; color: #593DF3; display: flex; align-items: center; justify-content: center;
}
.ev-askbar-icon svg { width: 18px; height: 18px; }
.ev-askbar input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; line-height: 1.4; color: #020617; padding: 10px 0;
}
.ev-askbar input::placeholder { color: #6B7280; }
.ev-askbar .ev-send {
  flex: none; width: 42px; height: 42px; border-radius: 10px; border: 0; cursor: pointer;
  background: #593DF3; color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.ev-askbar .ev-send:hover { background: #4A30D0; }
.ev-askbar .ev-send:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.ev-askbar .ev-send svg { width: 18px; height: 18px; }
.ev-askband-note { max-width: 820px; margin: 8px auto 0; font-size: 13px; color: #6B7280; text-align: center; }
.ev-askband .ev-notice {
  max-width: 820px; margin: 10px auto 0; padding: 10px 14px; border-radius: 10px;
  background: #FFF7E6; border: 1px solid #F5D9A8; color: #6B4E16; font-size: 14px;
}
.ev-askband .ev-notice[hidden] { display: none; }
.ev-askband .ev-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #593DF3; text-decoration: underline; cursor: pointer; }
@media (max-width: 540px) {
  .ev-askband { padding: 16px 16px 14px; }
  .ev-askbar input { font-size: 16px; }
}
