/* Shared use-case page header/breadcrumb styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--pm-header-height, 56px);
  box-sizing: border-box;
  font-family: var(--pm-font, 'Inter', 'Segoe UI', system-ui, -apple-system,
    BlinkMacSystemFont, Helvetica, Arial, sans-serif);
  font-size: 16px;
  line-height: 1.2;
  background: var(--pm-header-bg, rgba(15,23,42,0.97));
  backdrop-filter: blur(var(--pm-header-blur, 14px));
  -webkit-backdrop-filter: blur(var(--pm-header-blur, 14px));
  border-bottom: 1px solid var(--pm-header-border, rgba(255,255,255,0.07));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1rem;
}

.sh-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.sh-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.sh-logo-icon {
  width: var(--pm-logo-icon-size, 22px);
  height: var(--pm-logo-icon-size, 22px);
  box-sizing: border-box;
  border-radius: 50%;
  margin-right: 0.45rem;
  flex-shrink: 0;
  background: var(--pm-logo-icon-bg, #fff);
  padding: var(--pm-logo-icon-padding, 3px);
  box-shadow: var(--pm-logo-icon-shadow, 0 2px 8px rgba(0,0,0,0.15));
}

.sh-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.9rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  justify-content: flex-end;
}

.sh-bc-sep {
  color: rgba(255,255,255,0.22);
  font-size: 0.7rem;
}

.sh-bc-link {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.sh-bc-link:hover {
  color: rgba(255,255,255,0.8);
}

.sh-bc-link-current {
  color: rgba(255,255,255,0.72);
  font-weight: 600;
}

.sh-bc-link-current:hover {
  color: rgba(255,255,255,0.88);
}

.sh-bc-current {
  color: rgba(255,255,255,0.72);
  font-weight: 600;
}

.sh-bc-section-label {
  color: rgba(255,255,255,0.72);
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.sh-bc-section-label.is-fading {
  opacity: 0;
}

.sh-bc-section-label::before {
  content: '#';
  color: var(--pm-blue-light, #42a5f5);
  font-weight: 700;
  font-size: 0.70rem;
  margin-right: 2px;
  opacity: 0.9;
}

.sh-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.sh-nav-item {
  color: rgba(255,255,255,0.72);
  font-size: 0.855rem;
  font-weight: 500;
  padding: 0.32rem 0.72rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.sh-nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.sh-chevron {
  font-size: 0.65rem;
  transition: transform 0.2s;
  opacity: 0.6;
}

.sh-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.sh-dropdown-btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.sh-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 640px;
  max-width: calc(100vw - 2rem);
  background: rgba(12,20,38,0.99);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 0.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  z-index: 300;
}

.sh-dropdown-menu.is-open {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
}

.sh-dropdown-menu--docs {
  width: 320px;
}

.sh-dropdown-menu--docs.is-open {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
}

.sh-dd-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.sh-dd-item:hover {
  background: rgba(255,255,255,0.07);
}

.sh-dd-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.sh-dd-name {
  display: block;
  font-size: 0.81rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
}

.sh-dd-desc {
  display: block;
  font-size: 0.71rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.35;
  margin-top: 1px;
}

.sh-nav-cta {
  margin-left: 0.4rem;
  background: var(--pm-blue, #1976d2) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 6px;
}

.sh-nav-cta:hover {
  background: var(--pm-blue-dark, #1565c0) !important;
  color: #fff !important;
}

.sh-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.sh-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: all 0.25s;
}

.sh-hamburger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.sh-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.sh-hamburger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.sh-mobile-overlay {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: var(--pm-font, 'Inter', 'Segoe UI', system-ui, -apple-system,
    BlinkMacSystemFont, Helvetica, Arial, sans-serif);
  font-size: 16px;
  background: rgba(8,14,28,0.98);
  z-index: 199;
  overflow-y: auto;
  padding: 1.25rem;
  flex-direction: column;
  gap: 0.3rem;
}

.sh-mobile-overlay.is-open {
  display: flex;
}

.sh-mobile-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0.9rem 0.5rem 0.3rem;
}

.sh-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  color: rgba(255,255,255,0.82);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

.sh-mobile-link:hover,
.sh-mobile-link:active {
  background: rgba(255,255,255,0.07);
}

.sh-mobile-link-icon {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 0.85rem;
    gap: 0.6rem;
  }

  .sh-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sh-breadcrumb {
    margin-left: 0.55rem;
    font-size: 0.74rem;
    gap: 0.28rem;
  }

  .sh-bc-link,
  .sh-bc-current,
  .sh-bc-section-label {
    max-width: 8.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sh-nav {
    display: none;
  }

  .sh-hamburger {
    display: flex;
  }
}

@media print {
  .site-header {
    position: static !important;
  }

  .sh-mobile-overlay,
  .sh-dropdown-menu {
    display: none !important;
  }
}

.pm-site-footer {
  background: var(--dark, #1e293b);
  color: rgba(255,255,255,0.65);
  padding: 40px 20px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
}

.pm-site-footer p {
  margin: 0 0 4px;
  font-size: 0.92rem;
}

.pm-site-footer-links {
  margin-top: 12px;
}

.pm-site-footer a {
  color: var(--primary-light, var(--pm-primary-light, #475569));
  text-decoration: none;
}

.pm-site-footer a:hover {
  text-decoration: underline;
}
