/* desk chrome: full-width masthead + L-shaped rail (sidebar + scrolling main) */
.desk-root {
  background: #020617;
  background-image: linear-gradient(180deg, #0f172a 0%, #020617 40%, #000 100%);
}

.page-frame {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-shadow:
    inset 0 0 0 2px rgba(148, 163, 184, 0.35),
    inset 0 40px 80px rgba(5, 150, 105, 0.06),
    0 12px 48px rgba(0, 0, 0, 0.65);
}

.page-frame header.top-nav-wrapper {
  flex-shrink: 0;
  width: 100%;
}

.layout-split {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 1024px) {
  .layout-split {
    flex-direction: row;
  }

  .page-frame-rtl .layout-split {
    flex-direction: row-reverse;
  }
}

.layout-split .content-stream {
  flex: 1 1 0%;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.top-nav-wrapper > div.mx-auto.flex {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.top-nav-wrapper > div.mx-auto.flex > a {
  grid-column: 1;
  justify-self: start;
}

.top-nav-wrapper > div.mx-auto.flex > nav {
  grid-column: 2;
  justify-self: center;
}

.top-nav-wrapper > div.mx-auto.flex > div.flex.shrink-0,
.top-nav-wrapper > div.mx-auto.flex > div.flex.items-center {
  grid-column: 3;
  justify-self: end;
}

.top-nav-wrapper > div.mx-auto.flex > details {
  grid-column: 4;
  justify-self: end;
}

.side-index-col {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.side-index-col .side-index-item {
  display: block;
  padding: 0.32rem 0.5rem;
  margin-bottom: 1px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #e2e8f0;
  border: 2px outset #64748b;
  background: linear-gradient(180deg, #334155 0%, #1e293b 55%, #0f172a 100%);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.14);
}

.side-index-col .side-index-item:hover {
  border-style: outset;
  color: #6ee7b7;
  filter: brightness(1.08);
}

.top-nav-wrapper {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.page-frame header nav[aria-label="Primary"],
.page-frame header nav[aria-label="Начальный"],
.page-frame header nav[aria-label="أساسي"],
.page-frame header nav[aria-label="基本的"],
.page-frame header nav[aria-label="Principal"] {
  display: none !important;
}

body[data-desk-view="download"] .side-index-col a.side-index-item[href="download.html"],
body[data-desk-view="features"] .side-index-col a.side-index-item[href="features.html"],
body[data-desk-view="guides"] .side-index-col a.side-index-item[href="guides.html"],
body[data-desk-view="faq"] .side-index-col a.side-index-item[href="faq.html"],
body[data-desk-view="trust-security"] .side-index-col a.side-index-item[href="trust-security.html"] {
  border: 2px inset #059669;
  color: #ecfdf5;
  background: linear-gradient(180deg, #059669 0%, #047857 55%, #064e3b 100%);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.45);
}

@keyframes mote-drift {
  0% {
    transform: translateY(100vh) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.45;
  }
  100% {
    transform: translateY(-20vh) scale(0.6);
    opacity: 0;
  }
}

.dust-speck {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 0;
  background: #34d399;
  box-shadow: 0 0 10px #059669;
  animation: mote-drift linear infinite;
  pointer-events: none;
}

/* Index-only components (also used where classes appear) */
.desk-root .glass-card {
  background: linear-gradient(145deg, rgba(51, 65, 85, 0.32) 0%, rgba(2, 6, 23, 0.9) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.desk-root .lift-shot {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.desk-root .lift-shot:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(52, 211, 153, 0.35),
    0 24px 48px -12px rgba(0, 0, 0, 0.65),
    0 0 60px -20px rgba(34, 211, 238, 0.15);
  border-color: rgba(52, 211, 153, 0.45);
}

.desk-root .action-pill {
  background: linear-gradient(135deg, #059669 0%, #0d9488 45%, #0891b2 100%);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.3), 0 12px 40px -8px rgba(16, 185, 129, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.desk-root .action-pill:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.55), 0 20px 50px -8px rgba(34, 211, 238, 0.35);
}

.desk-root .ghost-pill {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.72), rgba(2, 6, 23, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.desk-root .ghost-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}

/* -------------------------------------------------------------------------- */
/* Ultra-compact vertical rhythm (Arabic + all locales): tight section stack */
/* -------------------------------------------------------------------------- */

.layout-split .content-stream main > section {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.layout-split .content-stream footer {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.page-frame header.top-nav-wrapper .mx-auto.flex {
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

.snap-soft { scroll-behavior: smooth; }
.mast-band, .story-stack, .viewer-layer { display: contents; }
.skip-to-core {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip-to-core:focus {
  position: fixed;
  z-index: 300;
  top: 0.75rem;
  left: 0.75rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: #064e3b;
  color: #ecfdf5;
}
