/**
 * Hub Info overlay — two-column shell between purple lobby (#3a236b) and legal (#f5f5f5).
 * Panel base #8c849d with brand purple accents from hub tokens.
 */

:root {
  --hpp-info-bg: #8c849d;
  --hpp-info-head-bg: rgba(255, 255, 255, 0.32);
  --hpp-info-nav-bg: rgba(255, 255, 255, 0.14);
  --hpp-info-border: rgba(22, 12, 43, 0.22);
  --hpp-info-accent: #231245;
  --hpp-info-accent-soft: rgba(35, 18, 69, 0.1);
  --hpp-info-text: #160c2b;
  --hpp-info-text-muted: rgba(22, 12, 43, 0.72);
}

.oss-hpp-info {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  box-sizing: border-box;
  background: var(--hpp-lobby-scrim);
}

.oss-hpp-info[hidden] {
  display: none !important;
}

.oss-hpp-info__panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--hpp-info-border);
  background: var(--hpp-info-bg);
  color: var(--hpp-info-text);
  box-shadow: 0 8px 32px rgba(8, 4, 18, 0.5);
}

.oss-hpp-info__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.55rem 2.25rem 0.5rem;
  border-bottom: 1px solid var(--hpp-info-border);
  background: var(--hpp-info-head-bg);
}

.oss-hpp-info__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--hpp-info-text);
  text-align: center;
}

.oss-hpp-info__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--hpp-info-border);
  border-radius: 4px;
  background: transparent;
  color: var(--hpp-info-text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.oss-hpp-info__close:hover {
  border-color: var(--hpp-info-accent);
  background: var(--hpp-info-accent-soft);
}

.oss-hpp-info__close:focus-visible {
  outline: 2px solid var(--hpp-info-accent);
  outline-offset: 2px;
}

.oss-hpp-info__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.oss-hpp-info .hpp-info-two-col {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.oss-hpp-info .hpp-info-nav {
  flex: 0 0 33%;
  width: 33%;
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  border-right: 1px solid var(--hpp-info-border);
  background: var(--hpp-info-nav-bg);
  overflow-y: auto;
  min-width: 0;
}

.oss-hpp-info .hpp-info-nav-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--hpp-info-text);
}

.oss-hpp-info .hpp-info-toc ul {
  margin: 0;
  padding-left: 1rem;
  list-style: disc;
  line-height: 1.5;
}

.oss-hpp-info .hpp-info-toc ul li {
  margin: 0.15em 0;
}

.oss-hpp-info .hpp-info-toc ul ul {
  margin: 0.1rem 0 0.25rem;
  padding-left: 1.1rem;
  list-style: circle;
}

.oss-hpp-info .hpp-info-toc ul ul li {
  margin: 0.1em 0;
}

.oss-hpp-info .hpp-info-toc ul li::marker {
  color: var(--hpp-info-accent);
}

.oss-hpp-info .hpp-info-toc a {
  color: #2d2d2d;
  text-decoration: none;
  font-size: 0.85rem;
}

.oss-hpp-info .hpp-info-toc a:hover {
  color: var(--hpp-info-text);
  text-decoration: underline;
}

.oss-hpp-info .hpp-info-doc {
  flex: 1 1 67%;
  width: 67%;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1.25rem;
  scrollbar-color: var(--hpp-info-accent) rgba(22, 12, 43, 0.12);
}

.oss-hpp-info .hpp-info-body section {
  margin-bottom: 1.25rem;
}

.oss-hpp-info .hpp-info-body h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--hpp-info-text);
  border-left: 3px solid var(--hpp-info-accent);
  padding-left: 0.5rem;
}

.oss-hpp-info .hpp-info-placeholder {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--hpp-info-text-muted);
  font-style: italic;
}

.oss-hpp-info .hpp-info-section-divider {
  border: none;
  border-top: 1px solid var(--hpp-info-border);
  margin: 0.75rem 0 1rem;
}
