/* curate area styles. See public/css/base.css for tokens and shared classes. */

.curate-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.curate-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}
.curate-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.curate-block {
  margin-bottom: 40px;
}
.curate-block > h2 {
  margin: 0 0 16px;
}
.curate-block h3.label {
  margin: 24px 0 8px;
}
.curate-small {
  font-size: 14px;
}
.curate-nowrap {
  white-space: nowrap;
}

.curate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
@media (min-width: 1000px) {
  .curate-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
  }
  .curate-side {
    position: sticky;
    top: 24px;
  }
}
.curate-main,
.curate-side {
  min-width: 0;
}

.curate-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 24px;
}
.curate-plain-list {
  margin: 0;
  padding-left: 1.2em;
}

.curate-pre {
  margin: 0;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.curate-pre--brief {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Ask status words (NF-1: the word carries the meaning, the color only helps). */
.curate-status {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.curate-status--live {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}
.curate-status--submitted {
  background: var(--mustard);
  border-color: var(--mustard);
  color: var(--ink);
}
.curate-status--paused,
.curate-status--changes_requested {
  background: var(--grey-fill);
}
.curate-status--declined,
.curate-status--delisted {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.curate-flag {
  display: inline-block;
  font-weight: 600;
}
.curate-flag--ok::before {
  content: "✓ ";
  color: var(--pine);
}
.curate-flag--warn::before {
  content: "! ";
  color: var(--ember-text);
}

/* CU-8 diff: sign and word on every changed line, color as a second cue. */
.curate-diff {
  margin: 0 0 24px;
}
.curate-diff figcaption {
  margin-bottom: 8px;
  font-weight: 600;
}
.curate-diff figcaption .muted {
  font-weight: 400;
  font-size: 14px;
}
.curate-diff__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: auto;
}
.curate-diff__line {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 8px;
  padding: 1px 12px;
}
.curate-diff__sign {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.curate-diff__text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.curate-diff__line--added {
  background: #e3f1ea;
  border-left: 4px solid var(--pine);
}
.curate-diff__line--added .curate-diff__sign {
  color: var(--pine);
}
.curate-diff__line--removed {
  background: #fbe5de;
  border-left: 4px solid var(--ember);
}
.curate-diff__line--removed .curate-diff__sign {
  color: var(--ember-text);
}
.curate-diff__line--removed .curate-diff__text {
  text-decoration: line-through;
}
.curate-diff__line--same {
  border-left: 4px solid transparent;
  color: var(--ink-soft);
}

.curate-decision h2 {
  margin: 0;
}
.curate-checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.curate-checklist .checkbox {
  align-items: flex-start;
}
.curate-checklist .checkbox input {
  flex: none;
  margin-top: 2px;
}

.curate-manage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.curate-manage h3.label {
  margin: 0;
}
.curate-inline-form {
  flex-wrap: nowrap;
  gap: 8px;
}
.curate-rank {
  font: inherit;
  width: 4.5em;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  background: var(--card);
}

.curate-history {
  list-style: none;
  margin: 0;
  padding: 0;
}
.curate-history li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.curate-note {
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.curate-compare th[scope="row"] {
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
}
.curate-compare td {
  vertical-align: top;
}

.curate-data {
  display: block;
  max-width: 420px;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.curate-pager {
  margin-top: 24px;
}
