/* Content panels */

.hero--interactive {
  background: transparent;
}
.hero--interactive .hero-content {
  max-width: min(520px, 48vw);
}
@media (max-width: 1024px) {
  .hero--interactive .hero-content {
    max-width: 100%;
  }
}

.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.panel-overlay.open {
  opacity: 1;
  visibility: visible;
}
.panel-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(560px, 100%);
  height: 100%;
  background: var(--jet);
  border-left: 1px solid var(--silver);
  z-index: 510;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel-drawer.open {
  transform: translateX(0);
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--silver);
  flex-shrink: 0;
}
.panel-header-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.panel-close {
  background: transparent;
  border: 1px solid var(--silver);
  color: var(--white);
  width: 36px;
  height: 36px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.panel-close:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.04);
}
.panel-body {
  padding: 32px 28px 48px;
  overflow-y: auto;
  flex: 1;
}
.panel-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 32px;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.15;
}
.panel-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 28px;
}
.panel-body p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 16px;
}
.panel-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--white);
  margin: 28px 0 12px;
}
.panel-body ul {
  margin: 0 0 16px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
}
.panel-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid var(--silver);
  padding: 3px 8px;
  margin: 0 6px 8px 0;
}

.study-templates,
.article-templates {
  display: none;
}

.port-badge.concept {
  background: rgba(10, 10, 10, 0.78);
}
.journal-badge.live {
  border-color: rgba(224,224,224,0.35);
  color: var(--white);
}
