/* ---- Playtest swap (Oct 24): the #playtests page and its band on the Job board. Flat cards, text
   11px and up, colours from the site tokens so dark mode follows. ---- */

.pt-band {
  width: calc(100% - var(--gx-d));
  max-width: none;
  margin: 0 0 14px;
}
.pt-band-txt {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}
.pt-band-txt > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.playtests {
  display: grid;
  gap: 16px;
  max-width: 920px;
}
.pt-me {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.pt-me p {
  margin: 0;
}
.pt-credits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}
.pt-credits b {
  font-size: 20px;
}
.pt-credits svg {
  color: var(--gold, #c9a227);
}
.pt-strikes {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.pt-strikes.is-bench {
  background: #fbe3dc;
  color: #8a2b12;
}
.pt-gap {
  flex: 1;
}

.pt-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.pt-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}
.pt-form :is(input, select, textarea),
.pt-join input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
}
.pt-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.pt-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.pt-cost {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.pt-cost.is-short {
  color: #a23a1c;
  font-weight: 700;
}

.pt-how {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pt-how summary {
  font-weight: 750;
  cursor: pointer;
}
.pt-how ul {
  margin: 8px 0 2px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.pt-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: start;
  gap: 14px;
}
.pt-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.pt-card.is-mine {
  border-color: var(--green);
}
.pt-list.is-done .pt-card {
  opacity: 0.8;
}
.pt-card h3 {
  margin: 0;
  font-size: 18px;
}
.pt-card p {
  margin: 0;
}
.pt-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}
.pt-plat {
  padding: 2px 8px;
  border-radius: 6px;
  background: #dff1f1;
  color: #145a5a;
}
.pt-when {
  color: var(--muted);
}
.pt-by {
  color: var(--muted);
  font-size: 13px;
}
.pt-look {
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
}
.pt-note {
  font-size: 13px;
  color: var(--muted);
}
.pt-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 4px;
}
.pt-testers {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.pt-testers li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.pt-tname {
  font-weight: 700;
}
.pt-email {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.pt-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 11px;
  font-weight: 700;
}
.pt-pill.is-good {
  background: #e3f1e6;
  color: #23502f;
}
.pt-pill.is-note {
  background: #fff1cc;
  color: #6b4d00;
}
.pt-marks {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.pt-join {
  display: grid;
  gap: 8px;
}
.pt-join label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}
.pt-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}
.pt-sub {
  margin: 8px 0 0;
  font-size: 18px;
}

[data-theme='dark'] .pt-plat {
  background: #163a3a;
  color: #9fdede;
}
[data-theme='dark'] .pt-strikes.is-bench {
  background: #47231a;
  color: #f2b7a6;
}
[data-theme='dark'] .pt-cost.is-short {
  color: #f2a48c;
}
[data-theme='dark'] .pt-pill.is-good {
  background: #1f3a27;
  color: #a9dbb5;
}
[data-theme='dark'] .pt-pill.is-note {
  background: #3d3214;
  color: #f0d790;
}

@media (max-width: 560px) {
  .pt-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .pt-row label:first-child {
    grid-column: 1 / -1;
  }
  .pt-marks {
    margin-left: 0;
  }
}
