*,
*::before,
*::after {
  margin: 0;
  padding: 0;
}

.smp-page {
  font-family: var(--mp-font-sans);
  color: var(--mp-color-text-strong);
}

body.smp-page .main-wrapper {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.smp-page .main-content {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  text-align: left;
}

body.smp-page.mp-has-infocard:not(.homepage)
  .info-card.mp-page-hero.mp-infocard-inner {
  box-sizing: border-box;
  width: calc(100% - (var(--mp-page-gutter-inline) * 2));
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 769px) {
  body.smp-page.mp-has-infocard:not(.homepage)
    .info-card.mp-page-hero.mp-infocard-inner {
    margin-top: 0.25rem;
  }
}

/* -- Split body ------------------------------------- */
.smp-body {
  display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  gap: 1.25rem;
  width: calc(100% - (var(--mp-page-gutter-inline) * 2));
  max-width: none;
  margin: 0.75rem auto 1.5rem;
  align-items: start;
}

.smp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--mp-color-brand-hover);
  text-decoration: none;
  margin-top: 8px;
  padding: 5px 11px 5px 8px;
  border: 1px solid var(--mp-color-border-strong);
  border-radius: var(--mp-radius-sm);
  background: var(--mp-color-brand-tint);
  transition:
    background var(--mp-motion-fast),
    color var(--mp-motion-fast);
}
.smp-back-link:hover {
  background: var(--mp-color-brand-border);
  color: var(--mp-color-brand-hover);
}
.smp-back-link svg {
  opacity: 0.7;
}
.smp-back-link:hover svg {
  opacity: 1;
}

/* LEFT */
.smp-left {
  min-width: 0;
  padding: 1rem 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--mp-radius-lg);
  background: var(--mp-color-surface);
  box-shadow: none;
}
.smp-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8.5px 1.1rem;
  background: none;
  border: none;
  border-left: 2.5px solid transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--mp-font-sans);
  font-size: 13px;
  color: var(--mp-color-text-secondary);

  -webkit-appearance: none;
  appearance: none;
  transition:
    background var(--mp-motion-fast),
    color var(--mp-motion-fast),
    border-color var(--mp-motion-fast);
}
.smp-cat-btn *,
.smp-cat-btn *::before,
.smp-cat-btn *::after {
  cursor: pointer;
  pointer-events: none;
}
.smp-cat-btn:hover {
  background: var(--mp-color-brand-border);
  color: var(--mp-color-brand-hover);
}
.smp-cat-btn.active {
  background: var(--mp-color-brand-border);
  color: var(--mp-color-brand-hover);
  border-left-color: var(--mp-color-brand);
  font-weight: 500;
}
.smp-cat-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.62;
  transition:
    opacity var(--mp-motion-fast),
    color var(--mp-motion-fast);
}
.smp-cat-btn:hover .smp-cat-icon,
.smp-cat-btn.active .smp-cat-icon {
  opacity: 1;
}
.smp-cat-btn-name {
  flex: 1;
}

.smp-mobile-category {
  display: none;
}

/* Left nav static sections */
.smp-left-section-head {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mp-color-text-secondary);
  font-weight: 700;
  text-align: left;
  padding: 0.9rem 1.1rem 0.45rem;
  font-family: var(--mp-font-sans);
}
.smp-left-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 1.1rem;
  font-size: 13px;
  color: var(--mp-color-text-secondary);
  text-decoration: none;
  transition: color var(--mp-motion-fast);
}
.smp-left-link:hover {
  color: var(--mp-color-brand);
}
.smp-left-link svg {
  flex-shrink: 0;
  opacity: 0.45;
}
.smp-left-link:hover svg {
  opacity: 1;
}
.smp-left-flag {
  width: 16px;
  height: 11px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.smp-left-link:hover .smp-left-flag {
  border-color: rgba(40, 90, 211, 0.28);
}
.smp-left-divider {
  height: 1px;
  background: var(--mp-color-divider);
  margin: 0.6rem 1.1rem;
}

/* RIGHT */
.smp-right {
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--mp-radius-lg);
  background: var(--mp-color-surface);
  box-shadow: none;
}
.smp-panel {
  display: none;
  padding: 2rem 2.25rem 2.5rem;
}
.smp-panel.visible {
  display: block;
}

/* Welcome state */
.smp-welcome {
  display: block;
  padding: 0;
  margin: 0;
}
.smp-welcome-globe {
  display: block;
  padding: 1.25rem;
  overflow: hidden;
}
.smp-welcome-globe > svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.smp-right--welcome-synced .smp-welcome,
.smp-right--welcome-synced .smp-welcome-globe {
  box-sizing: border-box;
  height: 100%;
}
.smp-right--welcome-synced .smp-welcome-globe > svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.smp-panel-head {
  display: block;
  text-align: left;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--mp-color-divider);
  margin-bottom: 1.75rem;
}
.smp-panel-name {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--mp-color-text-strong);
  text-align: left;
}

