/* memmy.css — Memmy, the site assistant (2026-07-07). New file; canon untouched.
   Palette reuses the styles.css :root tokens (navy/yellow/pink/paper/mono). */

#memmyDock {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 2147483200; /* below the w3e overlay root (…300) — eggs win */
  font-family: var(--mono, "Courier New", monospace);
}

/* The mobile dock owns the bottom edge <760px — Memmy yields entirely. */
@media (max-width: 760px) {
  #memmyDock { display: none; }
}

/* ── the blob ── */
.memmy-blob {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 3px solid var(--shadow, #04102f);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--yellow, #fff200), #ffce00);
  box-shadow: 3px 3px 0 var(--shadow, #04102f);
  cursor: pointer;
}
.memmy-blob:hover { transform: translate(-1px, -1px); }
.memmy-blob:active { transform: translate(1px, 1px); }
.memmy-blob:focus-visible { outline: 3px solid #fff200; outline-offset: 2px; }

.memmy-blob__body {
  position: relative;
  width: 34px;
  height: 30px;
  border-radius: 46% 54% 52% 48% / 58% 56% 44% 42%;
  background: radial-gradient(circle at 32% 28%, #ffe9a8, #f5b800 78%);
  border: 2px solid var(--shadow, #04102f);
}
.memmy-blob__shades {
  position: absolute;
  top: 8px;
  left: 4px;
  width: 24px;
  height: 7px;
  background:
    linear-gradient(#111, #111) 0 0 / 10px 7px no-repeat,
    linear-gradient(#111, #111) 14px 0 / 10px 7px no-repeat,
    linear-gradient(#111, #111) 9px 2px / 6px 2px no-repeat;
  border-radius: 2px;
}
.memmy-blob__mouth {
  position: absolute;
  bottom: 5px;
  left: 12px;
  width: 10px;
  height: 2px;
  background: #4a3200;
  border-radius: 1px;
}

/* ── the panel ── */
#memmyPanel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 292px;
  background: var(--paper, #fff9df);
  border: 3px solid var(--shadow, #04102f);
  border-radius: 6px;
  box-shadow: 5px 5px 0 var(--shadow, #04102f);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#memmyPanel.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  #memmyPanel { transition: none; transform: none; }
}

.memmy-panel__head {
  position: relative;
  padding: 10px 34px 8px 12px;
  border-bottom: 2px solid var(--shadow, #04102f);
  background: var(--navy, #061563);
}
.memmy-panel__title {
  display: block;
  color: var(--yellow, #fff200);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.memmy-panel__sub {
  display: block;
  color: var(--paper, #fff9df);
  font-size: 11px;
  opacity: 0.85;
}
.memmy-panel__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--shadow, #04102f);
  border-radius: 3px;
  background: var(--chrome, #d5d0c8);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.memmy-panel__close:focus-visible { outline: 3px solid #fff200; outline-offset: 1px; }

.memmy-panel__list { display: grid; gap: 4px; padding: 10px; }
.memmy-panel__item {
  text-align: left;
  padding: 7px 9px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink, #0b0b0b);
  background: #fff;
  border: 2px solid var(--shadow, #04102f);
  border-radius: 4px;
  cursor: pointer;
}
.memmy-panel__item:hover { background: var(--yellow, #fff200); }
.memmy-panel__item:focus-visible { outline: 3px solid #fff200; outline-offset: 1px; }

.memmy-panel__answer {
  margin: 0 10px 10px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink, #0b0b0b);
  background: #fff;
  border: 2px dashed var(--shadow, #04102f);
  border-radius: 4px;
}
.memmy-panel__answer p { margin: 0 0 6px; }
.memmy-panel__cta {
  display: inline-block;
  padding: 5px 9px;
  font-weight: 700;
  font-size: 12px;
  color: var(--ink, #0b0b0b);
  background: var(--lime, #75ff00);
  border: 2px solid var(--shadow, #04102f);
  border-radius: 4px;
  text-decoration: none;
}
.memmy-panel__cta:hover { background: var(--yellow, #fff200); }

.memmy-panel__never {
  width: 100%;
  padding: 6px;
  border: 0;
  border-top: 2px solid var(--shadow, #04102f);
  background: transparent;
  font-family: inherit;
  font-size: 10px;
  color: #555;
  cursor: pointer;
}
.memmy-panel__never:hover { color: var(--ink, #0b0b0b); text-decoration: underline; }

/* ── whispers ── */
.memmy-whisper {
  position: absolute;
  right: 62px;
  bottom: 8px;
  max-width: 250px;
  padding: 7px 10px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink, #0b0b0b);
  background: var(--paper, #fff9df);
  border: 2px solid var(--shadow, #04102f);
  border-radius: 6px 6px 2px 6px;
  box-shadow: 3px 3px 0 var(--shadow, #04102f);
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.memmy-whisper.is-in { opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .memmy-whisper { transition: none; transform: none; }
}

/* Spotlight pulse Memmy puts on the agent-swing CTA when asked. */
.memmy-spotlight {
  outline: 3px solid var(--yellow, #fff200) !important;
  outline-offset: 3px;
}
