/* Clips panel. Everything else comes from the site's design system (site.css = src/styles/global.css). */

@font-face {
  font-family: 'Monocraft';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  size-adjust: 80%;
  src: url(/fonts/monocraft-bold.woff2) format('woff2');
}

@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
}

.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--gold);
  font-weight: 700;
}

.skip:focus {
  top: 8px;
}

.small {
  font-size: 0.9375rem;
}

.loose {
  --stack: 32px;
}

/* ---------- Header / footer ---------- */

.head,
.foot {
  background: var(--bg);
  color: var(--fg);
}

.head {
  border-bottom: var(--px) solid var(--ink);
}

.head__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 64px;
  padding-block: 6px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.logo img {
  width: auto;
  height: 36px;
}

.logo__sub {
  color: var(--amethyst);
}

.head__user {
  display: flex;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
}

.head__name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.foot {
  padding-block: 28px 36px;
  font-weight: 600;
}

.foot .cluster {
  --gap: 8px 24px;
}

/* ---------- Notices ---------- */

.notice {
  max-width: 640px;
  margin-top: 24px;
  font-weight: 600;
}

.page-head a {
  font-weight: 700;
}

/* ---------- Channel chooser ---------- */

.chooser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.chooser__head {
  width: 48px;
  height: 48px;
  flex: none;
}

.chooser__text {
  min-width: 0;
}

.chooser__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.chooser__select {
  flex: 1 1 240px;
  max-width: 420px;
}

.chooser select,
.find input {
  width: calc(100% - var(--px) * 2);
  min-height: 48px;
  margin: var(--px);
  padding: 10px 12px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--outline);
  font: inherit;
  font-weight: 600;
}

.chooser select:focus-visible,
.find input:focus-visible {
  outline: 3px solid var(--twitch);
  outline-offset: 4px;
}

.find {
  display: block;
  max-width: 420px;
  margin-bottom: 16px;
}

#sentinel {
  height: 1px;
}

/* ---------- Submit form ---------- */

.submit {
  --stack: 10px;
}

.submit label {
  display: block;
  font-family: var(--font-display);
}

.submit code {
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

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

.submit input {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 48px;
  margin: var(--px);
  padding: 10px 12px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--outline);
  font: inherit;
}

.submit input:focus-visible {
  outline: 3px solid var(--twitch);
  outline-offset: 4px;
}

.submit .btn {
  flex: none;
}

.form-msg {
  min-height: 1.55em;
  font-weight: 600;
}

.form-msg[data-ok='false'] {
  color: #b3261e;
}

/* ---------- List ---------- */

.list {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.clip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 16px;
  background: var(--white);
}

.clip__main {
  flex: 1 1 280px;
  min-width: 0;
}

.clip__title {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.clip__when {
  font-weight: 600;
  color: var(--ink);
}

.clip__meta {
  margin-top: 2px;
  font-size: 0.9375rem;
}

.clip .btn {
  margin-block: 0;
}

.btn:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}
