.deck-fingerprint {
  margin-top: 20px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.07), rgba(18, 18, 22, 0.96) 34%, rgba(13, 13, 16, 0.98));
  color: var(--text, #f1f0eb);
}

.deck-fingerprint *,
.deck-fingerprint *::before,
.deck-fingerprint *::after { box-sizing: border-box; }

.deck-fingerprint__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.deck-fingerprint__eyebrow {
  margin: 0 0 7px;
  color: #e4c866;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.deck-fingerprint h2,
.deck-fingerprint h3,
.deck-fingerprint p { margin-top: 0; }
.deck-fingerprint h2 { margin-bottom: 6px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.deck-fingerprint h3 { margin-bottom: 8px; font-size: 17px; }
.deck-fingerprint__intro { max-width: 700px; margin-bottom: 0; color: var(--text-muted, #aaa7a0); line-height: 1.6; }

.deck-fingerprint__not-score {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(201, 168, 76, .35);
  border-radius: 999px;
  color: #efd77d;
  background: rgba(201, 168, 76, .08);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.deck-fingerprint__layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr);
  gap: 24px;
  align-items: start;
}

.deck-fingerprint__main,
.deck-fingerprint__rail { min-width: 0; }
.deck-fingerprint__main { display: grid; gap: 16px; }
.deck-fingerprint__rail { display: grid; gap: 16px; }

.deck-fingerprint__summary,
.deck-fingerprint__benchmark,
.deck-fingerprint__method {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: rgba(18, 18, 22, .86);
}

.deck-fingerprint__summary {
  border-color: rgba(201, 168, 76, .34);
  background: linear-gradient(135deg, rgba(201, 168, 76, .09), rgba(21, 21, 25, .94));
}

.deck-fingerprint__summary p:last-child,
.deck-fingerprint__benchmark p:last-child,
.deck-fingerprint__method p:last-child { margin-bottom: 0; }
.deck-fingerprint__summary-copy { color: #efede6; font-size: clamp(16px, 2vw, 19px); line-height: 1.55; }
.deck-fingerprint__source { color: var(--text-muted, #96938d); font-size: 12px; line-height: 1.5; }

/* align-items: start so a collapsed card never stretches to match an expanded
   row-mate's height (which read as a second, empty "dropped-down" card). */
.deck-fingerprint__dimensions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.deck-fingerprint__dimension {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  background: rgba(16, 16, 20, .9);
}
/* The "unusual" card carries a subtle standing marker; the card you actually
   open gets the strong highlight so it's clearly the active one. */
.deck-fingerprint__dimension.is-unusual { border-color: rgba(201, 168, 76, .32); }
.deck-fingerprint__dimension[open] {
  border-color: rgba(201, 168, 76, .6);
  box-shadow: inset 3px 0 0 #c9a84c;
  background: rgba(24, 22, 16, .92);
}
.deck-fingerprint__dimension summary {
  min-height: 88px;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}
.deck-fingerprint__dimension summary::-webkit-details-marker { display: none; }
.deck-fingerprint__dimension summary:focus-visible,
.deck-fingerprint__consent input:focus-visible,
.deck-fingerprint button:focus-visible { outline: 3px solid #f0d36d; outline-offset: 3px; }
.deck-fingerprint__dimension-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
/* Reserves 2 lines of label height even when a shorter label (e.g. "Setup
   speed") only wraps to 1 -- otherwise a longer label (e.g. "Redundancy and
   consistency") makes just its own collapsed card taller than its row-mate,
   since align-items: start (see .deck-fingerprint__dimensions) intentionally
   doesn't stretch cards to match an *expanded* neighbor and so doesn't
   stretch collapsed ones to match here either. */
.deck-fingerprint__dimension-label { display: block; min-height: 2.7em; color: #f1f0eb; font-size: 14px; line-height: 1.35; }
.deck-fingerprint__dimension-value { color: #efd77d; font-size: 19px; font-weight: 800; white-space: nowrap; }
/* Same reasoning as .deck-fingerprint__dimension-label above -- "High
   concentration. Confidence medium." wraps to 2 lines while "Strong support.
   Confidence low." fits on 1, so this also needs reserved height or the
   label fix alone doesn't fully equalize row heights. */
.deck-fingerprint__dimension-band { display: block; min-height: 2.8em; margin-top: 2px; color: var(--text-muted, #96938d); font-size: 11px; line-height: 1.4; }
.deck-fingerprint__bar { width: 100%; height: 7px; margin-top: 12px; accent-color: #c9a84c; }
.deck-fingerprint__bar::-webkit-progress-bar { border-radius: 999px; background: rgba(255,255,255,.08); }
.deck-fingerprint__bar::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #8b722d, #e6c658); }
.deck-fingerprint__bar::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, #8b722d, #e6c658); }
.deck-fingerprint__dimension-body { padding: 0 16px 16px; color: var(--text-muted, #aaa7a0); font-size: 13px; line-height: 1.55; }
.deck-fingerprint__dimension-body strong { color: #f1f0eb; }
.deck-fingerprint__metric-list { display: grid; gap: 7px; margin: 12px 0; padding: 0; list-style: none; }
.deck-fingerprint__metric-list li { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.07); }
.deck-fingerprint__metric-list span:last-child { color: #efd77d; font-weight: 700; text-align: right; }

.deck-fingerprint__benchmark { min-height: 176px; }
.deck-fingerprint__benchmark-status { color: var(--text-muted, #aaa7a0); line-height: 1.55; }
.deck-fingerprint__benchmark-headline { color: #f1f0eb; font-weight: 800; line-height: 1.45; }
.deck-fingerprint__benchmark-meta { color: #96938d; font-size: 12px; line-height: 1.5; }
.deck-fingerprint__benchmark details { margin-top: 12px; }
.deck-fingerprint__benchmark summary,
.deck-fingerprint__method summary { min-height: 44px; display: flex; align-items: center; color: #e8cf77; cursor: pointer; font-weight: 750; }

.deck-fingerprint__consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
}
.deck-fingerprint__consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #c9a84c; }
.deck-fingerprint__consent strong { display: block; color: #f1f0eb; font-size: 13px; }
.deck-fingerprint__consent small { display: block; margin-top: 4px; color: #96938d; line-height: 1.45; }
.deck-fingerprint__privacy-status { min-height: 18px; margin: 9px 0 0; color: #e8cf77; font-size: 12px; line-height: 1.45; }
.deck-fingerprint__privacy-list { margin: 8px 0 0; padding-left: 18px; color: #aaa7a0; font-size: 12px; line-height: 1.6; }
.deck-fingerprint__method p { color: #aaa7a0; font-size: 12px; line-height: 1.6; }
.deck-fingerprint__version { color: #77746e; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }

/* When there is no peer comparison to show, the rail is removed and the main
   column (What stands out + dimensions) spans the full width. Compound selector
   so it also wins inside the wider-viewport media query below. */
.deck-fingerprint__layout.deck-fingerprint__layout--full { grid-template-columns: 1fr; }

@media (max-width: 900px) {
  .deck-fingerprint__layout { grid-template-columns: minmax(0, 5fr) minmax(240px, 3fr); gap: 18px; }
  .deck-fingerprint__dimensions { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .deck-fingerprint { padding: 18px 14px; border-radius: 14px; }
  .deck-fingerprint__head { display: grid; gap: 12px; }
  .deck-fingerprint__not-score { justify-self: start; white-space: normal; }
  .deck-fingerprint__layout { grid-template-columns: 1fr; }
  .deck-fingerprint__summary { order: 1; }
  .deck-fingerprint__dimensions { order: 2; }
  .deck-fingerprint__rail { order: 3; }
  .deck-fingerprint__dimension summary { min-height: 92px; }
  .deck-fingerprint__benchmark,
  .deck-fingerprint__method,
  .deck-fingerprint__summary { padding: 17px; }
}

@media (max-width: 360px) {
  .deck-fingerprint { padding-inline: 12px; }
  .deck-fingerprint__dimension-top { display: grid; gap: 4px; }
  .deck-fingerprint__metric-list li { display: grid; gap: 2px; }
  .deck-fingerprint__metric-list span:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .deck-fingerprint *, .deck-fingerprint *::before, .deck-fingerprint *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
