/* ==========================================================================
   EMPTY STATE (.verser-empty). CSS only.

   One look (2 Nov, the live review C5): centred, the icon in a 48px circle on fill-1, the title in the UI face at
   --font-size-body/600, one line at --font-size-small (36ch), an optional action. Pages do not restyle it: a page that
   needs more or less room sets the tokens below, never the parts.

     data-variant  hero    a screen's own empty list (Tasks, Documents): the same look as the default, with a little
                           more room above it; its line a sentence in the UI face like every empty line
                   quiet   one quiet line in a list, no icon, no surface
     data-size     sm      tighter, a 40px icon
   Parts: .verser-empty-icon, .verser-empty-title, .verser-empty-text, .verser-empty-action (wraps buttons)
   Optional tokens with no :root value (unset = the look above; the default line then inherits its face and weight):
   --verser-empty-title-weight, --verser-empty-text-font, --verser-empty-text-weight, --verser-empty-hero-padding-block,
   --verser-empty-text-gap (room over the line besides the gap).
   Every line is a sentence, so every variant sets it in the UI face (--font-sentence; the lead, B1, 2 Nov).
   ========================================================================== */

.verser-empty{
  box-sizing:border-box;display:grid;justify-items:center;gap:calc(var(--space-1) + 2px);margin:0;
  padding-block:var(--verser-empty-padding-block,calc(var(--space-8) + var(--space-1)) var(--space-8));
  padding-inline:var(--verser-empty-padding-inline,var(--space-5));
  color:var(--verser-empty-title-text,var(--text));font-family:var(--font-ui);text-align:center
}
.verser-empty-icon{
  display:grid;place-items:center;
  inline-size:var(--verser-empty-icon-size,48px);block-size:var(--verser-empty-icon-size,48px);margin-block-end:var(--space-2);
  border:var(--border-width) solid var(--verser-empty-icon-border,var(--vx-hair));border-radius:var(--radius-round);
  background:var(--verser-empty-icon-fill,var(--surface-fill-1));color:var(--text)
}
.verser-empty-icon>svg,.verser-empty-icon .icon{inline-size:calc(var(--verser-empty-icon-size,48px) / 2);block-size:calc(var(--verser-empty-icon-size,48px) / 2);opacity:.9}
.verser-empty-title{display:block;margin:0;font-size:var(--verser-empty-title-size,var(--font-size-body));font-weight:var(--verser-empty-title-weight,var(--vx-fw-semibold));line-height:var(--line-height-snug)}
.verser-empty-text{margin:0;margin-block-start:var(--verser-empty-text-gap,0);max-inline-size:var(--verser-empty-text-measure,36ch);font-family:var(--verser-empty-text-font);font-size:var(--font-size-small);font-weight:var(--verser-empty-text-weight);line-height:var(--line-height-body);color:var(--verser-empty-text,var(--text-secondary));text-wrap:pretty}
.verser-empty-text:empty{display:none}
.verser-empty-action{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-2);margin-block-start:var(--space-3)}

.verser-empty[data-size="sm"]{--verser-empty-icon-size:40px;padding-block:var(--space-5) calc(var(--space-4) + 2px);padding-inline:var(--space-3)}

/* Hero: the default look with a little more room above (the raised square icon is gone: one empty state, C5). */
.verser-empty[data-variant="hero"]{padding-block:var(--verser-empty-hero-padding-block,calc(var(--space-8) + var(--space-1)) var(--space-6))}
.verser-empty[data-variant="hero"] .verser-empty-text{font-family:var(--verser-empty-text-font,var(--font-sentence))}

.verser-empty[data-variant="quiet"]{justify-items:start;gap:0;padding-block:calc(var(--space-1) + 2px);padding-inline:2px;text-align:start;color:var(--text-secondary)}
.verser-empty[data-variant="quiet"] .verser-empty-icon{display:none}
.verser-empty[data-variant="quiet"] .verser-empty-title{font-size:var(--font-size-small);font-weight:var(--verser-empty-title-weight,var(--vx-fw-medium));line-height:var(--line-height-body);color:var(--text-secondary)}
.verser-empty[data-variant="quiet"] .verser-empty-text{max-inline-size:none;margin-block-start:var(--verser-empty-text-gap,var(--space-1));font-family:var(--verser-empty-text-font,var(--font-sentence));font-size:var(--font-size-small)}
.verser-empty[data-variant="quiet"] .verser-empty-action{justify-content:flex-start;margin-block-start:var(--space-2)}
/* The line is a sentence in the UI face (B1), which carries Arabic itself; no right-to-left swap is needed. */
