/* Resool Help Center. Layout modeled on help.respond.io; brand tokens from docs/brand. */
:root {
  --navy: #090d28;
  --violet: #6c3ce9;
  --violet-hover: #5632d8;
  --violet-light: #8b5cf6;
  --lavender: #c4b5fd;
  --deep: #4a24c2;
  --soft: #f6f6f7;
  --soft-2: #ffffff;
  --muted: #4b5073;
  --faint: #7b7f9e;
  --line: #e7e7ec;
  --paper: #ffffff;
  --gradient-dark: linear-gradient(135deg, #090d28 0%, #1b1450 55%, #3a1c8c 100%);
  --gradient-brand: linear-gradient(135deg, #8b5cf6 0%, #6c3ce9 100%);
  --gradient-light: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  --radius: 14px;
  --wrap: 1800px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', Tahoma, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang='ar'] body {
  font-family: var(--font-ar);
  line-height: 1.85;
}
a {
  color: var(--violet);
  text-decoration: none;
}
a:hover {
  color: var(--violet-hover);
}
::selection {
  background: var(--lavender);
  color: var(--navy);
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo-mark {
  fill: initial;
  stroke: none;
}
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: 6px;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 32px;
  }
}
@media (min-width: 1200px) {
  .wrap {
    padding: 0 48px;
  }
}
.skip {
  position: absolute;
  inset-inline-start: -999px;
}
.skip:focus {
  inset-inline-start: 16px;
  top: 12px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}
kbd {
  font: 500 11px/1 var(--font);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 6px;
  background: #fff;
}
h1,
h2,
h3 {
  letter-spacing: -0.015em;
}
html[lang='ar'] h1,
html[lang='ar'] h2,
html[lang='ar'] h3 {
  letter-spacing: 0;
}

/* ---------- header + search band (dark, on every page) */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(9 13 40 / 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex-shrink: 0;
}
.brand:hover {
  color: #fff;
}
.logo-mark {
  width: 28px;
  height: 28px;
}
.word {
  font: 700 18px/1 var(--font);
  letter-spacing: -0.02em;
}
.word span {
  color: var(--lavender);
}
.brand-help {
  font-weight: 500;
  font-size: 14px;
  color: rgb(255 255 255 / 0.65);
  padding-inline-start: 12px;
  margin-inline-start: 2px;
  border-inline-start: 1px solid rgb(255 255 255 / 0.18);
}
.top-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(255 255 255 / 0.8);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
}
.lang svg {
  width: 17px;
  height: 17px;
}
.lang:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  border: 0;
}
.btn:hover {
  color: #fff;
  filter: brightness(1.08);
}
.btn-outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
}
.btn-outline:hover {
  background: rgb(255 255 255 / 0.08);
}
.btn-lg {
  height: 46px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: 12px;
}

