/* senior.css — platform-wide senior-friendly floor (UX audit P1/P2 wedge).
   Loaded LAST on customer-facing pages. Theme-neutral: sizes, focus,
   motion, and tap targets only — never colors or layout. */

/* 16px floor on running text. Element selectors only, loaded after page
   styles, so page element rules lose but intentional class-styled small
   labels (eyebrows, mono chips) keep their size. */
body :is(p, li, blockquote, label, input, select, textarea, summary) {
  font-size: max(1em, 16px);
}
body :is(p, li, blockquote) { line-height: 1.55; }

/* Buttons and primary actions: readable text, 48px minimum tap target. */
button, .btn, input[type="submit"], input[type="button"] {
  font-size: max(1em, 16px);
  min-height: 48px;
}
input, select, textarea { min-height: 44px; }

/* Keyboard focus must be visible everywhere. */
:focus-visible {
  outline: 3px solid #7FB2FF !important;
  outline-offset: 2px !important;
}

/* Respect reduced-motion system setting. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* "Rather talk?" chip (injected by /assets/herb-chip.js) */
#herb-talk-chip {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  min-height: 52px;
  border-radius: 999px;
  background: #F59E0B;
  color: #1a1206;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  border: 2px solid rgba(0, 0, 0, .15);
}
#herb-talk-chip:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .4); }
#herb-talk-chip .htc-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 2px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .14);
  color: #1a1206;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  min-height: 28px; /* deliberate exception to the 48px rule: secondary dismiss */
}
@media (max-width: 640px) {
  #herb-talk-chip { right: 12px; bottom: 12px; font-size: 16px; padding: 12px 16px; }
  #herb-talk-chip .htc-label-long { display: none; }
}
