/* Server banner header, dividers and channel looks in the channel sidebar. */
.side__head { flex: none; }
.side__head:empty { display: none; }
.banner {
  --h: 220; position: relative; height: 118px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  width: 100%; padding: 12px 14px; border: 0; color: #fff; text-align: left; cursor: pointer; overflow: hidden;
  background: linear-gradient(120deg, hsl(var(--h) 50% 22%), hsl(calc(var(--h) + 50) 55% 32%) 55%, hsl(calc(var(--h) + 90) 60% 46%));
}
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .6)); }
.banner > :not(img) { position: relative; z-index: 1; }
.banner--plain { height: 52px; justify-content: center; background: var(--bg-2); color: var(--ink); border-bottom: 1px solid var(--panel-3); }
.banner--plain::after { display: none; }
.banner__name { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 800; font-size: 16px; }
.banner__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner__name svg { width: 18px; height: 18px; transition: transform .2s; }
.banner.is-open .banner__name svg { transform: rotate(180deg); }
.banner__meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; opacity: .85; }
.banner__meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

@media (min-width: 821px) {
  .shell.is-discover { grid-template-columns: 72px 0 minmax(0, 1fr); }
  .shell.is-discover .side { visibility: hidden; }
}
.srv--discover.is-on { background: var(--accent); color: #fff; }

.ch.is-hub > svg { color: var(--ok); }
.ch.is-tinted > svg, .ch.is-tinted .ch__emoji { color: var(--tint); }
.ch.is-name-tinted > span { color: var(--tint); }
.ch__emoji { font-style: normal; width: 19px; text-align: center; font-size: 15px; line-height: 1; }
.ch__region { font-size: 10px; letter-spacing: .04em; color: var(--ink-4); text-transform: uppercase; }
.ch__badge {
  font-size: 10px; font-weight: 700; padding: 0 6px; border-radius: 5px; line-height: 1.7;
  color: var(--badge, var(--accent)); background: color-mix(in srgb, var(--badge, var(--accent)) 16%, transparent);
}

.cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat[style] { color: var(--tint); }
.cat[style]:hover { color: color-mix(in srgb, var(--tint) 75%, var(--ink)); }
.cat__dot { width: 6px; height: 6px; border-radius: 2px; background: var(--tint); flex: none; }
.cat__emoji { font-style: normal; font-size: 12px; }

.dv {
  --tint: var(--ink-4); --tint2: var(--tint);
  display: flex; align-items: center; gap: 8px; padding: 9px 6px 7px; color: var(--tint);
  font-size: 11.5px; user-select: none; cursor: default;
}
.dv__label { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80%; }
.dv__line { flex: 1; min-width: 12px; height: 1px; background: var(--tint); opacity: .7; }
.dv--line-fade .dv__line:first-child { background: linear-gradient(to right, transparent, var(--tint)); }
.dv--line-fade .dv__line:last-child { background: linear-gradient(to left, transparent, var(--tint2)); }
.dv--start.dv--line-fade .dv__line:last-child { background: linear-gradient(to right, var(--tint), transparent); }
.dv--line-thick .dv__line { height: 3px; border-radius: 2px; }
.dv--line-dashed .dv__line { height: 0; background: none; border-top: 1px dashed var(--tint); }
.dv--line-dotted .dv__line { height: 0; background: none; border-top: 2px dotted var(--tint); }
.dv--line-double .dv__line { height: 4px; background: none; border-block: 1px solid var(--tint); }
.dv__gem { width: 6px; height: 6px; flex: none; transform: rotate(45deg); background: var(--tint); }
.dv__tick { width: 3px; height: 12px; flex: none; border-radius: 2px; background: var(--tint); }
.dv__emoji { font-style: normal; font-size: 14px; }
.dv--pill .dv__label {
  padding: 1px 12px; border-radius: 999px; color: var(--tint);
  background: color-mix(in srgb, var(--tint) 16%, transparent); border: 1px solid color-mix(in srgb, var(--tint) 35%, transparent);
}
.dv--glow .dv__label { text-shadow: 0 0 10px color-mix(in srgb, var(--tint) 70%, transparent); }
.dv--gradient .dv__label { background: linear-gradient(90deg, var(--tint), var(--tint2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dv--banner { margin: 4px 0; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--tint) 16%, transparent); }
.dv--spacer { height: 14px; padding: 0; }
.case-upper .dv__label, .cat.case-upper span { text-transform: uppercase; }
.case-lower .dv__label, .cat.case-lower span { text-transform: lowercase; }
.case-title .dv__label, .cat.case-title span { text-transform: capitalize; }
.case-spaced .dv__label, .cat.case-spaced span { text-transform: uppercase; letter-spacing: .3em; }

@media (max-width: 820px) {
  .banner { height: 104px; }
  .shell.is-discover[data-mtab="servers"] .side { display: flex; }
}
