/* ============================================================
   Theme: modern-uzh — layer 40, the notes editor
   Owns: .notes-layout, .page and its ProseMirror internals, .doc-title,
   .doc-saved, .docbar, .toolbar, .canvas*, .amend-bar, .diff*,
   .conflict-dialog*, .vrow (.vn/.vt/.vw), .word-count, .mention,
   .pinned-citations (app.css) — .thread* (discussions.css) — .bibliography*,
   .bib-entry*, .cite*, .citation-panel__* (citations.css) — .ann-*
   (annotate.css).

   Loaded after app.css and any per-page CSS.

   00-tokens.css re-points --ground, --radius, --radius-page, --font-sans,
   --font-mono and the type scale, so the prose, the page's rounded corners
   and its resting shadow-page/border colours already restyle for free —
   nothing below restates a colour app.css already sets from a token. What
   follows is the handful of places the reference's *structure* (depth,
   corner language on floating chrome, the annotate hero) doesn't fall out
   of a token re-point on its own. Everything else in this domain — the
   docbar, the formatting toolbar, doc-title/doc-saved, mentions, the
   version-history rows, the diff, the conflict dialog, the sign dialog's
   pinned citations, the citation popup/tooltip's positioning, the
   annotator's tool rail — is left exactly as app.css/discussions.css/
   citations.css/annotate.css already draw it. See the report for why.
   ============================================================ */

/* ---- sheet depth: .page, .thread and .bibliography are the three cards
   that already share --page-width (design/tokens.css) so they never drift
   apart in width — fixes2.md round 2's complaint. They deserve the same
   depth for the same reason: on the --ground desk they are one visual
   family (the entry and the two things that hang directly off it), and the
   reference's own sheet analog uses --shadow-2 ("sheet elevation"), not
   design/tokens.css's flatter --shadow-page (0 6px 20px @.07). --shadow-2
   is not a re-point of --shadow-page — it's a new, separate token — so this
   is the one place the reference's added depth has to be spelled out by
   hand. */
.page,
.thread,
.bibliography {
  box-shadow: var(--shadow-2);
}

/* ---- small floating chrome: one corner radius, not three. The docbar's
   move-menu, the citation search popup and the citation hover tooltip are
   all the same kind of thing — a small panel that appears over the canvas —
   and app.css gives each its own hand-picked radius (6px, 6px, 5px) from
   before --radius-sm existed. 00-tokens.css's --radius-sm (7px) is exactly
   the value the reference uses for this tier of chrome (menus, popovers,
   controls), so this replaces three near-identical literals with the one
   token meant for them. */
.docbar__menu-panel,
.cite-popup,
.cite-tip {
  border-radius: var(--radius-sm);
}

/* ---- annotate hero: the closest thing this domain has to the reference's
   .sheet__head — a full-width header region, border-bottom already, title
   and actions inside. The reference washes that region in --accent-wash
   fading to transparent; --accent-wash is unchanged between uzh and
   modern-uzh (design/tokens.css and the reference agree on both light and
   dark values), so this is safe to use without waiting on a re-point. */
.ann-hero {
  background: linear-gradient(180deg, var(--accent-wash), transparent 78%);
}
