/* marks: styles of this study feature only (see docs/STUDY_FEATURES_PLAN.md §7).
   Highlights, bookmarks and continue reading. The verse tints and ribbons themselves are
   generated per book (marks::css_for); the colours are theme variables (--hl-<slot>). */

/* ---- the verse dialog header: two quiet actions beside ✕, and the colour tray under it */
.vcmp .fnpop-head { flex-wrap: wrap; }
.mk-acts { display: inline-flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.mk-bm .ic, .mk-hl .ic { width: 18px; height: 18px; }
.mk-bm { color: var(--muted); }
.mk-bm:hover { color: var(--fg); }
.mk-bm.on { color: var(--accent); }
.mk-bm.on svg path { fill: currentColor; }
.mk-dot {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--muted); box-sizing: border-box;
}
.mk-hl:hover .mk-dot { border-color: var(--fg); }
.mk-dot.set { border-color: color-mix(in srgb, var(--fg) 28%, transparent); }
.mk-tray {
  order: 9; flex-basis: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 6px 2px 4px; animation: mk-in .14s ease-out;
}
@keyframes mk-in { from { opacity: 0; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .mk-tray { animation: none; } }

/* a colour swatch (the tray and My study's colour filter) */
.mk-sw {
  width: 28px; height: 28px; flex: none; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--sw); border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  -webkit-tap-highlight-color: transparent;
}
.mk-sw:hover { border-color: color-mix(in srgb, var(--fg) 45%, transparent); }
.mk-sw.on { box-shadow: 0 0 0 2px var(--card, var(--bg)), 0 0 0 3.5px var(--fg); }
.mk-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* "none": an empty ring with a stroke through it */
.mk-sw.none {
  background: linear-gradient(135deg, transparent calc(50% - .75px), var(--muted) calc(50% - .75px), var(--muted) calc(50% + .75px), transparent calc(50% + .75px));
  border: 1.5px solid var(--muted);
}
.mk-sw.none.on { box-shadow: none; }

/* ---- My study (/notes) */
.ms-tabs { margin: 1.2rem -4px 10px; }
.ms-colours { display: flex; gap: 10px; margin: 4px 0 6px; }
.ms-colours .mk-sw { width: 24px; height: 24px; }
.ms-row .nt-ref { display: inline-flex; align-items: center; gap: 4px; }
.ms-row .nt-ref .ic { width: 14px; height: 14px; color: var(--accent); }
.ms-row .nt-ref .ic svg path { fill: currentColor; }
.ms-text {
  margin: 0; font-family: var(--serif); font-size: 1rem; line-height: 1.55; color: var(--fg);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ms-hl { background: var(--tint); padding: 1px 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ms-row .nt-meta a.nt-act { text-decoration: none; display: inline-flex; align-items: center; }

/* ---- library: where you left off, and the newest bookmarks */
.continue-tt { display: inline-flex; flex-direction: column; }
.continue-tt .continue-t { white-space: nowrap; }
.continue-from { font: 500 .7rem/1.2 var(--sans); color: var(--muted); }
/* right under the "Continue reading" card, on a line of its own */
.lib-bm { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: -2px 0 4px; padding-inline-start: 4px; font-size: .92rem; }
.lib-bm-k { display: inline-flex; align-items: center; gap: 4px; font: 600 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lib-bm-k .ic { width: 14px; height: 14px; color: var(--accent); }
.lib-bm-k .ic svg path { fill: currentColor; }
.lib-bm-k { align-self: center; }
.lib-bm-a { font-family: var(--serif); font-weight: 500; color: var(--fg2); text-decoration: none; }
.lib-bm-a:hover { color: var(--accent); }
.lib-bm-all { font: 600 .78rem/1 var(--sans); color: var(--muted); text-decoration: none; }
.lib-bm-all:hover { color: var(--fg); }

/* spotlight on: highlights step back (a veil of the page colour over the tint), so the lifted
   words read clearly and the dimmed text keeps its contrast */
.text.spot .vt[data-v] { background-image: linear-gradient(color-mix(in srgb, var(--bg) 60%, transparent), color-mix(in srgb, var(--bg) 60%, transparent)); }
