/* Zemtrix design kit — site UI patterns: menu drawer, Persian file picker, reveal on first view (STANDARD 7.2, 7.3).
   Shipped, with ui.js, only to products that set `ui: true` in product.yml. Core roles only. */
.zds-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Menu drawer. The burger, the panel and the scrim are all INSIDE the header, so they share its stacking context (a scrim
   outside a sticky header with its own z-index would cover the panel). Below 1024 px the nav becomes a panel. */
.zds-burger{display:none;place-items:center;width:44px;height:44px;border:0;border-radius:8px;background:transparent;color:var(--text-primary);cursor:pointer}
.zds-burger svg{width:24px;height:24px;fill:currentColor}
.zds-scrim{display:none}
@media (max-width:1023.98px){
  .zds-burger{display:inline-grid}
  .zds-navbox{position:fixed;inset-block:0;inset-inline-end:0;z-index:2;width:min(86vw,360px);padding:16px;overflow-y:auto;background:var(--surface);color:var(--text-primary);
    box-shadow:0 0 32px color-mix(in srgb,var(--text-primary) 24%,transparent);transform:translateX(100%);visibility:hidden;transition:transform .25s ease,visibility 0s linear .25s}
  [dir=rtl] .zds-navbox{transform:translateX(-100%)}
  .zds-navbox.is-open{transform:none;visibility:visible;transition:transform .25s ease}
  .zds-navbox [data-zds-close]{display:inline-grid}
  .zds-scrim{position:fixed;inset:0;z-index:1;background:color-mix(in srgb,var(--text-primary) 50%,transparent)}
  .zds-scrim:not([hidden]){display:block}
  body.is-locked{overflow:hidden}
}
@media (min-width:1024px){.zds-navbox [data-zds-close]{display:none}}
@media (prefers-reduced-motion:reduce){.zds-navbox{transition:none}}

/* Persian file picker: label + hidden input + file name (the native control shows English text on a Persian page) */
.zds-file{position:relative;display:flex;align-items:center;gap:12px;min-height:48px;min-width:0;padding:6px;border:1px dashed var(--border);border-radius:8px;cursor:pointer}
.zds-file:focus-within{outline:2px solid var(--focus-ring);outline-offset:2px}
.zds-file-btn{flex:none;display:inline-flex;align-items:center;min-height:36px;padding:0 16px;border-radius:8px;background:var(--surface);color:var(--primary);border:1px solid var(--border);font-weight:700}
.zds-file-name{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--text-muted)}

/* Reveal on first view. NEVER hide by default: content is visible without script. Only an element that was below the
   fold at load gets `data-zds-below`, and it animates when it enters; elements in view at load do not animate. */
@keyframes zds-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
[data-zds-reveal].is-in{animation:zds-rise .6s ease both}
@media (prefers-reduced-motion:reduce){[data-zds-reveal].is-in{animation:none}}
