.pd-shell .container { max-width: var(--pd-content-width); padding-inline: var(--pd-gutter); }

.pd-shell .site-nav.pd-header {
  background: var(--omp-surface);
  border-bottom-color: var(--omp-line);
  box-shadow: none;
  backdrop-filter: none;
}
.pd-shell .site-nav__inner {
  display: flex;
  max-width: none;
  min-height: var(--pd-header-height);
  height: var(--pd-header-height);
  gap: 0.5rem;
  padding-inline: 1rem;
}
.pd-shell .site-nav__brand { margin-right: 0.5rem; }
.pd-shell .site-nav__wordmark { font-size: 1rem; font-weight: 600; }
.pd-shell .site-nav__links { gap: 0.25rem; }
.pd-shell .site-nav__links a {
  padding: 0 0.55rem;
  min-height: 2rem;
  border-radius: var(--omp-radius-small);
  color: var(--omp-muted);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.pd-shell .site-nav__links a:hover { color: var(--omp-ink); background: var(--omp-item); }
.pd-shell .site-nav__links a[aria-current] { color: var(--pd-accent); background: var(--pd-accent-soft); }
.pd-shell .site-nav__search-trigger,
.pd-shell .site-nav__hamburger,
.pd-shell .ecosystem-switcher__trigger {
  padding: 0 0.625rem;
  min-height: 2rem;
  height: 2rem;
  border: 0;
  border-radius: var(--omp-radius-small);
  background: var(--omp-item);
  color: var(--omp-muted);
}
.pd-shell .site-nav__search-trigger {
  display: inline-flex;
  background: var(--omp-input);
}
.pd-shell .site-nav__search-trigger:hover,
.pd-shell .site-nav__hamburger:hover,
.pd-shell .ecosystem-switcher__trigger:is(:hover, [aria-expanded="true"]) { color: var(--omp-ink); background: var(--omp-row); }
.pd-shell .site-nav__search-trigger kbd { background: var(--omp-row); color: var(--omp-muted); }
.pd-shell .pd-appearance { margin-left: auto; }

.ecosystem-switcher { position: relative; flex: 0 0 2rem; }
.pd-shell .ecosystem-switcher__trigger { display: grid; place-items: center; width: 2rem; padding: 0; }
.ecosystem-switcher__links {
  position: absolute;
  z-index: 2;
  inset-inline-end: 0;
  top: calc(100% + var(--pd-space-2));
  width: 12.5rem;
  max-height: calc(100dvh - var(--pd-header-height));
  overflow: auto;
  padding: var(--pd-space-2);
  border: 1px solid var(--omp-line);
  border-radius: var(--omp-radius);
  background: var(--omp-surface);
}
.ecosystem-switcher__links a {
  display: flex;
  align-items: center;
  gap: var(--pd-space-2);
  min-height: 36px;
  padding: var(--pd-space-1) var(--pd-space-2);
  border-radius: var(--omp-radius-small);
  color: var(--omp-ink);
  font-size: var(--pd-text-sm);
}
.ecosystem-switcher__links a svg { flex: none; }
.ecosystem-switcher__links a:hover { background: var(--omp-item); }
.ecosystem-switcher__links a[aria-current] { background: var(--pd-accent-soft); color: var(--pd-accent); font-weight: 600; }

.pd-shell .site-foot { margin: 0; border: 0; background: var(--omp-item); }
.site-foot__inner.pd-container {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 4fr);
  padding-block: 4.5rem 3rem;
  gap: 2rem 3rem;
}
/* Official footer wordmark from the pinned open.mp web reference. */
.site-foot__brand img { width: min(100%, 23.75rem); height: auto; }
:root[data-theme="dark"] .site-foot__brand img { filter: brightness(0) invert(0.9); }
.site-foot__brand p { color: var(--omp-faint); font-size: 0.8125rem; margin: 0; }
.site-foot__links {
  grid-template-columns: repeat(5, minmax(0, max-content));
  justify-content: end;
  gap: 1rem clamp(1rem, 3vw, 4rem);
}
.site-foot__links h2 { color: var(--omp-muted); font-size: 0.8125rem; font-weight: 600; margin: 0 0 0.5rem; }
.site-foot__links a { color: var(--omp-ink); font-size: 0.875rem; padding: 0.15rem 0; }
.site-foot__links a:hover { color: var(--pd-accent); text-decoration: underline; }

@media (max-width: 480px) {
  .pd-shell .site-nav__hamburger { display: inline-flex; background: transparent; }
  .pd-shell .site-nav__links {
    display: none;
    position: absolute;
    inset: 100% auto auto 0;
    width: min(22rem, 100%);
    max-height: calc(100dvh - var(--pd-header-height));
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--omp-line);
    border-radius: 0 0 var(--omp-radius) 0;
    background: var(--omp-surface);
  }
  .pd-shell .site-nav[data-open="true"] .site-nav__links { display: flex; }
  .pd-shell .site-nav__links a { min-height: 44px; padding: 0 0.75rem; border: 0; }
  .site-nav__search-trigger span, .site-nav__search-trigger kbd { display: none; }
}
@media (max-width: 996px) {
  .site-foot__inner.pd-container { grid-template-columns: 1fr; padding-block: 2.5rem; }
  .site-foot__links { justify-content: start; }
}
@media (max-width: 640px) {
  .site-foot__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot__links a { min-height: 32px; }
}

@media (min-width: 641px) and (max-width: 760px) {
  .site-foot__links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