/* Responsive profile columns */
.smp-profile-section {
  min-width: 0;
}
.smp-profile-links {
  width: 100%;
  column-width: 13.5rem;
  column-gap: 2rem;
  column-fill: balance;
}
.smp-col-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 0.75rem;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--mp-color-divider);
}
.smp-col-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.smp-col-dot--home {
  background: var(--mp-color-brand);
}

.smp-category-link {
  color: inherit;
  text-decoration: none;
}
.smp-category-link:hover {
  color: var(--mp-color-brand-hover);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.smp-col-lbl {
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--mp-font-mono);
}
.smp-col-lbl--p {
  color: var(--mp-color-brand-hover);
}

.smp-link {
  display: block;
  font-size: 12.5px;
  color: var(--mp-color-text-secondary);
  text-decoration: none;
  padding: 4.5px 0;
  border-bottom: 1px solid var(--mp-color-surface-muted);
  line-height: 1.4;
  text-align: left;
  break-inside: avoid;
  transition:
    color var(--mp-motion-fast),
    padding-left var(--mp-motion-fast);
}
.smp-link:last-child {
  border-bottom: none;
}
.smp-link:hover {
  color: var(--mp-color-brand-hover);
  padding-left: 4px;
}
.smp-none {
  font-size: 12px;
  color: var(--mp-color-text-muted);
  font-style: italic;
  padding: 4px 0;
  display: block;
}
.smp-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--mp-color-border-strong);
  border-radius: var(--mp-radius-sm);
  font-size: 12px;
  color: var(--mp-color-brand-hover);
  cursor: pointer;
  padding: 6px 13px;
  margin-top: 14px;
  font-family: var(--mp-font-sans);
  transition: background var(--mp-motion-fast);
}
.smp-more:hover {
  background: var(--mp-color-brand-tint);
  text-decoration: none;
}
.smp-more-disclosure {
  display: block;
}
.smp-more-disclosure > summary {
  list-style: none;
}
.smp-more-disclosure > summary::-webkit-details-marker {
  display: none;
}
.smp-more-results {
  display: none;
}
.smp-more-disclosure[open] > .smp-more-results {
  display: block;
}
.smp-more-symbol {
  display: inline-flex;
  width: 1em;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}
.smp-more-label {
  cursor: pointer;
}

/* Welcome */

