/* Header lip — dropdown panel attached to tp-top (Series + classification) */
.tp-lip-toggle {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: .6rem;
  color: var(--text-muted, #5a5a5a);
  padding: .32rem .55rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  background: transparent;
}
.tp-lip-toggle:hover,
.tp-lip-toggle.active {
  color: var(--gold, #d4af37);
  background: var(--gold-dim, rgba(212,175,55,.08));
  border-color: rgba(212,175,55,.15);
}
.tp-lip-toggle i { margin-left: .3rem; font-size: .5rem; transition: transform .2s; }
.tp-lip-toggle.active i { transform: rotate(180deg); }

.tp-header-lip {
  position: fixed;
  top: var(--header-h, 48px);
  left: 0;
  right: 0;
  z-index: 99;
  background: transparent;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height .28s ease, opacity .2s ease;
}
.tp-header-lip.open {
  max-height: min(78vh, 640px);
  opacity: 1;
  overflow-y: auto;
  pointer-events: auto;
}
/* The visible card — about as wide as the verified bar, centered */
.tp-header-lip-inner {
  max-width: var(--max, 1100px);
  margin: 0 auto;
  padding: .9rem 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(12, 12, 12, .98);
  border: 1px solid var(--border, #222);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  position: relative;
}
/* The little "lip" accent tab so you can tell it pulled down */
.tp-header-lip-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold, #d4af37), transparent);
  opacity: .85;
}

/* Classification inside lip — not a second fixed layer */
.tp-header-lip .tp-class {
  position: static;
  background: transparent;
  border: 0;
  padding: 0;
}
.tp-header-lip .tp-class-inner { padding: 0; }

.tp-lip-series-label {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: .55rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted, #5a5a5a);
  margin-bottom: .5rem;
}
.tp-subdomain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .7rem;
}
@media (max-width: 700px) {
  .tp-subdomain-grid { grid-template-columns: repeat(2, 1fr); }
}
.tp-subdomain-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 1rem .6rem;
  background: var(--surface2, #111);
  border: 1px solid var(--border, #222);
  border-radius: 8px;
  transition: all .25s;
  text-align: center;
  min-height: 88px;
}
.tp-subdomain-card i { font-size: 1.1rem; color: var(--gold, #d4af37); opacity: .55; }
.tp-subdomain-card h4 { font-size: .72rem; font-weight: 500; color: var(--text, #e5e3df); margin: 0; }
.tp-subdomain-card p {
  font-family: var(--mono, monospace);
  font-size: .5rem;
  color: var(--text-muted, #5a5a5a);
  margin: 0;
}
.tp-subdomain-card:hover {
  border-color: var(--gold, #d4af37);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, .1);
}
