/* ── /score/ page-specific styles ─────────────────────────────
   Loaded via $pageCss in score/index.php. Uses theme vars only
   (works in both [data-theme="dark"] and [data-theme="light"]). */

/* Hero card header action cluster: copy report / share / download JSON */
.score-hero-actions{display:flex;gap:6px;flex-shrink:0}

/* Retry button inside the error banner */
.ip-retry-btn{margin-left:12px;padding:7px 16px;background:var(--bg-elevated);border:1px solid var(--border-default);border-radius:var(--radius-sm);color:var(--text-primary);font-size:12.5px;font-weight:600;font-family:inherit;cursor:pointer;transition:all .15s ease}
.ip-retry-btn:hover{border-color:var(--accent);color:var(--accent)}

/* Per-check copy button — revealed on chip hover */
.score-chip-copy{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid transparent;border-radius:6px;cursor:pointer;color:var(--text-muted);padding:0;flex-shrink:0;opacity:0;transition:all .15s ease}
.score-chip-copy svg{width:12px;height:12px}
.score-check-chip:hover .score-chip-copy,
.score-chip-copy:focus-visible{opacity:1}
.score-chip-copy:hover{color:var(--accent);border-color:var(--border-default);background:var(--bg-surface)}
@media (hover:none){.score-chip-copy{opacity:.65}}

/* Rich check tooltips (replaces native title=) */
.score-check-chip[data-tip]{position:relative}
.score-check-chip[data-tip]:not([data-tip=""]):hover::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 9px);transform:translateX(-50%);width:max-content;max-width:270px;padding:8px 12px;background:var(--bg-elevated);color:var(--text-primary);border:1px solid var(--border-hover);border-radius:8px;font-size:11.5px;font-weight:500;line-height:1.5;white-space:normal;text-align:left;z-index:30;pointer-events:none;box-shadow:0 8px 24px rgba(0,0,0,.18);animation:score-tip-in .16s ease both}
.score-check-chip[data-tip]:not([data-tip=""]):hover::before{content:'';position:absolute;left:50%;bottom:calc(100% + 4px);transform:translateX(-50%) rotate(45deg);width:9px;height:9px;background:var(--bg-elevated);border-right:1px solid var(--border-hover);border-bottom:1px solid var(--border-hover);z-index:31;pointer-events:none;animation:score-tip-in .16s ease both}
@keyframes score-tip-in{from{opacity:0;translate:0 3px}to{opacity:1;translate:0 0}}
@media (prefers-reduced-motion:reduce){
    .score-check-chip[data-tip]:hover::after,
    .score-check-chip[data-tip]:hover::before{animation:none}
}

/* Sub-score bars ease into place (widths set by JS after render) */
.score-breakdown-fill{transition:width .9s cubic-bezier(.22,1,.36,1)}
@media (prefers-reduced-motion:reduce){.score-breakdown-fill{transition:none}}
