/* Part rows: shared by the build manifest and the feature pages, so a
   part looks and behaves the same wherever it is listed. */
.finish-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--ink-faint);
  align-items: center;
}
.finish-row:last-child { border-bottom: none; }

.finish-swatch {
  width: 100%;
  aspect-ratio: 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
/* Hash pattern for placeholder swatches that don't have a real color yet. */
.finish-swatch.placeholder {
  background:
    repeating-linear-gradient(45deg, var(--ink-soft) 0, var(--ink-soft) 3px, transparent 3px, transparent 8px),
    var(--bg);
}

.finish-info { display: flex; flex-direction: column; gap: 0.32rem; }
.finish-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.finish-source {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.finish-partof {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.finish-partof a { color: var(--accent); }
.finish-row.is-target { animation: target-row 2s ease-out; }
@keyframes target-row {
  0%, 24% { box-shadow: inset 4px 0 0 var(--accent); background: rgba(108, 43, 77, 0.09); }
  100% { box-shadow: inset 4px 0 0 transparent; background: transparent; }
}
/* When the row itself is a link, keep the same layout but make the whole
   row interactive — subtle indent on hover, with a small external-link mark. */

/* Expandable rows — click anywhere on the row to drop down a details panel. */
.finish-row.expandable {
  grid-template-areas:
    "swatch info"
    "details details";
  cursor: pointer;
  transition: padding-left 0.3s ease;
}
.finish-row.expandable .finish-swatch { grid-area: swatch; }
.finish-row.expandable .finish-info   { grid-area: info; }
.finish-row.expandable .finish-title::after {
  content: '▾';
  display: inline-block;
  margin-left: 0.7em;
  font-size: 0.7em;
  color: var(--ink-soft);
  letter-spacing: 0;
  transition: transform 0.3s ease;
}
.finish-row.expandable.expanded .finish-title::after { transform: rotate(180deg); }
.finish-row.expandable:hover { padding-left: 0.4rem; }

.finish-details {
  grid-area: details;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.3s ease;
  margin-top: 0;
}
.finish-row.expanded .finish-details {
  max-height: 700px;
  opacity: 1;
  margin-top: 1.2rem;
}
.finish-details-inner {
  padding: 1.2rem 1.4rem;
  background: transparent;
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.finish-spec {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.4rem 1.2rem;
  font-size: 0.88rem;
}
.finish-spec dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  align-self: center;
}
.finish-spec dd {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.finish-supplies {
  font-family: var(--body);
  font-size: 0.88rem;
}
.finish-supplies h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.finish-supplies ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.finish-supplies li::before {
  content: '— ';
  color: var(--ink-soft);
}
.finish-supplies a {
  text-decoration: underline;
  text-decoration-color: var(--ink-faint);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.finish-supplies a:hover { text-decoration-color: var(--ink); }

/* A short highlighted remark on a part, e.g. a custom modification. */
.finish-note {
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.3rem 0.6rem;
  border-left: 2px solid var(--accent);
  background: rgba(108, 43, 77, 0.07);
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink);
}
