/* ===== Shared Platform Header Styles ===== */
:root {
  --brand-red:#b91c1c;
  --muted:#6b7280;
  --border:#e5e7eb;
  --bg:#ffffff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.topbar__title {
  margin: 0;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand-red);
  line-height: 1.1;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  padding: .5rem .95rem;
  border-radius: 999px;
  border: 2px solid var(--brand-red);
  color: var(--brand-red);
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}
.pill:hover { background: #fee2e2; }
.pill[aria-current="page"],
.pill.is-active {
  background: var(--brand-red);
  color: #fff;
}

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown__label {
  cursor: default;
  user-select: none;
}
.dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 6px 6px;
  display: none;
  z-index: 1001;
}
.dropdown:hover .dropdown__menu { display: block; }
.dropdown__menu li { list-style: none; }
.dropdown__menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}
.dropdown__menu a:hover {
  background: #fee2e2;
  color: var(--brand-red);
}

.topbar__accent {
  height: 8px;
  background: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-red) 60%, #6b7280 100%);
}

/* Content wrapper */
.content { padding: 16px; }

/* Responsive tweaks */
@media (max-width: 900px) {
  .topbar__title { font-size: 1.05rem; }
  .pill { padding: .45rem .8rem; }
}
