/* Paddle comparison charts — the "Your top 3" strip + 2a/2b/2c visualizations
   (see assets/paddle-charts.js). Its own stylesheet, not paddle-quiz.css,
   because it is a reusable component meant for both the quiz results and (once
   it has a selection model) the browse view — the same reason its JS is a
   shared module.

   The prototype's palette (warm off-white, court-blue links, coral/green
   series) is mapped onto this site's real v4 tokens per DESIGN.md: page paper
   is --fog, card surface --paper, ink --ink, and the three series accents are
   the site's teal/clay/olive (assigned in JS). Chart geometry, type scale and
   interaction timing follow the handoff precisely. */

.pc-root {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0 0 1.6rem;
  text-align: left;
}

/* Shared card frame. The prototype used a 1px hairline + soft shadow at 8px;
   mapped to the site's card language — --paper surface, --line hairline,
   --radius-m — with the warm paper shadow the design bans true-black ones. */
.pc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 1px 3px rgba(var(--ink-rgb), 0.06);
  padding: 24px 26px;
}

/* ---------- shared type ---------- */
.pc-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pc-title {
  margin: 4px 0 2px;
  font-family: var(--font-headline);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pc-explain {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.pc-explain strong {
  color: var(--ink);
  font-weight: 700;
}
.pc-note {
  margin: 8px 0 0;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* The recommender's commission line. Same treatment as .pc-note (which is also
   the stress-test verdict, so it can't simply be renamed) — this is the
   .affiliate-note skin for surface=recommend. */
.affiliate-note--recommend {
  margin: 8px 0 0;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* ---------- segmented pill group ---------- */
.pc-pillgroup {
  display: inline-flex;
  background: var(--fog-dim);
  border-radius: 999px;
  padding: 3px;
}
.pc-pill {
  border: none;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--ink);
  background: transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.pc-pill:hover {
  color: var(--bay);
}
/* Active pill: the prototype's dark control fill, mapped to --ink. */
.pc-pill.is-active,
.pc-pill.is-active:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- rank roundel ---------- */
/* The numbered disc on a recommender row. Base size is unused on its own since
   the top-3 strip went; --sm below is what the rows actually render. Kept
   unsplit so the modifier still has a base to modify. */
.pc-roundel {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  line-height: 22px;
  text-align: center;
}

/* ---------- 2c stress-test ---------- */
.pc-preset-group {
  margin: 10px 0 6px;
  flex-wrap: wrap;
}
.pc-preset-note {
  margin: 2px 0 14px;
}
.pc-rows {
  position: relative;
}
.pc-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.pc-roundel--sm {
  width: 20px;
  height: 20px;
  line-height: 18px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.pc-row-meta {
  flex: none;
  width: 150px;
  min-width: 0;
}
.pc-row-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-row-brand {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.656rem;
  color: var(--ink-faint);
}
.pc-row-track {
  flex: 1;
  height: 34px;
  background: var(--fog-dim);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}
.pc-seg {
  height: 100%;
  border-right: 1.5px solid var(--paper);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.pc-row-total {
  flex: none;
  width: 48px;
  text-align: right;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
}
.pc-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule-08);
  padding-top: 12px;
  margin-top: 6px;
}
.pc-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--ink-soft);
}
.pc-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex: none;
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .pc-card {
    padding: 20px 18px;
  }
  .pc-pillgroup {
    flex-wrap: wrap;
  }
  .pc-row-meta {
    width: 108px;
  }
}

/* Kill the delight-moment transitions when the visitor asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  .pc-row,
  .pc-seg {
    transition: none;
  }
}

/* ---------- shopping recommendations ---------- */
/* Replaced the price-vs-score scatter. Reads as a shopping list, not a chart:
   a panel for the paddle you picked, then rows of alternatives with the price
   difference as the loudest number in each one. */
.pc-shop-anchor {
  border: 1px solid var(--bay);
  border-left-width: 3px;
  border-radius: var(--radius-s);
  background: var(--bay-tint);
  padding: 12px 14px;
  margin-bottom: 18px;
}
.pc-shop-anchor-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.pc-shop-anchor-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bay-deep);
}
.pc-shop-anchor-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
}
.pc-shop-anchor-price {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
}
.pc-shop-claim {
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--bay-deep);
}
.pc-shop-claim.is-neutral {
  color: var(--ink-soft);
  font-weight: 400;
}

.pc-shop-group + .pc-shop-group {
  margin-top: 18px;
}
.pc-shop-grouptitle {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pc-shop-empty {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.pc-shop-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rule-08);
}
.pc-shop-row:first-of-type {
  border-top: none;
}
.pc-shop-main {
  min-width: 0;
  flex: 1;
}
.pc-shop-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--ink);
}
/* The name is a link to the detail page — reads as the heading, underlines on
   hover/focus so the affordance is discoverable without shouting. */
a.pc-shop-name {
  text-decoration: none;
}
a.pc-shop-name:hover,
a.pc-shop-name:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pc-shop-delta {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
/* Match meter — a thin bar + a percentage, showing how close this paddle's
   trait profile is to the pick's (traitMatchPct). Sits under the word delta. */
.pc-shop-match {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.pc-shop-match-track {
  flex: none;
  width: 84px;
  height: 5px;
  border-radius: 999px;
  background: var(--rule-08);
  overflow: hidden;
}
.pc-shop-match-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--bay-deep);
}
.pc-shop-match-pct {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.pc-shop-money {
  flex: none;
  text-align: right;
}
.pc-shop-price {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
}
/* The saving is the point of the row, so it is the coloured number. */
.pc-shop-diff {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-faint);
}
.pc-shop-diff.is-save {
  color: var(--bay-deep);
  font-weight: 700;
}
/* Compare + buy sit together at the row end. Column-stacked so both stay
   narrow and aligned; the pick's Compare is the quiet on-site action, the buy
   is the filled/outlined vendor CTA. */
.pc-shop-actions {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.pc-shop-buy {
  flex: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
}
.pc-shop-buy:hover {
  background: var(--ink);
  color: var(--paper);
}
/* Secondary to the buy button: no fill, lighter rule, so "Compare" reads as
   the explore action and the vendor CTA stays the loud one. */
.pc-shop-compare {
  flex: none;
  border: 1px solid var(--rule-24, var(--rule-08));
  border-radius: 999px;
  padding: 7px 14px;
  background: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  color: var(--ink-soft);
  white-space: nowrap;
  cursor: pointer;
}
.pc-shop-compare:hover,
.pc-shop-compare:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

@media (max-width: 720px) {
  .pc-shop-row {
    flex-wrap: wrap;
  }
  .pc-shop-money {
    text-align: left;
  }
  .pc-shop-actions {
    width: 100%;
    flex-direction: row;
  }
  .pc-shop-compare,
  .pc-shop-buy {
    flex: 1;
    text-align: center;
  }
}
