/* Paste pages: the create form and the rendered paste. The token palette is
   shared in site.css with the project pages. */

/* Create ------------------------------------------------------------------ */

.paste-form { margin-top: 28px; }

.paste-editor { border: 1px solid var(--line); background: var(--code); }
textarea.paste-input {
  display: block;
  min-height: 360px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  tab-size: 4;
}
textarea.paste-input:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.paste-editor-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.paste-editor-foot [data-counter].is-over { color: var(--bad); }

.paste-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 18px;
  margin-top: 18px;
}
.paste-submit { justify-self: start; }
.paste-note { max-width: 70ch; margin-top: 24px; font-size: 14px; }
.paste-note a { color: var(--muted); }

/* Rendered paste --------------------------------------------------------- */

.paste-page { padding-top: 28px; }
.paste-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 18px;
}
.paste-heading { min-width: 0; }
.paste-id {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.paste-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}
.paste-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.paste-code {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--code);
  font-size: 14px;
  line-height: 1.65;
  tab-size: 4;
  overflow-x: auto;
}
.paste-code code { font-family: var(--mono); font-size: inherit; }

/* The vendored plugin ships #999 hairlines; keep them in the site palette. */
.paste-code.line-numbers .line-numbers-rows { border-right-color: var(--line); }
.paste-code.line-numbers .line-numbers-rows > span::before { color: var(--muted); }

.paste-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.paste-foot p { max-width: none; margin: 0; }
.paste-foot a { color: var(--muted); }

@media (max-width: 600px) {
  textarea.paste-input { min-height: 260px; padding: 14px; font-size: 13px; }
  .paste-editor-foot { padding: 8px 14px; }
  .paste-options { grid-template-columns: 1fr; gap: 14px; }
  .paste-submit { width: 100%; }
  .paste-page { padding-top: 20px; }
  .paste-id { font-size: 19px; }
  .paste-code { padding: 14px; font-size: 13px; line-height: 1.6; }
}