.band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 28px 0 32px;
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 50% 0%, rgb(108 60 233 / 0.135), transparent 70%);
}
.band-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 30%, transparent 100%);
}
.band-inner {
  position: relative;
  text-align: center;
}
.band-home {
  padding: 72px 0 84px;
}
.band h1 {
  margin: 0;
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.1;
}
html[lang='ar'] .band h1 {
  line-height: 1.35;
}
.band-lead {
  color: rgb(255 255 255 / 0.72);
  font-size: 17px;
  margin: 14px auto 32px;
  max-width: 680px;
}
.band-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 14px;
  background: #fff;
  color: var(--faint);
  font: inherit;
  font-size: 15px;
  cursor: text;
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.6);
}
.band-home .band-search {
  height: 60px;
  max-width: 720px;
  font-size: 16px;
}
.band-search svg {
  width: 20px;
  height: 20px;
  color: var(--violet);
  flex-shrink: 0;
}
.band-search span {
  flex: 1;
  text-align: start;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- home */
.home-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 48px;
}
@media (max-width: 1000px) {
  .home-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .home-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 28px;
  }
}
.col-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #e7e7ec;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.col-card:hover {
  color: var(--navy);
  border-color: #18181b;
  box-shadow: 0 12px 32px -20px rgb(0 0 0 / 0.35);
}
.col-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.col-art-icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  color: #fff;
  stroke-width: 1.8;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 8px 18px -10px var(--c1);
  transition: transform 0.18s;
}
.col-card:hover .col-art-icon {
  transform: translateY(-2px);
}
.col-go {
  display: grid;
  color: #a1a1aa;
  transition: transform 0.18s, color 0.18s;
}
.col-go svg {
  width: 18px;
  height: 18px;
}
[dir='rtl'] .col-go svg {
  transform: scaleX(-1);
}
.col-card:hover .col-go {
  color: #18181b;
  transform: translateX(3px);
}
[dir='rtl'] .col-card:hover .col-go {
  transform: translateX(-3px);
}
.col-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.col-body strong {
  font-size: 17px;
}
.col-body span {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.col-body small {
  color: #71717a;
  font-size: 13px;
  font-weight: 500;
  margin-top: auto;
  padding-top: 8px;
}
.home-popular {
  padding-top: 56px;
}
.home-popular h2 {
  font-size: 22px;
  margin: 0 0 16px;
}

/* ---------- listings (collection + section pages) */
.listing {
  padding-top: 28px;
}
.listing h1 {
  margin: 14px 0 4px;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.2;
}
.listing .lead {
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
}
.list-title {
  font-size: 18px;
  margin: 36px 0 14px;
}
.sec {
  margin-top: 44px;
}
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.sec-head h2 {
  margin: 0;
  font-size: 20px;
}
.sec-head h2 a {
  color: var(--navy);
}
.sec-head h2 a:hover {
  color: var(--violet);
}
.sec-all {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.sec-all .chev {
  width: 16px;
  height: 16px;
}
.sec-desc {
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 14.5px;
}
.sec-head + .rows,
.sec-head + .app-grid {
  margin-top: 14px;
}
.rows {
  display: grid;
  gap: 10px;
}
.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.row:hover {
  color: var(--navy);
  border-color: var(--lavender);
  background: #fdfcff;
  box-shadow: 0 12px 32px -24px rgb(74 36 194 / 0.165);
}
.row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.row-text strong {
  font-weight: 600;
}
.row-text span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.chev {
  width: 20px;
  height: 20px;
  color: var(--faint);
  flex-shrink: 0;
}
.row:hover .chev {
  color: var(--violet);
}
html[dir='rtl'] .chev {
  transform: scaleX(-1);
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}
.app-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.app-card:hover {
  color: var(--navy);
  transform: translateY(-2px);
  border-color: var(--lavender);
  box-shadow: 0 18px 40px -26px rgb(74 36 194 / 0.15);
}
.app-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 8px;
}
.app-logo img {
  width: 26px;
  height: 26px;
}
.app-logo-lg {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin-bottom: 16px;
}
.app-logo-lg img {
  width: 34px;
  height: 34px;
}
.app-initial {
  font-weight: 700;
  color: var(--violet);
  font-size: 18px;
}
.app-logo-lg .app-initial {
  font-size: 24px;
}
.app-name {
  font-weight: 600;
}
.app-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- breadcrumbs */
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}
.crumbs li + li::before {
  content: '›';
  display: inline-block;
  margin-inline-end: 6px;
  color: var(--faint);
}
html[dir='rtl'] .crumbs li + li::before {
  content: '‹';
}
.crumbs a {
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--violet);
}
.crumbs li[aria-current] {
  color: var(--navy);
  font-weight: 500;
}

/* ---------- article */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  padding-top: 28px;
}
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
}
.article {
  min-width: 0;
  max-width: 1100px;
}
.article-head {
  margin: 18px 0 26px;
}
.article-head h1 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 40px);
  line-height: 1.2;
}
html[lang='ar'] .article-head h1 {
  line-height: 1.45;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--soft);
  margin-inline-end: 2px;
}
.avatar .logo-mark {
  width: 14px;
  height: 14px;
}
.dot {
  color: var(--faint);
}

.toc {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow: auto;
  font-size: 14px;
  padding-top: 52px;
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-inline-start: 1px solid var(--line);
}
.toc a {
  display: block;
  padding: 5px 14px;
  margin-inline-start: -1px;
  border-inline-start: 2px solid transparent;
  color: var(--muted);
  line-height: 1.45;
}
.toc .toc-l3 a {
  padding-inline-start: 28px;
  font-size: 13.5px;
}
.toc a:hover {
  color: var(--navy);
}
.toc a.active {
  color: var(--violet);
  border-color: var(--violet);
  font-weight: 500;
}
.share {
  margin-top: 26px;
}
.share p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.share-row {
  display: flex;
  gap: 8px;
}
.share-row a,
.share-row button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.share-row a:hover,
.share-row button:hover {
  color: var(--violet);
  border-color: var(--lavender);
}
.share-row svg {
  width: 16px;
  height: 16px;
}
.share-row button.copied {
  color: #12805c;
  border-color: #c6f0dc;
}

