/**----------------------------------------------------------------------------
* Credit: Théophile Megny-Marquet | Artificial Psychology Intelligence Project | 2026.
* Header quotation module: white separator + one-line scrolling quotes,
* placed between the logo and the right-side buttons of #commandBar_Canvas.
----------------------------------------------------------------------------**/

#quotationModule{
  position: relative;      /* anchor for the click panel (absolute) */
  flex: 1;                 /* take the free space between logo and buttons */
  min-width: 0;            /* REQUIRED: lets the module shrink below its text
                              width so the viewport can actually clip overflow */
  display: flex;
  align-items: center;     /* vertical centering inside the 50px bar */
  gap: 14px;               /* even spacing: separator | text | separator */
  height: 32px;            /* same height as the separators */
  margin: 0 20px;          /* small gap from logo and from the buttons */
  margin-top: 2px;
  padding-left: 9px 9px;
  background: linear-gradient(to right,  /* light Archange-blue band */
    rgba(0,170,255,0) 0,
    #14aefb92 8%,
    #14aefb92 92%,
    rgba(0,170,255,0) 100%);
  cursor: pointer;         /* the whole module is clickable */
}

/* White vertical separators, one on each side of the module. */
.quotationSeparator{
  flex-shrink: 0;          /* never let them get squeezed away */
  width: 1px;
  height: 32px;            /* full band height */
  background: rgba(255,255,255,0);
}

/* The window that clips the sliding text. */
#quotationViewport{
  flex: 1;
  min-width: 0;            /* same reason as on #quotationModule */
  overflow: hidden;
}

/* The sliding band. JS moves it with translateX. */
#quotationText{
  position: relative; top: -3px;
  display: inline-block;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  font-family: nunitolight, sans-serif, arial;
  font-size: 0.95em;
  will-change: transform; /* smoother horizontal slide */
}

/* Click panel, floating just below the module. */
#quotationPanel{
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  z-index: 50;
  width: auto;
  padding: 12px 16px;
  background: #f8f8f8;
  color: #24498f;
  border: 1px solid #24498f;              /* Archange brand box */
  border-radius: 6px;
  box-shadow: 0 0 20px 0 #24498f;
  font-family: nunitolight, sans-serif, arial;
  cursor: default;                        /* text panel, not the scroller */
}
/* No 'display' here on purpose: the [hidden] attribute keeps it hidden
   until the JS removes it. Declaring display would defeat [hidden]. */

#quotationPanel p{ margin: 0 0 6px 0; line-height: 1.4; }
#quotationPanel p:last-child{ margin-bottom: 0; }
#quotationPanelQuote,
#quotationPanelAuthor,
#quotationPanelSource{ color: #24498f; }

#quotationPanelQuote{  font-style: italic; }
#quotationPanelAuthor{ font-size: 0.85em; font-weight: bold; }
#quotationPanelSource{ font-size: 0.85em; opacity: 0.75; }

#quotationPanelQuote,
#quotationPanelAuthor,
#quotationPanelSource{ text-align: right; }
