/* Price list rows (added for the legal price list; the rules further down are
 * unchanged, so pages built earlier still look the same). */
.items .val {
  display: inline-block;
  text-align: right;
}

.items .from {
  display: block;
  font-size: .78rem;
  font-weight: 400;
  color: var(--muted);
}

.items .costs .from {
  display: inline;
}

.items .costs {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: .88rem;
  color: var(--muted);
}

.items .costs li + li {
  margin-top: 2px;
}

.items .costs b {
  color: var(--text);
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

table.items {
  width: 100%;
  border-collapse: collapse;
}

.items th {
  text-align: left;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.items td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.items tbody tr:last-child td {
  border-bottom: 0;
}

.items tbody tr:hover {
  background: color-mix(in srgb, var(--highlight) 6%, transparent);
}

.items .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.items .thumb {
  width: 112px;
  padding-right: 0;
}

.items .thumb img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.items .name {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.25;
}

.items .desc {
  font-size: .92rem;
  margin-top: 4px;
}

.items .desc p {
  margin: 0;
}

.price {
  font-weight: 700;
  color: var(--highlight);
  font-size: 1.1rem;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--st);
  background: color-mix(in srgb, var(--st) 14%, transparent);
}

.status.available {
  --st: var(--status-available);
}

.status.reserved {
  --st: var(--status-reserved);
}

.status.sold {
  --st: var(--status-sold);
}

.status.other {
  --st: var(--muted);
}

tr.is-sold td:not(.st) {
  opacity: .55;
}

.items .act {
  text-align: right;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
}

.pdf:hover {
  filter: brightness(1.12);
}

.pdf svg {
  width: 16px;
  height: 16px;
  flex: none;
}

@media (max-width: 760px) {
  .table-wrap {
    background: none;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  table.items, .items tbody, .items tr, .items td {
    display: block;
  }
  .items thead {
    display: none;
  }
  .items tbody tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    padding-bottom: 8px;
  }
  .items tbody tr:hover {
    background: var(--surface);
  }
  .items td {
    border: 0;
    padding: 6px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .items td[data-label]::before {
    content: attr(data-label);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
  }
  .items td.main {
    display: block;
    padding-top: 16px;
  }
  .items .thumb {
    width: auto;
    padding: 0;
  }
  .items .thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 0;
  }
  .items .act {
    display: block;
    padding-top: 12px;
  }
  .pdf {
    display: flex;
    justify-content: center;
  }
  .items td:empty {
    display: none;
  }
}