/* Mobile */
@media (max-width: 1100px) {
  .smp-body {
    display: block;
    width: calc(100% - (var(--mp-page-gutter-inline) * 2));
    max-width: none;
    min-width: 0;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 1.25rem;
    margin-left: auto;
  }
  .smp-left {
    width: 100%;
    min-width: 0;
    padding: 0.75rem 0;
    border-radius: var(--mp-radius-lg);
  }
  .smp-right {
    width: 100%;
    margin-top: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }
  .smp-welcome,
.smp-welcome-globe {
    display: none;
  }
  .smp-left-section-head {
    padding: 0.75rem 1rem 0.35rem;
    font-size: 0.78rem;
    line-height: 1.2;
    text-align: left;
  }
  .smp-cat-btn,
.smp-right {
    display: none;
  }
  .smp-left-link {
    min-height: 42px;
    padding: 0.55rem 1rem;
    font-size: 0.94rem;
  }
  .smp-mobile-category {
    display: block;
    border-top: 1px solid var(--mp-color-divider);
  }
  .smp-mobile-category:first-of-type {
    border-top: 0;
  }
  .smp-mobile-category-summary {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    list-style: none;
    color: var(--mp-color-text);
    cursor: pointer;
    transition:
      background-color var(--mp-motion-fast) ease,
      color var(--mp-motion-fast) ease;
  }
  .smp-mobile-category-summary::-webkit-details-marker {
    display: none;
  }
  .smp-mobile-category[open] > .smp-mobile-category-summary {
    background: var(--mp-color-brand-border);
    color: var(--mp-color-brand-hover);
  }
  .smp-mobile-category-icon {
    display: flex;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: var(--mp-radius-sm);
    background: var(--mp-color-surface-soft);
  }
  .smp-mobile-category-icon .smp-cat-icon {
    width: 17px;
    height: 17px;
    opacity: 1;
  }
  .smp-mobile-category-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: clamp(0.87rem, 3.7vw, 0.94rem);
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .smp-mobile-category-chevron {
    display: flex;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: var(--mp-radius-pill);
    background: var(--mp-color-surface-soft);
    color: var(--mp-color-brand);
    transition: transform var(--mp-motion-standard) ease;
  }
  .smp-mobile-category[open] .smp-mobile-category-chevron {
    transform: rotate(180deg);
  }
  .smp-mobile-category-panel {
    padding: 0.9rem 1rem 1.1rem;
    border-top: 1px solid var(--mp-color-divider);
    background: var(--mp-color-surface-soft);
  }
  .smp-mobile-category-page {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    color: var(--mp-color-brand);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
  }
  .smp-mobile-category-columns {
    display: grid;
    gap: 1rem;
  }
  .smp-mobile-category-columns section {
    min-width: 0;
  }
  .smp-mobile-category-columns h3 {
    margin: 0 0 0.45rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--mp-color-brand-border);
    color: var(--mp-color-text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .smp-mobile-result-link {
    display: block;
    padding: 0.42rem 0;
    border-bottom: 1px solid var(--mp-color-divider);
    color: var(--mp-color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
  }
  .smp-mobile-category-columns section > .smp-mobile-result-link:last-child,
  .smp-more-results .smp-mobile-result-link:last-child {
    border-bottom: 0;
  }
  .smp-mobile-more-disclosure {
    margin: 0;
  }
  .smp-mobile-more-toggle {
    min-height: 40px;
    margin-top: 0.75rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .smp-mobile-more-disclosure[open] > .smp-mobile-more-toggle {
    display: none;
  }
  .smp-mobile-none {
    display: block;
    padding: 0.35rem 0;
    color: var(--mp-color-text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: left;
  }
}

@media (max-width: 1100px) and (hover: hover) and (pointer: fine) {
  .smp-mobile-category-summary:hover {
    background: var(--mp-color-brand-border);
    color: var(--mp-color-brand-hover);
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  .smp-mobile-category-columns {
    grid-template-columns: 1fr;
  }

  .smp-mobile-category-panel {
    padding: 1rem 1.15rem 1.2rem;
  }

  .smp-mobile-category-name {
    font-size: 0.94rem;
  }
}

@media (max-width: 680px) {
  .smp-body {
    width: calc(100% - (var(--mp-page-gutter-inline) * 2));
  }

  .smp-mobile-category-columns {
    grid-template-columns: 1fr;
  }
}

/* Interactive sitemap diagram */
.smp-tree-svg {
  display: block;
}
.smp-tree-svg text {
  font-family: var(--mp-font-sans);
}
.smp-node,
.smp-branch {
  cursor: pointer;
}
.smp-node rect,
.smp-branch rect {
  transition: fill var(--mp-motion-fast);
}
.smp-node:hover rect,
.smp-node:focus-visible rect {
  fill: var(--mp-color-brand-border);
}
.smp-branch:hover rect,
.smp-branch:focus-visible rect {
  fill: var(--mp-color-brand-border-strong);
}
.smp-node:focus-visible,
.smp-branch:focus-visible {
  outline: 3px solid var(--mp-color-brand);
  outline-offset: 3px;
}
.smp-node:focus-visible rect,
.smp-branch:focus-visible rect {
  stroke: var(--mp-color-brand);
  stroke-width: 2;
}

/* No-JavaScript sitemap fallback */
.smp-nojs {
  max-width: 1360px;
  margin: 0 auto;
  padding: 2rem;
  font-family: var(--mp-font-sans);
}
.smp-nojs-cat {
  margin-bottom: 2.5rem;
  border-top: 2px solid var(--mp-color-divider);
  padding-top: 1.25rem;
}
.smp-nojs-cat-name {
  margin-bottom: 1rem;
  color: var(--mp-color-text-strong);
  font-size: 1.3rem;
  font-weight: 600;
}
.smp-nojs-cols {
  column-width: 13.5rem;
  column-gap: 2rem;
  column-fill: balance;
}
.smp-nojs-col-head {
  margin-bottom: 0.5rem;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--mp-color-divider);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.smp-nojs-col-head--p {
  color: var(--mp-color-brand-hover);
}

.smp-nojs-link {
  display: block;
  padding: 4px 0;
  border-bottom: 1px solid var(--mp-color-surface-muted);
  color: var(--mp-color-text-secondary);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}
.smp-nojs-link:last-child {
  border-bottom: 0;
}
.smp-nojs-none {
  color: var(--mp-color-text-muted);
  font-size: 12px;
  font-style: italic;
}

@media (forced-colors: active) {
  .smp-node:focus-visible,
.smp-branch:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
  }
}
