/* ============================================================
   Per-mark accept rows — append to pvi-gallery.css
   forms/pvi-accept-checkbox.html  (photo-review.pl v1.26)
   ============================================================
   One row per marked detail: [x] Accept – Smiling
   Variables only, per pvi-project-instructions §6/§10. No hex here.
   ------------------------------------------------------------ */

/* The row. Grid rather than flex so the label text of every mark on a cell
   starts at the same x — with flex, a checkbox that renders a pixel wider on
   one browser ragged the whole stack. */
.pvi-accept-mark {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.4rem;
  padding: 0.15rem 0;
  line-height: 1.3;
}

/* Rows after the first get a hairline separator, so two or three marks read as
   distinct decisions rather than one wrapped sentence. :not(:first-child)
   rather than a border-bottom on every row, which would draw a stray rule
   under the last one. */
.pvi-accept-mark:not(:first-child) {
  border-top: 1px solid var(--light-grey);
}

.pvi-accept-mark-box {
  margin: 0;
  cursor: pointer;
}

/* The whole label is the hit target — on a phone the box alone is a ~13px tap
   area, and these cells are dense. */
.pvi-accept-mark-label {
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  column-gap: 0.3rem;
  flex-wrap: wrap;
}

.pvi-accept-mark-verb {
  font-weight: 600;
  color: var(--dark-grey);
}

.pvi-accept-mark-dash {
  color: var(--mid-grey);
}

/* The mark itself is the information the reviewer is scanning for, so it is the
   one part that is not muted. */
.pvi-accept-mark-detail {
  color: var(--dark-grey);
}

/* Ticked state: green, matching the palette's "positive result" role, and shown
   on the verb only so the mark name does not change color as boxes are
   clicked. :has() is used so no JS is needed to style the row from its input;
   the rule is additive, so on a browser without :has() the box still works and
   simply does not tint. */
.pvi-accept-mark:has(.pvi-accept-mark-box:checked) .pvi-accept-mark-verb {
  color: var(--green);
}

/* Keyboard focus must stay visible — these are the only controls on the page
   that write anything. */
.pvi-accept-mark-box:focus-visible {
  outline: 2px solid var(--dull-blue);
  outline-offset: 1px;
}