.prose {
  font-size: 16.5px;
}
.prose > p:first-child {
  font-size: 17.5px;
  color: #23284a;
}
.prose h2 {
  font-size: 26px;
  line-height: 1.3;
  margin: 48px 0 14px;
}
.prose h3 {
  font-size: 19px;
  margin: 30px 0 8px;
}
.prose h4 {
  font-size: 16.5px;
  margin: 22px 0 6px;
}
.prose h2,
.prose h3,
.prose h4 {
  position: relative;
}
.anchor {
  position: absolute;
  inset-inline-start: -22px;
  color: var(--lavender);
  opacity: 0;
  font-weight: 400;
}
.prose h2:hover .anchor,
.prose h3:hover .anchor {
  opacity: 1;
}
.prose p {
  margin: 0 0 14px;
}
.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-inline-start: 24px;
}
.prose li {
  margin: 6px 0;
}
.prose li::marker {
  color: var(--violet);
}
.prose li > ul,
.prose li > ol {
  margin: 6px 0 0;
}
.prose ol.steps {
  list-style: none;
  counter-reset: step;
  padding-inline-start: 0;
}
.prose ol.steps > li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 42px;
  margin: 12px 0;
}
.prose ol.steps > li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--violet);
  font-size: 13px;
  font-weight: 700;
}
.prose strong {
  font-weight: 600;
}
.prose code {
  font: 500 0.86em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--soft);
  color: var(--deep);
  padding: 2px 6px;
  border-radius: 6px;
}
.prose pre {
  background: var(--navy);
  color: #e9e6ff;
  padding: 16px 18px;
  border-radius: 12px;
  overflow: auto;
  direction: ltr;
  text-align: left;
}
.prose pre code {
  background: none;
  color: inherit;
  padding: 0;
}
.prose a {
  text-decoration: underline;
  text-decoration-color: var(--lavender);
  text-underline-offset: 3px;
}
.prose blockquote {
  margin: 0 0 16px;
  padding: 4px 16px;
  border-inline-start: 3px solid var(--lavender);
  color: var(--muted);
}
.crumb-sep {
  color: var(--violet);
  font-weight: 600;
}
html[dir='rtl'] .crumb-sep {
  display: inline-block;
  transform: scaleX(-1);
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
}
th,
td {
  text-align: start;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--soft);
  font-weight: 600;
}
tr:last-child td {
  border-bottom: 0;
}

/* callouts */
.callout {
  display: flex;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--soft-2);
  font-size: 15.5px;
}
.callout > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--violet);
}
.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}
.callout-title {
  font-weight: 600;
  margin-bottom: 4px !important;
}
.callout-warning {
  background: #fff8eb;
  border-color: #fde7b0;
}
.callout-warning > svg {
  color: #b7791f;
}
.callout-tip {
  background: #effcf6;
  border-color: #c6f0dc;
}
.callout-tip > svg {
  color: #12805c;
}

/* screenshots */
.shot {
  margin: 10px 0 26px;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -30px rgb(9 13 40 / 0.35);
}
.shot figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.shot-frame {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  border: 2px dashed var(--lavender);
  border-radius: 12px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(196 181 253 / 0.12) 14px 15px),
    #ffffff;
}
.shot-small {
  aspect-ratio: 4 / 3;
  max-width: 460px;
  margin: 0 auto;
}
.shot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--violet);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.shot-badge svg {
  width: 16px;
  height: 16px;
}
.shot-page {
  margin: 4px 0 0;
  font-weight: 600;
  font-size: 15px;
  max-width: 600px;
}
.shot-show {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 600px;
}
.shot-file {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.shot-file code {
  font-size: 12px;
  direction: ltr;
  unicode-bidi: embed;
}
@media (max-width: 560px) {
  .shot-frame {
    aspect-ratio: auto;
    min-height: 220px;
  }
}

/* feedback + related */
.feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 48px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 500;
}
.feedback span:first-child {
  margin-inline-end: auto;
}
.feedback button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  color: var(--navy);
}
.feedback button:hover {
  border-color: var(--violet);
  color: var(--violet);
}
.feedback-thanks {
  color: var(--violet);
}
.related {
  padding-top: 56px;
}
.related h2 {
  font-size: 22px;
  margin: 0 0 16px;
}

