/* Publish bar: sits between the intro and the tabs */

.publish-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.publish-prefix {
  flex: none;
  margin-right: 4px;
  color: var(--color-muted);
  font-size: 13px;
  white-space: nowrap;
}

.publish-input {
  flex: 0 1 280px;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 13px;
}

.publish-input:focus-visible {
  outline: none;
  border-color: var(--color-teal);
}

.publish-input::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}

.copy-link-button {
  width: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}

.copy-link-button:hover {
  color: var(--color-text);
}

/* Fixed width so the label swap to "gepubliceerd" does not shift the layout */
.publish-button,
.copy-button {
  min-width: 15ch;
}

.publish-status {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--color-copper);
}

.publish-status::before {
  content: "! ";
}

/* Viewer */

.viewer-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .publish-prefix {
    flex-basis: 100%;
  }

  .publish-input {
    flex: 1 1 100%;
    height: 44px;
  }

  .copy-link-button {
    width: 44px;
    min-height: 44px;
  }

  .publish-button {
    flex: 1 1 0;
    min-height: 44px;
  }
}
