/* togo-whimsy.css — Cluster 40 (Sunnah-safe subset)
 *
 * Calm, additive styles for whimsy/delight elements.
 * All motion respects prefers-reduced-motion.
 */

/* ─── Toast host ─────────────────────────────────────────────── */
.whimsy-toast-host {
  position: fixed;
  inset: auto 16px 16px auto;
  /* z-index: was 9000 (magic) → --z-fab (600) per ED spec. Whimsy-toast
     is een lichtere, additieve UI laag; FAB-niveau volstaat. */
  z-index: var(--z-fab, 600);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(calc(100vw - 32px), 380px);
}

@media (max-width: 880px) {
  body:has(.tgp-mobile-nav) .whimsy-toast-host,
  body:has(.togo-bottom-nav) .whimsy-toast-host {
    inset: auto 16px calc(var(--tgp-mn-height, 64px) + env(safe-area-inset-bottom, 0px) + 14px) 16px;
    max-width: none;
  }
}

.whimsy-toast {
  pointer-events: auto;
  background: var(--color-bg-elevated, #141414);
  color: var(--color-text, #fff);
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  transform: translateY(8px);
  opacity: 0;
  animation: whimsyToastIn 240ms ease-out forwards;
}

.whimsy-toast--leaving {
  animation: whimsyToastOut 280ms ease-in forwards;
}

.whimsy-toast a {
  color: inherit;
  text-decoration: underline;
}

@keyframes whimsyToastIn {
  to { transform: translateY(0); opacity: 1; }
}

@keyframes whimsyToastOut {
  to { transform: translateY(8px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .whimsy-toast,
  .whimsy-toast--leaving {
    animation: none;
    transform: none;
    opacity: 1;
  }
}

/* ─── Daily research fact slot on home ───────────────────────── */
.daily-fact {
  margin: 28px auto 0;
  padding: 14px 18px;
  max-width: 720px;
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.10));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.78));
  text-align: left;
}

.daily-fact__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.55));
  margin-bottom: 4px;
}

.daily-fact__body {
  display: block;
}

/* ─── Footer pubmed reading suggestion line ──────────────────── */
.site-footer__pubmed {
  font-size: 12px;
  opacity: 0.82;
  margin: 0 0 8px;
}

.site-footer__pubmed a {
  color: inherit;
}

/* ─── 404 page polish (additive) ─────────────────────────────── */
.notfound__riddle {
  margin: 18px 0 4px;
  padding: 14px 16px;
  border-left: 3px solid var(--color-accent, #b6efc4);
  background: rgba(255, 255, 255, 0.02);
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.78));
  border-radius: 0 10px 10px 0;
  max-width: 560px;
}

/* ─── /lab.html — Operator's notebook ─────────────────────────── */
.lab-notebook {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0 32px;
}

.lab-notebook__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 16px 0 24px;
  padding: 12px 14px;
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.10));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
}

.lab-notebook__meta dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.55));
  margin: 0;
}

.lab-notebook__meta dd {
  margin: 2px 0 0;
  font-weight: 500;
}

.lab-notebook__warn {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 200, 80, 0.25);
  background: rgba(255, 200, 80, 0.06);
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.55;
}

.lab-notebook section {
  margin: 22px 0;
}

.lab-notebook h2 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

.lab-notebook p {
  margin: 0 0 10px;
  line-height: 1.6;
  font-size: 14.5px;
}

.lab-notebook ul {
  margin: 6px 0 10px;
  padding-left: 20px;
}

.lab-notebook li {
  margin: 4px 0;
  line-height: 1.55;
  font-size: 14px;
}

.lab-notebook__refs {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
}

.lab-notebook__refs ol {
  padding-left: 22px;
  font-size: 13px;
}

.lab-notebook__refs a {
  word-break: break-all;
}

.lab-notebook__sig {
  margin-top: 26px;
  font-style: italic;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.65));
  font-size: 13px;
}