/* ---------- can't find + footer */
.cant-find {
  margin-top: 88px;
  background: var(--gradient-dark);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cant-find h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
}
.cant-find p {
  margin: 8px 0 22px;
  color: rgb(255 255 255 / 0.7);
}
.foot {
  background: var(--navy);
  color: rgb(255 255 255 / 0.7);
  border-top: 1px solid rgb(255 255 255 / 0.08);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 14px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.foot nav a {
  color: rgb(255 255 255 / 0.7);
}
.foot nav a:hover {
  color: #fff;
}
.foot-copy {
  margin-inline-start: auto;
}

/* ---------- search dialog */
.search-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgb(9 13 40 / 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10vh 16px 16px;
}
.search-dialog[hidden] {
  display: none;
}
.search-panel {
  width: 100%;
  max-width: 680px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px -20px rgb(9 13 40 / 0.5);
  overflow: hidden;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.search-field svg {
  width: 20px;
  height: 20px;
  color: var(--violet);
}
.search-field input {
  flex: 1;
  height: 58px;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 16px;
  background: none;
  color: var(--navy);
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 60vh;
  overflow: auto;
}
.search-results:empty {
  display: none;
}
.search-results a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--navy);
}
.search-results a:hover,
.search-results a[aria-selected='true'] {
  background: var(--soft);
}
.search-results strong {
  display: block;
  font-weight: 600;
}
.search-results span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.search-results small {
  color: var(--violet);
  font-size: 12px;
  font-weight: 500;
}
.search-empty {
  padding: 24px;
  margin: 0;
  text-align: center;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* UI paths in Arabic read better in the Arabic face than in monospace. */
html[lang='ar'] .prose code {
  font-family: var(--font-ar);
  font-size: 0.92em;
}

/* Header and footer span the whole window; page content keeps its reading width. */
.wrap-full {
  max-width: none;
}
@media (min-width: 1200px) {
  .wrap-full {
    padding: 0 40px;
  }
}
.app-logo img {
  object-fit: contain;
  border-radius: 6px;
}

/* ---------- floating scrollbar: no browser bar, no track, just a thin thumb over the page */
html {
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  display: none;
}
.fsb {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 90;
  width: 12px;
  pointer-events: auto;
}
.fsb-thumb {
  position: absolute;
  top: 0;
  right: 3px;
  width: 5px;
  border-radius: 999px;
  background: rgb(139 92 246 / 0.55);
  opacity: 0;
  cursor: grab;
  transition: opacity 0.35s ease, width 0.2s ease, background 0.2s ease;
}
.fsb.on .fsb-thumb,
.fsb:hover .fsb-thumb {
  opacity: 1;
}
.fsb:hover .fsb-thumb,
.fsb.drag .fsb-thumb {
  width: 7px;
  background: rgb(139 92 246 / 0.85);
}
.fsb.drag .fsb-thumb {
  cursor: grabbing;
}
@media (hover: none) {
  .fsb {
    display: none;
  }
}

/* ---------- language dropdown with flags */
.lang-dd {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 8px 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang-btn:hover,
.lang-dd.is-open .lang-btn {
  background: rgb(97 97 102 / 0.2);
}
.flag {
  width: 20px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18);
}
.lang-btn .chev,
.lang-btn .chev-s {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s ease;
}
.lang-dd.is-open .lang-btn .chev,
.lang-dd.is-open .lang-btn .chev-s {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 60;
  min-width: 190px;
  padding: 6px;
  border-radius: 10px;
  background: #212123;
  border: 1px solid #3d3d40;
  box-shadow: 0 24px 50px -20px rgb(0 0 0 / 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.25s ease, visibility 0.2s;
}
.lang-dd.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.lang-menu a:hover {
  color: #fff;
  background: rgb(97 97 102 / 0.22);
}
.lang-menu a[lang='ar'] span {
  font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', Tahoma, sans-serif;
}
.lang-check {
  width: 16px;
  height: 16px;
  margin-inline-start: auto;
  fill: none;
  stroke: #a78bfa;
  stroke-width: 2.4;
}

/* ===== Header + footer shared with the website (respond.io layout) ===== */
:root {
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --lav: #c4b5fd;
  --ink: #05060f;
  --hair-d: rgb(255 255 255 / 0.09);
}
.top {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
}
.top .wrap {
  max-width: none;
}
.brand-tag {
  margin-inline-start: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.85);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
}
.top .brand {
  min-width: 0;
}
.top .btn-sm.btn-outline {
  background: transparent;
}
/* band sits under the fixed header */
.band {
  padding-top: 92px;
  background: var(--ink);
}
.band-home {
  padding-top: 140px;
}
html {
  scroll-padding-top: 96px;
}
/* ---------- header: measured from respond.io
   fixed, 8px outer padding, 1320px shell; transparent at the top, a #212123 card with a #3D3D40
   border and 8px radius once the page scrolls; 48px row (8px 12px padding); 32px items, 14px/500. */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 8px;
  color: #fff;
  pointer-events: none;
}
.top-shell {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  border: 1px solid transparent;
  border-radius: 8px;
  pointer-events: auto;
  transition:
    background-color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    border-radius 0.2s var(--ease);
}
.top.is-scrolled .top-shell,
.top.is-open .top-shell,
.top.is-menu .top-shell {
  background: #212123;
  border-color: #3d3d40;
}
.top.is-open .top-shell {
  border-radius: 12px 12px 0 0;
}
.top-row {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 8px 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
  min-width: 138px;
  padding-inline-start: 8px;
  margin-inline-end: 20px;
  color: #fff;
  flex-shrink: 0;
}
.brand:hover {
  color: #fff;
}
.top .brand .logo-mark {
  width: 22px;
  height: 22px;
}
.word {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
  font-family: var(--font);
}
.word span {
  color: var(--lav);
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-item {
  position: static;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #fff;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
button.nav-link {
  padding: 0 8px 0 14px;
}
html[dir='rtl'] button.nav-link {
  padding: 0 14px 0 8px;
}
.nav-link:hover,
.nav-item.is-open > .nav-link {
  color: #fff;
  background: rgb(97 97 102 / 0.16);
}
.nav-item.is-open > .nav-link {
  background: rgb(97 97 102 / 0.28);
}
.nav-link .chev {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}
.nav-item.is-open .chev {
  transform: rotate(180deg);
}
/* Mega panel continues the header card below the row (respond.io). */
.mm {
  position: absolute;
  top: 100%;
  left: -1px;
  right: -1px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0.25s;
}
.nav-item.is-open .mm {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mm-inner {
  display: flex;
  gap: 8px;
  padding: 20px 24px 28px;
  border: 1px solid #3d3d40;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #212123;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7);
  color: #fff;
}
.mm-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mm-col-wide {
  flex: 3;
}
.mm-col-split {
  padding-inline-start: 24px;
  margin-inline-start: 8px;
  border-inline-start: 1px solid #3d3d40;
}
.mm-title {
  margin: 8px 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #a1a1aa;
}
.mm-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 20px;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.mm-link:hover {
  color: #fff;
  background: rgb(97 97 102 / 0.2);
}
.ml-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #fff;
}
.ml-ico .ico {
  width: 22px;
  height: 22px;
  stroke-width: 1.4;
}
.ml-logo img {
  width: 20px;
  height: 20px;
  padding: 1px;
  border-radius: 6px;
  background: #fff;
}
.ml-ico-lg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgb(97 97 102 / 0.18);
}
.ml-ico-lg .ico {
  width: 20px;
  height: 20px;
}
.mm-apps {
  display: block;
  margin-top: 4px;
  border-radius: 8px;
  color: #fff;
}
.mm-apps:hover {
  color: #fff;
}
.mm-apps:hover .mm-link {
  background: rgb(97 97 102 / 0.2);
}
.mm-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 2px 12px 10px 48px;
}
html[dir='rtl'] .mm-logos {
  padding: 2px 48px 10px 12px;
}
.mm-logos img {
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
}
.mm-logos b {
  font-size: 13.5px;
  font-weight: 500;
  color: #e4e4e7;
  margin-inline-start: 2px;
}
.mm-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mm-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.mm-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.mm-item:hover {
  color: #fff;
  background: rgb(97 97 102 / 0.2);
}
.mm-item strong {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 20px;
}
.mm-item small {
  display: block;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 18px;
  margin-top: 2px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 4px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.lang .ico {
  width: 16px;
  height: 16px;
}
.lang span {
  display: none;
}
.lang:hover {
  color: #fff;
  background: rgb(97 97 102 / 0.16);
}
.top .btn-sm {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.top .btn-sm.btn-outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
}
.top .btn-sm.btn-outline:hover {
  background: rgb(97 97 102 / 0.2);
}
.top .btn-sm.btn-primary {
  background: var(--violet);
}
.top .btn-sm.btn-primary:hover {
  background: var(--violet-hover);
  transform: none;
}
.burger {
  display: none;
  position: relative;
  width: 36px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.burger:hover {
  background: rgb(97 97 102 / 0.16);
}
.burger .ico {
  display: none;
}
.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1.6px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.burger::before {
  top: 12px;
}
.burger::after {
  top: 19px;
}
.top.is-menu .burger::before {
  top: 15.5px;
  transform: rotate(45deg);
}
.top.is-menu .burger::after {
  top: 15.5px;
  transform: rotate(-45deg);
}
.nav-mobile-cta {
  display: none;
}
@media (max-width: 1240px) {
  .hide-md {
    display: none;
  }
}
@media (max-width: 1100px) {
  .nav {
    display: none;
  }
  .burger {
    display: block;
  }
  .top.is-menu .top-shell {
    border-radius: 8px;
  }
  .top.is-menu .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    inset: 74px 8px 8px;
    padding: 12px;
    border: 1px solid #3d3d40;
    border-radius: 8px;
    background: #212123;
    overflow: auto;
    gap: 2px;
  }
  .top.is-menu .nav > * {
    animation: rise 0.5s var(--ease) both;
  }
  .top.is-menu .nav > *:nth-child(2) {
    animation-delay: 0.04s;
  }
  .top.is-menu .nav > *:nth-child(3) {
    animation-delay: 0.08s;
  }
  .top.is-menu .nav > *:nth-child(4) {
    animation-delay: 0.12s;
  }
  .top.is-menu .nav > *:nth-child(5) {
    animation-delay: 0.16s;
  }
  .top.is-menu .nav-link {
    width: 100%;
    justify-content: space-between;
    height: 48px;
    padding: 0 12px;
    font-size: 16px;
  }
  .top.is-menu .mm {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .top.is-menu .nav-item.is-open .mm {
    display: block;
  }
  .top.is-menu .mm-inner {
    flex-direction: column;
    gap: 16px;
    padding: 8px 0 12px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .top.is-menu .mm-inner::before {
    display: none;
  }
  .top.is-menu .mm-col-split {
    border: 0;
    padding: 0;
    margin: 0;
  }
  .top.is-menu .mm-grid3,
  .top.is-menu .mm-grid2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .top.is-menu .nav-mobile-cta {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
  }
  .top.is-menu .nav-mobile-cta .btn {
    border-radius: 8px;
    height: 44px;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 640px) {
  .hide-sm {
    display: none;
  }
}


/* Can't find + footer */
.cant-find {
  margin-top: 96px;
  padding: 0 0 96px;
  background: none;
  color: #fff;
}
.cant-inner {
  position: relative;
  overflow: hidden;
  padding: 72px 28px;
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(50% 80% at 50% 0%, rgb(139 92 246 / 0.15), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgb(74 36 194 / 0.135), transparent 70%),
    var(--ink);
  box-shadow:
    0 0 0 1px var(--hair-d),
    0 0 0 10px rgb(108 60 233 / 0.06),
    0 50px 100px -50px rgb(74 36 194 / 0.7);
}
.cant-inner h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: -0.03em;
}
.cant-inner p {
  margin: 12px auto 26px;
  max-width: 560px;
  color: rgb(255 255 255 / 0.7);
}
.cant-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.cant-ctas .btn-outline,
.foot-cta .btn-outline {
  color: #fff;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3);
}
/* ---------- footer */
.foot {
  margin-top: 0;
  border-top: 0;
  position: relative;
  background:
    radial-gradient(40% 50% at 15% 0%, rgb(108 60 233 / 0.066), transparent 70%),
    var(--ink);
  color: rgb(255 255 255 / 0.6);
  padding-top: 88px;
  overflow: hidden;
}
.foot .wrap {
  max-width: none;
}
@media (min-width: 1200px) {
  .foot .wrap {
    padding: 0 40px;
  }
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 44px;
}
@media (max-width: 1000px) {
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}
.foot-brand p {
  max-width: 420px;
  margin: 20px 0 24px;
  font-size: 15px;
}
.foot-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.foot-title {
  margin: 0 0 16px;
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
html[lang='ar'] .foot-title {
  letter-spacing: 0;
  font-size: 14px;
}
.foot-title-2 {
  margin-top: 32px;
}
.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
}
.foot a {
  color: rgb(255 255 255 / 0.62);
}
.foot a:hover {
  color: #fff;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 64px;
  padding-top: 26px;
  padding-bottom: 30px;
  border-top: 1px solid var(--hair-d);
  font-size: 13.5px;
}
.foot-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.foot::after {
  content: 'Resool';
  display: block;
  margin: 0 auto -0.22em;
  text-align: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(90px, 19vw, 300px);
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, rgb(196 181 253 / 0.16), rgb(196 181 253 / 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
}


.foot .brand {
  color: #fff;
}
.foot .brand .logo-mark {
  width: 28px;
  height: 28px;
}
.foot-grid .foot-brand .word {
  font-size: 19px;
}

/* real icons instead of emoji */
.tick {
  display: inline-block;
  width: 18px;
  height: 18px;
  padding: 3px;
  vertical-align: -4px;
  border-radius: 50%;
  background: #e7fbf3;
  color: #0f8a5f;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}
.fb-ico {
  width: 16px;
  height: 16px;
  margin-inline-end: 6px;
  vertical-align: -3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.feedback button {
  display: inline-flex;
  align-items: center;
}
.cant-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgb(40 28 78 / 0.95), rgb(16 12 34 / 0.95)) padding-box,
    linear-gradient(160deg, rgb(196 170 255 / 0.7), rgb(108 60 233 / 0.15) 60%, rgb(196 170 255 / 0.35)) border-box;
  color: #d8c8ff;
  box-shadow: 0 20px 40px -18px rgb(139 92 246 / 0.24), inset 0 1px 0 rgb(255 255 255 / 0.08);
}
.cant-ico::before {
  content: '';
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(139 92 246 / 0.105), transparent 70%);
}
.cant-ico svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- compact footer (no header duplicates) */
.foot {
  padding-top: 56px;
}
.foot::after {
  display: none;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 64px;
}
.foot-brand {
  max-width: 420px;
}
.foot-brand p {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
}
.foot-col ul {
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.foot-col .foot-title {
  margin-bottom: 12px;
}
.foot-2col {
  grid-template-columns: repeat(2, max-content);
  column-gap: 40px;
}
.foot-bottom {
  margin-top: 40px;
  padding-top: 20px;
  padding-bottom: 24px;
}
@media (max-width: 640px) {
  .foot-2col {
    grid-template-columns: 1fr;
  }
}

.cant-find {
  margin-top: 72px;
  padding-bottom: 64px;
}
.cant-inner {
  padding: 48px 24px;
  border-radius: 24px;
}
.foot .brand .logo-mark {
  width: 28px;
  height: 28px;
}
.foot .foot-col {
  display: block;
}
.foot .foot-col ul {
  display: grid;
}
.foot .foot-title {
  display: block;
}

/* ---------- footer spacing: same 1320px column as the header, one grid, one baseline */
.foot {
  padding-top: 64px;
}
.foot .wrap,
.foot .wrap.foot-row,
.foot .wrap.foot-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.foot-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  align-items: start;
  gap: 40px 72px;
}
.foot-row > :only-child,
.foot-row > :first-child:nth-last-child(2) {
  grid-column: auto;
}
.foot-row:has(> :nth-child(2):last-child) {
  grid-template-columns: minmax(0, 1fr) auto;
}
.foot-brand {
  max-width: 400px;
}
.foot-brand .brand {
  display: inline-flex;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.foot-brand p {
  margin: 16px 0 0;
}
.foot .foot-title {
  margin: 4px 0 16px;
  line-height: 1;
}
.foot .foot-col ul {
  gap: 12px;
  line-height: 1.4;
}
.foot-2col {
  grid-template-columns: repeat(2, max-content);
  column-gap: 48px;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 22px !important;
  padding-bottom: 28px !important;
  border-top: 0;
  position: relative;
}
.foot-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: rgb(255 255 255 / 0.09);
}
.foot-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
@media (max-width: 860px) {
  .foot-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .foot-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-2col {
    grid-template-columns: 1fr;
  }
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.foot .wrap.foot-bottom {
  margin: 56px auto 0;
}

/* ---------- language switcher in the footer (the only one on phones) */
.foot-bottom {
  align-items: center;
}
.foot-lang {
  order: 3;
}
.foot-lang .lang-btn {
  height: 34px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
}
.foot-lang .lang-menu {
  top: auto;
  bottom: calc(100% + 10px);
  inset-inline-end: 0;
}
@media (max-width: 760px) {
  .top-lang {
    display: none;
  }
}

/* skip link: visually hidden without pushing anything off-screen (RTL-safe) */
.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-200%);
  clip-path: inset(50%);
}
.skip:focus {
  transform: none;
  clip-path: none;
}
@media (max-width: 1100px) {
  .anchor {
    display: none;
  }
}
@media (max-width: 520px) {
  .foot-row,
  .foot-row:has(> :nth-child(2):last-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .prose table {
    font-size: 13px;
  }
  .prose th,
  .prose td {
    padding: 9px 10px;
  }
}

html,
body {
  overflow-x: clip;
}
.prose {
  overflow-wrap: anywhere;
}
.prose code {
  word-break: break-word;
  white-space: normal;
}
.prose pre code {
  white-space: pre;
}
@media (max-width: 760px) {
  .foot .wrap.foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
    gap: 16px;
  }
  .foot-lang {
    order: -1;
  }
  .foot-lang .lang-menu {
    inset-inline-end: auto;
    inset-inline-start: 0;
  }
}

/* ---------- App Store / Google Play badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px 0 12px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.3s ease;
}
html[dir='rtl'] .store-badge {
  padding: 0 12px 0 16px;
}
.store-badge:hover {
  color: #fff;
  background: #111;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.4);
  transform: translateY(-1px);
}
.store-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
  flex-shrink: 0;
}
.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: start;
}
.store-badge small {
  font-size: 10.5px;
  font-weight: 500;
  opacity: 0.85;
}
.store-badge b {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: 'Geist', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* ---------- full width on every screen (same gutter as the website) */
:root {
  --gutter: clamp(16px, 4vw, 72px);
}
.wrap,
.foot .wrap,
.foot .wrap.foot-row,
.foot .wrap.foot-bottom {
  max-width: none;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.top {
  padding: 8px max(8px, calc(var(--gutter) - 21px));
}
.top-shell {
  max-width: none;
}
.foot-bottom::before {
  left: var(--gutter);
  right: var(--gutter);
}
.article {
  max-width: 1080px;
}
.article-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  justify-content: space-between;
}
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.band-search {
  max-width: 760px;
}
@media (min-width: 761px) {
  .foot-bottom nav {
    margin-inline-start: auto;
  }
}

/* header language switcher: just a globe, like respond.io */
.lang-globe .lang-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
}
.globe-ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.store-badge .sb-ico {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  stroke: none;
}

/* search fields share the header's 8px radius */
.band-search,
.band-home .band-search,
.search-panel,
.search-field {
  border-radius: 8px;
}
.band-search kbd,
.search-field kbd {
  border-radius: 6px;
}

/* ---------- one corner radius everywhere: 8px, like the header and search fields */
.btn,
.btn-lg,
.row,
.col-card,
.col-art,
.app-card,
.app-logo,
.ig-card,
.callout,
.shot img,
.shot-frame,
.table-wrap,
.feedback,
.feedback button,
.related-grid a,
.cant-inner,
.lang-menu,
.store-badge,
.help-links a,
.search-results a,
.prose pre,
.share-row a,
.share-row button,
.ig-side button {
  border-radius: 8px;
}
.col-art-icon,
.cat-icon,
.cant-ico,
.avatar {
  border-radius: 8px;
}

/* ---------- one button size everywhere: the header's (32px, 14px/500, 8px radius) */
.btn,
.btn-lg,
.btn-sm,
.top .btn-sm,
.feedback button {
  height: 32px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
}
.btn {
  background: #6c3ce9;
  box-shadow: none;
}
.btn:hover {
  background: #5632d8;
  filter: none;
}
.btn-outline {
  background: transparent;
}
.store-badge {
  height: 40px;
}
.nav-mobile-cta .btn,
.top.is-menu .nav-mobile-cta .btn {
  height: 40px;
}
.tick {
  width: 18px;
  height: 18px;
  padding: 0;
  background: none;
  color: #6c3ce9;
  stroke-width: 2.6;
}

/* ---------- code block copy button */
.prose pre.has-copy {
  position: relative;
  padding-bottom: 52px;
}
.code-copy {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.06);
  color: rgb(255 255 255 / 0.8);
  font: 500 12.5px/1 inherit;
  font-family: var(--font, inherit);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.code-copy:hover {
  background: rgb(255 255 255 / 0.14);
  color: #fff;
}
.code-copy svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.code-copy.is-done {
  color: #6ee7b7;
  border-color: rgb(110 231 183 / 0.4);
}

/* ---------- footer columns: brand + evenly spaced single-column lists */
.foot-row,
.foot-row:has(> :nth-child(2):last-child) {
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
}
.foot .foot-col ul {
  gap: 10px;
}
@media (max-width: 900px) {
  .foot-row,
  .foot-row:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- app grids: 5 per row on wide screens */
@media (min-width: 1280px) {
  .app-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
