.pd-shell,
.pd-shell *,
.pd-drawer,
.pd-drawer * {
  box-sizing: border-box;
}

.pd-shell {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--pd-page);
  color: var(--pd-text-primary);
  font-family: var(--pd-font-body);
  font-size: var(--pd-text-md);
  line-height: var(--pd-leading-body);
  transition: background-color var(--pd-motion-standard) var(--pd-ease), color var(--pd-motion-standard) var(--pd-ease);
}

.pd-shell [hidden],
.pd-drawer[hidden],
.pd-drawer [hidden] {
  display: none !important;
}

.pd-shell h1,
.pd-shell h2,
.pd-shell h3,
.pd-shell p,
.pd-drawer h2,
.pd-drawer p {
  margin-block: 0;
}

.pd-shell button,
.pd-shell input,
.pd-shell select,
.pd-shell textarea,
.pd-drawer button,
.pd-drawer input,
.pd-drawer select,
.pd-drawer textarea {
  font: inherit;
}

.pd-shell a {
  color: var(--pd-accent-strong);
}

.pd-shell :is(a, button, input, select, textarea, [tabindex]):focus-visible,
.pd-drawer :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--pd-focus);
  outline-offset: 3px;
  box-shadow: var(--pd-focus-ring);
}

.pd-shell :is(button, input, select, textarea):disabled,
.pd-drawer :is(button, input, select, textarea):disabled {
  cursor: not-allowed;
  background: var(--pd-disabled-surface);
  color: var(--pd-disabled-text);
  opacity: 1;
}

.pd-frame {
  width: min(100%, var(--pd-content-max));
  margin-inline: auto;
  padding: clamp(var(--pd-space-5), 3vw, var(--pd-space-8));
}

.pd-stack {
  display: grid;
  gap: var(--pd-space-6);
}

.pd-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pd-space-3);
}

.pd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--pd-space-5);
}

.pd-section-heading {
  display: grid;
  gap: var(--pd-space-2);
}

.pd-section-heading h2 {
  font-family: var(--pd-font-display);
  font-size: var(--pd-text-xl);
  line-height: var(--pd-leading-tight);
  letter-spacing: -0.015em;
}

.pd-section-heading p {
  max-width: 64ch;
  color: var(--pd-text-secondary);
}

.pd-action {
  min-height: var(--pd-touch-target);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--pd-space-3);
  padding: 0.625rem 0.95rem;
  border: var(--pd-border-width) solid var(--pd-border-strong);
  border-radius: var(--pd-radius-md);
  background: var(--pd-surface-base);
  color: var(--pd-text-primary);
  font-weight: 760;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--pd-motion-fast) var(--pd-ease), background-color var(--pd-motion-fast) var(--pd-ease), border-color var(--pd-motion-fast) var(--pd-ease);
}

.pd-action:hover {
  border-color: var(--pd-accent);
  background: var(--pd-surface-interactive);
}

.pd-action:active {
  transform: translateY(1px);
}

.pd-action--primary {
  border-color: var(--pd-accent-strong);
  background: var(--pd-accent-strong);
  color: var(--pd-surface-base);
}

.pd-action--primary:hover {
  background: var(--pd-accent);
  color: var(--pd-surface-base);
}

.pd-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body[data-pd-drawer-open="true"] {
  overflow: hidden;
}

@media (max-width: 43.75rem) {
  .pd-frame {
    padding: var(--pd-space-5);
  }

  .pd-stack {
    gap: var(--pd-space-5);
  }
}

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

@media (forced-colors: active) {
  .pd-shell :is(a, button, input, select, textarea, [tabindex]):focus-visible,
  .pd-drawer :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid Highlight;
  }
}
