/* qol.css — clickable things should look clickable, and long pages need a way back up. Loaded last. */

/* ---------- back to top ---------- */
/* "Back to top": an item of the status bar (qol.js), so it never sits on top of a panel. */
.to-top { flex: none; font: 700 12px var(--mono, monospace); letter-spacing: .12em; padding: 3px 10px; border-radius: 999px; cursor: pointer;
  color: #07101e; background: var(--cyan, #55ccff); border: 1px solid #fff; animation: toTopIn .25s ease-out; }
.to-top:hover, .to-top:focus-visible { filter: brightness(1.15); }
.to-top[hidden] { display: none; }
@keyframes toTopIn { from { opacity: 0; } }
html.pc98 .to-top { border-radius: 0; font: 16px var(--mono); letter-spacing: 0; padding: 0 8px; border-color: #fff #1d6a8a #1d6a8a #fff; box-shadow: 2px 2px 0 #000; }
@media (prefers-reduced-motion: reduce) { .to-top { animation: none; } }

/* ---------- buttons that were all grey ---------- */
html.pc98 :is(.btn, .chip-btn, .ghost):not(:disabled):not(.primary):not(.warn-btn) {
  color: #fff !important; background: #3a3aa8 !important; border-color: #c8c8ff #12123c #12123c #c8c8ff !important; font-weight: 600; }
html.pc98 :is(.btn, .chip-btn, .ghost):not(:disabled):not(.primary):not(.warn-btn):hover {
  background: #5555dd !important; box-shadow: 2px 2px 0 #000, 0 0 0 2px var(--cyan) !important; }
html.pc98 :is(.btn, .chip-btn, .ghost):disabled { opacity: .55 !important; filter: grayscale(.6); }
html.pc98 .btn.primary:not(:disabled) { animation: hotPulse 2.4s ease-in-out infinite; }
@keyframes hotPulse { 50% { box-shadow: 3px 3px 0 #000, 0 0 0 3px rgba(34, 238, 136, .55); } }
html:not(.pc98) :is(.btn, .chip-btn, .ghost):not(:disabled):not(.primary) { border-color: rgba(120, 200, 255, .6); background: rgba(100, 160, 255, .16); color: #fff; }
html:not(.pc98) :is(.btn, .chip-btn, .ghost):not(:disabled):not(.primary):hover { border-color: var(--cyan, #4cf); box-shadow: 0 0 18px -2px var(--cyan, #4cf); }

/* tabs and segmented choices: say which ones you can press */
.tabs button:not([aria-selected="true"]):not(:disabled), .group-tabs button:not([aria-selected="true"]):not(:disabled) { text-decoration: underline dotted rgba(140, 200, 255, .55); text-underline-offset: 5px; color: var(--ink-2); }
.tabs button:not([aria-selected="true"]):hover, .group-tabs button:not([aria-selected="true"]):hover { color: #fff; text-decoration-style: solid; text-decoration-color: var(--cyan, #55ccff); }
html.pc98 .seg button:not(.on) { border: 1px solid #4a4a99; background: #14143a; color: var(--ink); }
html.pc98 .seg button:not(.on):hover { background: #3a3aa8; border-color: var(--cyan); }

/* "▸ More…" lines were tiny grey text */
details > summary { cursor: pointer; }
details > summary:not(.ind-menu summary):not(.bio summary) { color: var(--cyan, #55ccff); text-decoration: underline dotted; text-underline-offset: 4px; padding: 4px 2px; }
details > summary:not(.ind-menu summary):not(.bio summary):hover { color: #fff; text-decoration-style: solid; background: rgba(85, 204, 255, .12); }
details.more > summary, details.card > summary { padding: 6px 10px; border: 1px dashed rgba(85, 204, 255, .55); text-decoration: none; display: block; }

/* things you can click but that are not buttons */
[data-goto], [data-eco], [data-bank], [data-book], [data-sel], [data-contact], .inbox-item, .eco-app, .fx-location { cursor: pointer; }
.inbox-item:hover, .inbox-item:focus-visible { border-color: var(--cyan, #55ccff); background: rgba(85, 204, 255, .1); }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--yellow, #ffcc44); outline-offset: 2px; }
