/* Download page. Builds on public.css tokens; logical properties keep it correct in RTL. */
.dl-intro { padding-block: 8px 4px; }
.dl-intro h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.2; margin: 0 0 8px; }
.dl-lead { margin: 0; color: var(--of-muted); font-size: 1.05rem; }
.dl-language { font: inherit; color: var(--of-text); background: var(--of-surface); border: 1px solid var(--of-border);
  border-radius: 999px; min-height: 44px; padding: 0 14px; }
.dl-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-block-start: 16px; }
.dl-card { display: flex; flex-direction: column; gap: 12px; }
.dl-card h2 { margin: 0; }
.dl-body { display: grid; gap: 12px; align-content: start; }
.dl-body p { margin: 0; }
.dl-button { width: 100%; min-height: 48px; }
.dl-muted { color: var(--of-muted); }
.dl-details { display: grid; gap: 8px; margin: 0; }
.dl-details div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.dl-details dt { color: var(--of-muted); }
.dl-details dd { margin: 0; font-weight: 700; }
.dl-hash-row { display: grid; gap: 8px; }
.dl-hash { display: block; direction: ltr; text-align: start; unicode-bidi: isolate; font: .8rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--of-surface-2); border: 1px solid var(--of-border); border-radius: 10px; padding: 8px 10px; overflow-wrap: anywhere; user-select: all; }
.dl-hint { font-size: .9rem; color: var(--of-muted); }
.dl-command { display: block; direction: ltr; text-align: start; font: .8rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }
.dl-form { display: grid; gap: 8px; }
.dl-form h3 { margin: 0; font-size: 1.05rem; }
.dl-form label { font-weight: 700; }
.dl-form input { font: inherit; color: var(--of-text); background: var(--of-bg); border: 1px solid var(--of-border);
  border-radius: 12px; padding: 10px 12px; min-height: 44px; width: 100%; }
.dl-form-status { min-height: 1.5em; margin: 0; color: var(--of-primary); }
.dl-form-status.dl-error { color: #B3261E; }
:root[data-theme="dark"] .dl-form-status.dl-error { color: #FF9C94; }
.dl-store { background: #000; border-color: #000; color: #fff; font-weight: 700; }
:root[data-theme="dark"] .dl-store { background: #fff; border-color: #fff; color: #000; }
.pub-small { min-height: 36px; padding: 0 12px; font-size: .9rem; }
input:focus-visible, select:focus-visible { outline: 3px solid var(--of-lime); outline-offset: 2px; }

/* "If Google Play Protect blocks the installation": steps and a drawn copy of the warning with an
   arrow on "Install anyway" (shown until OFinder is on Google Play). */
.dl-protect { margin-top: 18px; }
.dl-protect p { line-height: 1.7; }
.dl-protect-layout { display: grid; gap: 20px; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
@media (max-width: 720px) { .dl-protect-layout { grid-template-columns: minmax(0, 1fr); } }
.dl-steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 10px; line-height: 1.7; }
.dl-mock { margin: 0; }
.dl-mock-window { display: grid; gap: 8px; padding: 22px 20px 18px; color: #e8e6f0; background: #2b2a33; border-radius: 26px; box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
.dl-mock-shield { justify-self: center; color: #c9c3ff; }
.dl-mock-service { margin: 0; text-align: center; font-size: 12px; opacity: .8; }
.dl-mock-title { margin: 4px 0 6px; text-align: center; font-size: 18px; font-weight: 700; line-height: 1.4; }
.dl-mock-app { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.dl-mock-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #1b3d33; background: #d8ec9f; border-radius: 50%; }
.dl-mock-line { display: block; height: 8px; border-radius: 4px; background: rgba(232, 230, 240, .25); }
.dl-mock-short { width: 60%; }
.dl-mock-anyway { position: relative; display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; }
.dl-mock-target { padding: 4px 8px; margin-inline-start: -8px; font-weight: 700; border-radius: 8px; outline: 3px solid #f5c542; outline-offset: 2px; }
.dl-mock-arrow { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; color: #1b1b1b; background: #f5c542; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.dl-mock-arrow::before { content: "➜"; display: inline-block; }
[dir="ltr"] .dl-mock-arrow::before { transform: scaleX(-1); }
.dl-mock-ok { display: block; margin-top: 8px; padding: 10px; text-align: center; color: #2b2a33; background: #c9c3ff; border-radius: 999px; opacity: .55; }
.dl-mock figcaption { margin-top: 8px; color: var(--of-muted); font-size: 12px; text-align: center; }
