/* H&W helper (approved 21 Nov 2026): a self-contained question-and-answer helper.
   Uses each page's own design tokens; no external fonts, services or tracking. */
.hwh {
  --hwh-green: var(--green, var(--forest, #143e34));
  --hwh-deep: var(--dark, var(--deep, #102c27));
  --hwh-ivory: var(--ivory, var(--cream, #f7f5ee));
  --hwh-sage: var(--sage, var(--mint, #c8d8cb));
  --hwh-ink: var(--ink, #19342e);
  --hwh-muted: var(--muted, #5e6e65);
  font-family: inherit;
  color: var(--hwh-ink);
  line-height: 1.5;
}
.hwh *, .hwh *::before, .hwh *::after { box-sizing: border-box; }

/* Floating carrot button */
.hwh-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 9000;
  width: 88px; height: 88px; padding: 0; border-radius: 50%;
  border: 2px solid var(--hwh-sage); background: var(--hwh-ivory);
  box-shadow: 0 10px 26px rgba(16, 44, 39, .22), 0 2px 6px rgba(16, 44, 39, .12);
  cursor: pointer; overflow: hidden;
  animation: hwh-bob 6s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hwh-launch img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hwh-launch:hover { transform: scale(1.06); box-shadow: 0 14px 30px rgba(16, 44, 39, .28); animation-play-state: paused; }
.hwh-launch:focus-visible, .hwh button:focus-visible, .hwh a:focus-visible { outline: 3px solid #c8e4ad; outline-offset: 3px; }
.hwh-open .hwh-launch { animation: none; }
/* Tablets: hidden on the first screen until the visitor scrolls or uses the keyboard (owner, 21 Nov 2026) */
.hwh-launch { transition: transform .2s ease, box-shadow .2s ease, opacity .3s ease, visibility .3s; }
.hwh-wait .hwh-launch { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes hwh-bob { 0%, 82%, 100% { transform: translateY(0) rotate(0); } 88% { transform: translateY(-5px) rotate(-4deg); } 94% { transform: translateY(0) rotate(3deg); } }

/* Chat window */
.hwh-panel {
  position: fixed; right: 22px; bottom: 124px; z-index: 9001;
  width: 380px; max-height: min(620px, calc(100vh - 156px));
  display: flex; flex-direction: column;
  background: var(--hwh-ivory); border: 1px solid rgba(20, 62, 52, .12); border-radius: 22px;
  box-shadow: 0 24px 60px rgba(16, 44, 39, .28);
  overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right;
  transition: opacity .18s ease, transform .18s ease;
}
.hwh-panel[hidden] { display: none; }
.hwh-open .hwh-panel { opacity: 1; transform: none; }
.hwh-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--hwh-green); color: #f7f6f0; }
.hwh-head img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--hwh-sage); background: var(--hwh-ivory); flex: none; }
.hwh-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.2; color: #f7f6f0; }
.hwh-sub { margin: 2px 0 0; font-size: 12.5px; color: #c8e4ad; }
.hwh-close {
  margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(247, 246, 240, .12); color: #f7f6f0; font: inherit; font-size: 22px; line-height: 1;
}
.hwh-close:hover { background: rgba(247, 246, 240, .22); }
.hwh-body { padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.hwh-bubble { margin: 0 0 14px; padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: #fff; border: 1px solid rgba(20, 62, 52, .1); font-size: 15px; }
.hwh-bubble p { margin: 0 0 9px; }
.hwh-bubble p:last-child, .hwh-bubble ul:last-child { margin-bottom: 0; }
.hwh-bubble ul { margin: 0 0 9px; padding-left: 18px; }
.hwh-bubble li { margin: 0 0 6px; }
.hwh-greet { background: var(--hwh-sage); border-color: transparent; font-weight: 700; color: var(--hwh-deep); }
.hwh-asked { margin: 0 0 12px auto; max-width: 85%; padding: 10px 14px; border-radius: 16px 4px 16px 16px; background: var(--hwh-green); color: #f7f6f0; font-size: 15px; font-weight: 700; width: fit-content; }
.hwh-asked:focus { outline: none; }
.hwh-qs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hwh-q {
  width: 100%; text-align: left; padding: 11px 14px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid rgba(20, 62, 52, .22); background: #fff; color: var(--hwh-green);
  font: inherit; font-size: 14.5px; font-weight: 700; line-height: 1.35;
  transition: background .15s ease, border-color .15s ease;
}
.hwh-q:hover { background: var(--hwh-sage); border-color: var(--hwh-green); }
.hwh-more, .hwh-back {
  margin-top: 10px; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  border: 0; background: transparent; color: var(--hwh-green);
  font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.hwh-more:hover, .hwh-back:hover { background: rgba(20, 62, 52, .07); }
.hwh-link {
  display: inline-block; margin: 2px 0 12px; padding: 10px 16px; border-radius: 999px;
  background: var(--hwh-green); color: #f7f6f0 !important; font-size: 14px; font-weight: 700; text-decoration: none;
}
.hwh-link:hover { background: var(--hwh-deep); }
.hwh-soon { display: inline-block; margin-top: 2px; padding: 3px 10px; border-radius: 999px; background: #c8e4ad; color: var(--hwh-deep); font-size: 13px; font-weight: 700; }

/* Tablets and phones: a little extra space under the page footer, so its last line is never left under the carrot */
@media (max-width: 1000px) { body > footer { padding-bottom: 122px !important; } }
@media (max-width: 600px) { body > footer { padding-bottom: 96px !important; } }

/* Phones: the window slides up from the bottom; the carrot is a little smaller */
@media (max-width: 600px) {
  .hwh-launch { right: 14px; bottom: 14px; width: 68px; height: 68px; }
  .hwh-panel { left: 0; right: 0; bottom: 0; width: 100%; max-height: 86vh; border-radius: 20px 20px 0 0; transform: translateY(24px); transform-origin: bottom center; }
  .hwh-open .hwh-launch { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .hwh-launch, .hwh-panel { animation: none !important; transition: none !important; }
  .hwh-launch:hover { transform: none; }
}
@media print { .hwh { display: none !important; } }
.hwh-answer a.hwh-mail { color: var(--hwh-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
