  /* ─── Claim-word justifications ───────────────────────────────────────────
     Inline "claim words" carry a hover/tap popover that states the basis for
     the claim and links its source. Pairs prose assertion with on-demand
     justification (redundant expression). Co-located markup keeps each
     justification next to the claim it backs. Desktop: hover or keyboard
     focus. Touch/keyboard: tap/Enter toggles. Positioning (flip/up) is set by
     claims.js on open so the popover never clips the viewport. Inherits theme
     tokens from styles.css. */

  .claim {
    position: relative;
    color: var(--text-bright);
    border-bottom: 1px dotted var(--accent);
    cursor: help;
    text-underline-offset: 2px;
  }
  .claim:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  /* Small superscript marker so the feature is discoverable, not hidden. */
  .claim::after {
    content: '?';
    font-family: var(--mono);
    font-size: 0.62em;
    font-weight: 600;
    color: var(--accent);
    vertical-align: 0.5em;
    margin-left: 0.1em;
    line-height: 0;
  }

  .claim-pop {
    display: none;
    /* Fixed positioning with JS-set top/left (viewport coords) so wrapped
       claims and narrow screens never clip; claims.js repositions on scroll. */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: max-content;
    max-width: min(23rem, 82vw);
    background: var(--bg2);
    border: 1px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 0.75rem 0.9rem 0.8rem;
    /* Reset inherited prose/heading styling so the popover reads as body text. */
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.55;
    letter-spacing: normal;
    text-transform: none;
    color: var(--text);
    white-space: normal;
    cursor: default;
  }
  .claim.is-open > .claim-pop { display: block; }
  /* top/left are set inline by claims.js (viewport coords); .up only flips the
     arrow to the bottom edge when the popover is placed above the term. */

  .claim-pop-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
  }
  .claim-pop a { color: var(--accent); text-decoration: underline; }
  .claim-pop a:hover { color: var(--text-bright); }

  /* Arrow connecting popover to the term. Its horizontal position is set by
     claims.js (--arrow-left) so it keeps pointing at the term after clamping.
     Points up when the popover is below, down when flipped above. */
  .claim-pop::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: var(--arrow-left, 1rem);
    border: 7px solid transparent;
    border-bottom-color: var(--accent);
  }
  .claim-pop.up::before {
    bottom: auto;
    top: 100%;
    border-bottom-color: transparent;
    border-top-color: var(--accent);
  }

  @media (max-width: 600px) {
    /* Wider relative cap on small screens; flip/up still keep it on-screen. */
    .claim-pop { max-width: 86vw; font-size: 0.8rem; }
  }
