/* Save-this-research prompt shown inside analyzer results after the open cards.
   Replay Room palette: blue carries structure, orange is earned by the action
   and the top score only. */
.pp-save-panel {
  --sp-night: #031a2c;
  --sp-studio: #06243a;
  --sp-ink: #021522;
  --sp-cream: #f7f1e7;
  --sp-muted: #b8d3df;
  --sp-blue: #54c8ff;
  --sp-line: rgba(84, 200, 255, 0.35);
  --sp-orange: #ff5b23;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.75fr);
  gap: 32px;
  align-items: center;
  margin: 6px 0;
  padding: 30px 32px;
  border: 1px solid rgba(84, 200, 255, 0.72);
  border-radius: 14px;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(84, 200, 255, 0.06) 31px 32px),
    linear-gradient(120deg, var(--sp-studio), var(--sp-night) 70%);
  color: var(--sp-cream);
  text-align: left;
}

@media (prefers-reduced-motion: no-preference) {
  .pp-save-panel { animation: pp-save-panel-in 320ms ease-out both; }
  @keyframes pp-save-panel-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}

.pp-save-panel__heading {
  margin: 0;
  max-width: 22ch;
  font: 700 clamp(28px, 3.4vw, 40px)/0.98 var(--pp-display, "Familjen Grotesk", "Arial Narrow", sans-serif);
  letter-spacing: -0.02em;
  color: var(--sp-cream);
  text-wrap: balance;
}

.pp-save-panel__body {
  max-width: 58ch;
  margin: 14px 0 0;
  font: 400 16px/1.6 var(--pp-body, "IBM Plex Sans", sans-serif);
  color: var(--sp-muted);
}

.pp-save-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 22px;
}

.pp-save-panel__primary {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 10px;
  background: var(--sp-orange);
  color: #fff;
  font: 700 18px/1 var(--pp-display, "Familjen Grotesk", sans-serif);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255, 91, 35, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

/* Outranks the navigation-page link color (body.pp-site-system.pp-nav-page a). */
.pp-save-panel .pp-save-panel__actions .pp-save-panel__primary { color: #fff; }

.pp-save-panel__primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255, 91, 35, 0.28); }

.pp-save-panel__store {
  color: var(--sp-blue);
  font: 600 15px/1.2 var(--pp-body, "IBM Plex Sans", sans-serif);
  text-decoration: underline;
  text-decoration-color: rgba(84, 200, 255, 0.45);
  text-underline-offset: 4px;
}

.pp-save-panel__store:hover { text-decoration-color: currentColor; }

.pp-save-panel a:focus-visible {
  outline: 3px solid var(--sp-orange);
  outline-offset: 4px;
}

.pp-save-panel__terms {
  margin: 14px 0 0;
  font: 400 13px/1.5 var(--pp-body, "IBM Plex Sans", sans-serif);
  color: var(--sp-muted);
  opacity: 0.85;
}

/* The ticket: a torn research stub. Its dashed tear line and two notches are
   the panel's one decorative move. */
.pp-save-panel__ticket {
  position: relative;
  padding: 22px 22px 18px 28px;
  border: 1px solid var(--sp-line);
  border-left: 2px dashed rgba(84, 200, 255, 0.55);
  border-radius: 6px 14px 14px 6px;
  background: var(--sp-ink);
  transform: rotate(1.2deg);
}

.pp-save-panel__ticket::before,
.pp-save-panel__ticket::after {
  content: "";
  position: absolute;
  left: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sp-studio);
  border: 1px solid var(--sp-line);
}

.pp-save-panel__ticket::before { top: -11px; }
.pp-save-panel__ticket::after { bottom: -11px; }

.pp-save-panel__ticket-title {
  margin: 0 0 14px;
  font: 700 22px/1.05 var(--pp-display, "Familjen Grotesk", sans-serif);
  color: var(--sp-cream);
  overflow-wrap: anywhere;
}

.pp-save-panel__ticket-title span {
  display: block;
  margin-top: 4px;
  font: 600 13px/1.2 var(--pp-mono, "IBM Plex Mono", monospace);
  color: var(--sp-blue);
}

.pp-save-panel__rows { margin: 0; }

.pp-save-panel__rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(84, 200, 255, 0.18);
}

.pp-save-panel__rows dt {
  font: 600 13px/1.2 var(--pp-mono, "IBM Plex Mono", monospace);
  color: var(--sp-muted);
}

.pp-save-panel__rows dd {
  margin: 0;
  font: 700 22px/1 var(--pp-display, "Familjen Grotesk", sans-serif);
  color: var(--sp-cream);
  font-variant-numeric: tabular-nums;
}

.pp-save-panel__score dd { color: var(--sp-orange); font-size: 34px; }
.pp-save-panel__score small { font-size: 15px; margin-left: 2px; color: var(--sp-muted); }

.pp-save-panel__ticket-note {
  margin: 8px 0 0;
  font: 400 12px/1.4 var(--pp-body, "IBM Plex Sans", sans-serif);
  color: var(--sp-muted);
}

@media (max-width: 760px) {
  .pp-save-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px;
  }
  .pp-save-panel__ticket { transform: none; margin-left: 10px; }
  .pp-save-panel__primary { width: 100%; justify-content: center; }
}

/* Hub link row to the sport-specific analyzer pages. */
.analyzer-sport-pages {
  margin: -12px 0 28px;
  text-align: center;
  font: 400 15px/1.5 var(--pp-body, "IBM Plex Sans", sans-serif);
  color: #b8d3df;
}

.analyzer-sport-pages a {
  margin-left: 14px;
  color: #54c8ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.analyzer-sport-pages a:focus-visible { outline: 3px solid #ff5b23; outline-offset: 4px; }

/* Navigation pages force muted dd text with !important at specificity 0,3,1
   and load later; the ticket values are the readout, so they outrank it (0,4,1)
   to keep cream and the earned orange score. */
.pp-save-panel.pp-save-panel .pp-save-panel__ticket .pp-save-panel__rows dd { color: #f7f1e7 !important; }
.pp-save-panel.pp-save-panel .pp-save-panel__ticket .pp-save-panel__score dd { color: #ff5b23 !important; }
