/* assets/dcr-tips.css · the "?" beside a figure and its popover (assets/dcr-tips.js; DCR v2 brief 5 block K, 13 Nov 2026).
   Brand OS v1.2, light mode: the glyph in its label's own ink at 72%, full ink on hover, the purple focus ring; the popover is a white card with
   shadow-card and radius-button, no border, Plex Sans small; no magenta (the page's two magentas are its own). */
.dcr-tip{
  display:inline-grid; place-items:center; position:relative;
  inline-size:20px; block-size:20px; margin-inline-start:4px; padding:0; vertical-align:-4px;
  border:0; border-radius:var(--radius-button, 8px); background:transparent; color:inherit; opacity:.72;
  cursor:help; flex:none;
  transition:opacity var(--dur-instant, 120ms) var(--ease-standard, ease), background-color var(--dur-instant, 120ms) var(--ease-standard, ease);
}
/* a 44px touch target around the 20px glyph, without moving the line */
.dcr-tip::after{ content:''; position:absolute; inset:-12px; }
.dcr-tip svg{ inline-size:16px; block-size:16px; }
/* the glyph takes the ink of the words it sits beside (white on a dark chip, ink on a card), so it passes on either */
.dcr-tip:hover, .dcr-tip[aria-expanded="true"]{ opacity:1; background:color-mix(in srgb, currentColor 12%, transparent); }
.dcr-tip:focus{ outline:none; }
.dcr-tip:focus-visible{ outline:3px solid var(--purple, #3B06D4); outline-offset:2px; }

.dcr-tip__pop{
  position:fixed; z-index:1200; inset-inline-start:auto; box-sizing:border-box;
  max-inline-size:300px; padding:12px 14px;
  border-radius:var(--radius-button, 8px); background:var(--white, #fff); box-shadow:var(--shadow-card, 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08));
  font:400 var(--fs-small, 14px)/1.5 var(--font-sans, 'IBM Plex Sans', system-ui, sans-serif); color:var(--ink, #000);
  text-transform:none; letter-spacing:normal; text-align:start; white-space:normal;
  opacity:0; transform:translateY(-2px);
  transition:opacity var(--dur-quick, 200ms) var(--ease-standard, ease), transform var(--dur-quick, 200ms) var(--ease-standard, ease);
  pointer-events:auto;
}
.dcr-tip__pop.is-above{ transform:translateY(2px); }
.dcr-tip__pop.is-on{ opacity:1; transform:none; }
.dcr-tip__pop[hidden]{ display:none; }
html[lang^="ar"] .dcr-tip__pop{ font-family:var(--font-arabic, 'Almarai', sans-serif); }
@media (prefers-reduced-motion: reduce){
  .dcr-tip, .dcr-tip__pop{ transition:opacity var(--dur-quick, 200ms) linear; transform:none; }
}
@media print{ .dcr-tip, .dcr-tip__pop{ display:none !important; } }
