/* ==================================================================
   /work, the register. Built in code from the homepage register section,
   so the cards, chips and grid come from site.css (.register, .chips,
   .filter-chip, .cards, .card). This adds the wood, town and piece
   filters, the empty state, the photo label key and the closing step.
   ================================================================== */

.work-register { padding-block: 56px 96px; }

/* ------------------------------------------------------------ filters */
.work-filters { display: flex; flex-direction: column; gap: 28px; margin-bottom: 48px; }
.no-js .work-filters { display: none; }
.work-filters .chips { margin-bottom: 0; }
.work-selects {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 40px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.work-select { display: flex; flex-direction: column; gap: 6px; width: 220px; }
.work-select-label {
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--drd-taupe);
}
.work-select-box { position: relative; display: block; color: var(--drd-espresso); }
.work-select-box::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 12px; height: 8px; margin-top: -4px;
  background: currentColor; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.work-select select {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-height: 44px; margin: 0;
  padding: 10px 28px 9px 0; border: 0; border-bottom: 1px solid var(--drd-bronze); border-radius: 0;
  background: transparent; cursor: pointer;
  font-family: var(--font-label); font-weight: 500; font-size: 16px; line-height: 22px; color: var(--drd-espresso);
}
.work-select select:hover { border-bottom-color: var(--drd-espresso); }
.work-count {
  margin-left: auto; padding-bottom: 12px;
  font-family: var(--font-label); font-size: 14px; line-height: 20px; color: var(--drd-taupe);
}

/* ------------------------------------------------------------ empty state */
.work-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 48px 0 8px; border-top: 1px solid var(--line); }
.work-empty[hidden] { display: none; }
.work-empty p { font-family: var(--font-display); font-size: 28px; line-height: 36px; }
.work-empty button { background: none; border: 0; border-bottom: 1px solid var(--drd-bronze); padding: 0 0 5px; cursor: pointer; }

/* ------------------------------------------------------------ what the photo labels mean */
.work-key {
  display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--font-label); font-size: 14px; line-height: 20px; color: var(--drd-taupe);
}
.work-key div { display: flex; align-items: baseline; gap: 12px; }
.work-key dt {
  flex-shrink: 0; padding: 5px 8px; background: var(--drd-stone); color: var(--drd-espresso);
  font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: .16em;
}
.work-key dd { margin: 0; }

/* ------------------------------------------------------------ the next step */
.work-next { padding-bottom: 144px; }
.work-next-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 64px;
  padding-top: 64px; border-top: 1px solid var(--drd-espresso);
}
.work-next-copy { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.work-next-title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em;
  font-size: clamp(30px, 3.06vw, 44px); line-height: 1.18;
}
.work-next-body { font-size: 18px; line-height: 30px; }

@media (max-width: 1023px) {
  .work-register { padding-block: 40px 80px; }
  .work-next { padding-bottom: 104px; }
  .work-next-row { flex-direction: column; align-items: flex-start; padding-top: 48px; }
}
@media (max-width: 767px) {
  .work-filters { gap: 20px; margin-bottom: 40px; }
  .work-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 20px; }
  .work-select { width: auto; }
  .work-select:nth-child(3), .work-count { grid-column: 1 / -1; }
  .work-count { margin-left: 0; padding-bottom: 0; }
  .work-empty p { font-size: 24px; line-height: 32px; }
  .work-key { flex-direction: column; margin-top: 48px; }
  .work-key dt { font-size: 12px; }
  .work-next { padding-bottom: 80px; }
  .work-next-body { font-size: 17px; line-height: 28px; }
  .work-next .btn { width: 100%; }
}
