/* Pagetna base layer: element defaults inside the platform (.pg body). */
html:has(body.pg) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--pg-site-header, 72px) + 16px); }

body.pg {
  margin: 0;
  background: var(--pg-bg);
  color: var(--pg-text);
  font-family: var(--pg-font);
  font-size: var(--pg-text-base);
  line-height: var(--pg-leading);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[dir=rtl] body.pg { font-family: var(--pg-font-ar); line-height: 1.75; }

.pg :where(h1, h2, h3, h4, h5, h6):where(:not(.business-site *)) {
  margin: 0;
  color: var(--pg-ink);
  font-family: var(--pg-font-display);
  font-weight: var(--pg-weight-bold);
  line-height: var(--pg-leading-tight);
  letter-spacing: var(--pg-tracking-tight);
  text-wrap: balance;
}
.pg :where(p):where(:not(.business-site *)) { margin: 0; text-wrap: pretty; }
html[dir=rtl] .pg :where(h1, h2, h3, h4, h5, h6):where(:not(.business-site *)) { letter-spacing: 0; line-height: 1.4; }
.pg :where(a):where(:not(.business-site *)) { color: inherit; text-decoration: none; }
.pg :where(img, svg, video):where(:not(.business-site *)) { display: block; max-width: 100%; }
.pg :where(svg):where(:not(.business-site *)) { flex-shrink: 0; }
.pg :where(button, input, select, textarea):where(:not(.business-site *)) { font: inherit; color: inherit; }
.pg :where(button):where(:not(.business-site *)) { cursor: pointer; }
.pg :where(button:disabled, [aria-disabled=true]):where(:not(.business-site *)) { cursor: not-allowed; }
.pg :where(ul[class], ol[class]):where(:not(.business-site *)) { margin: 0; padding: 0; list-style: none; }
.pg :where(fieldset):where(:not(.business-site *)) { margin: 0; padding: 0; border: 0; min-width: 0; }
.pg :where(legend):where(:not(.business-site *)) { padding: 0; }
.pg :where(hr):where(:not(.business-site *)) { border: 0; border-top: 1px solid var(--pg-line); margin: var(--pg-space-6) 0; }
.pg :where(code, kbd, samp):where(:not(.business-site *)) { font-family: var(--pg-font-mono); font-size: .9em; }
.pg :where(small):where(:not(.business-site *)) { font-size: var(--pg-text-sm); }
.pg :where(strong, b):where(:not(.business-site *)) { font-weight: var(--pg-weight-semibold); }
.pg :where(bdi):where(:not(.business-site *)) { unicode-bidi: isolate; }

.pg :where(a, button, input, select, textarea, summary, [tabindex]):where(:not(.business-site *)):focus-visible {
  outline: 2px solid var(--pg-primary);
  outline-offset: 2px;
}
.pg :where(:not(.business-site *))::selection { background: color-mix(in srgb, var(--pg-primary) 22%, transparent); color: inherit; }
html:has(body.pg) { scrollbar-color: var(--pg-line-strong) transparent; }

/* Utilities */
.pg .pg-visually-hidden { position: absolute !important; inset-block-start: 0; inset-inline-start: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pg .pg-skip-link { position: fixed; z-index: 100; inset-block-start: -100px; inset-inline-start: var(--pg-space-4); padding: var(--pg-space-3) var(--pg-space-5); border-radius: var(--pg-radius-sm); background: var(--pg-ink); color: var(--pg-on-inverse); font-weight: var(--pg-weight-semibold); }
.pg .pg-skip-link:focus { inset-block-start: var(--pg-space-3); }
.pg .pg-container { width: min(var(--pg-container), 100% - 2 * var(--pg-gutter)); margin-inline: auto; }
.pg .pg-container--wide { width: min(var(--pg-container-wide), 100% - 2 * var(--pg-gutter)); }
.pg .pg-container--narrow { width: min(var(--pg-container-narrow), 100% - 2 * var(--pg-gutter)); }
.pg .pg-stack { display: flex; flex-direction: column; gap: var(--pg-stack-gap, var(--pg-space-4)); }
.pg .pg-stack--sm { --pg-stack-gap: var(--pg-space-2); }
.pg .pg-stack--lg { --pg-stack-gap: var(--pg-space-6); }
.pg .pg-stack--xl { --pg-stack-gap: var(--pg-space-10); }
.pg .pg-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pg-cluster-gap, var(--pg-space-3)); }
.pg .pg-cluster--between { justify-content: space-between; }
.pg .pg-cluster--end { justify-content: flex-end; }
.pg .pg-grid { display: grid; gap: var(--pg-grid-gap, var(--pg-space-6)); grid-template-columns: repeat(auto-fill, minmax(min(var(--pg-grid-min, 280px), 100%), 1fr)); }
.pg .pg-text-muted { color: var(--pg-muted); }
.pg .pg-text-subtle { color: var(--pg-subtle); }
.pg .pg-text-sm { font-size: var(--pg-text-md); }
.pg .pg-text-xs { font-size: var(--pg-text-xs); }
.pg .pg-nowrap { white-space: nowrap; }
.pg .pg-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pg .pg-icon { width: var(--pg-icon-md); height: var(--pg-icon-md); }
.pg .pg-icon--sm { width: var(--pg-icon-sm); height: var(--pg-icon-sm); }
.pg .pg-icon--lg { width: var(--pg-icon-lg); height: var(--pg-icon-lg); }
html[dir=rtl] .pg .pg-icon--dir { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  .pg *, .pg *::before, .pg *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
