/* «نسخهٔ آیفون» (pwa.go): the page under the app's screens. The screens draw themselves through wa-droid.js — every colour, size and
   corner is set by the app's own code, as in the Android app; this sheet only makes the page's elements behave as Android's views do.
   No style is written anywhere else as text (the CSP). */
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: block; src: url("/fonts/Vazirmatn-Regular.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: block; src: url("/fonts/Vazirmatn-Bold.woff2") format("woff2"); }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; background: #FFFFFF; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: "Vazirmatn", system-ui, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
html.dark, html.dark body { background: #0D0E10; }
.wa-noscript { padding: 40px 20px; text-align: center; color: #4A4B4E; line-height: 1.9; }

/* every view */
.v { box-sizing: border-box; position: relative; min-width: 0; min-height: 0; flex-shrink: 0; margin: 0; }
.ll { display: flex; flex-wrap: nowrap; }
.lh { flex-direction: row; }
.lv { flex-direction: column; }
.fl { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.fl > * { grid-area: 1 / 1 / 2 / 2; }
.sv { overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; }
.sv::-webkit-scrollbar, .hsv::-webkit-scrollbar { display: none; }
.sv > * { align-self: start; }
.sv.fill > * { min-height: 100%; }
.hsv { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hsv > * { justify-self: start; }

/* text: a TextView is a column (its gravity's vertical part), its words a span (the horizontal part, the lines it may take) */
.tv { display: flex; flex-direction: column; }
.tx { display: block; white-space: pre-wrap; overflow-wrap: break-word; font-family: "Vazirmatn", system-ui, sans-serif; font-variant-numeric: tabular-nums; unicode-bidi: plaintext; }
.tx.one { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.tx.clamp { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.tx.bal { text-wrap: pretty; }
.tv.cdh { flex-direction: row; align-items: center; }
.tv.cdh > .tx { flex: 0 1 auto; }
.cd { flex: 0 0 auto; width: 20px; height: 20px; }
.selectable .tx, .selectable { -webkit-user-select: text; user-select: text; }
/* a field */
.et { cursor: text; }
.et > input.tx { -webkit-appearance: none; appearance: none; border: 0; outline: 0; background: transparent; margin: 0; padding: 0; width: 100%;
  min-width: 0; height: 100%; min-height: 1.6em; font-size: inherit; color: inherit; -webkit-user-select: text; user-select: text; white-space: nowrap;
  unicode-bidi: normal; }
.et > input.tx::placeholder { color: var(--hint, #9A9BA0); opacity: 1; }
/* a picture */
.iv { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.iv > svg, .iv > img, .iv > canvas { display: block; width: 100%; height: 100%; }
.iv > img { object-fit: contain; }
.iv.adj > img { height: auto; }
svg.ic { display: block; color: inherit; overflow: visible; }
/* drawn grounds and custom views */
.lay { isolation: isolate; }
.bgl { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: block; width: 100%; height: 100%; }
i.bgl { width: auto; height: auto; }
.fgl, .ocv { position: absolute; inset: 0; pointer-events: none; display: block; width: 100%; height: 100%; }
.cust { overflow: visible; }
canvas.dcv { display: block; }
/* pressing */
.tap { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tap:focus-visible { outline: 2px solid #56BDB3; outline-offset: 2px; }
.press::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--press, transparent); opacity: 0; pointer-events: none; transition: opacity .12s; }
.press:active::after { opacity: 1; }
.copy-hold { position: fixed; top: -200px; left: 0; opacity: 0; }
