/* Pinterest Rich Pins Validator - tool-specific styles on top of the
 * shared tools.css primitives (results region, table, history, toasts). */

:root { --prv-accent: #e60023; --prv-accent-dark: #ad081b; --prv-accent-tint: #fff1f2; }

.page-hero h1 .prv-hero-mark { width: 1em; height: 1em; vertical-align: -0.12em; margin-right: 0.4rem; color: var(--prv-accent); }

.prv-intro { margin: 0 0 14px; color: #475569; font-size: 0.95rem; line-height: 1.55; }
.prv-input-row { display: flex; flex-wrap: wrap; gap: 10px; }
.prv-input-row .text-input { flex: 1 1 320px; min-width: 0; }
.prv-error { margin: 10px 0 0; color: #b91c1c; font-size: 0.9rem; }
.prv-error[hidden] { display: none; }

.prv-report { padding: 16px 18px 18px; }
.prv-subhead { font-size: 0.92rem; color: #475569; line-height: 1.5; word-break: break-word; overflow-wrap: anywhere; }
.prv-subhead strong { color: #1f2937; }
.prv-subhead a { color: var(--prv-accent-dark); }
.prv-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.prv-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.01em;
}
.prv-pill.is-pass { background: #dcfce7; color: #166534; }
.prv-pill.is-warn { background: #fef3c7; color: #92400e; }
.prv-pill.is-fail { background: #fee2e2; color: #991b1b; }
.prv-pill.is-info { background: #e0f2fe; color: #075985; }
.prv-pill.is-kind { background: var(--prv-accent-tint); color: var(--prv-accent-dark); }

.prv-group { margin-top: 18px; }
.prv-group-title { margin: 0 0 4px; font-size: 1rem; font-weight: 700; color: #1f2937; }
.prv-group-note { margin: 0 0 8px; font-size: 0.84rem; color: #64748b; }
.prv-row {
    display: grid; grid-template-columns: 82px minmax(0, 1fr);
    gap: 4px 12px; padding: 10px 0; border-top: 1px solid #eef0f3;
}
.prv-row:first-of-type { border-top: 0; }
.prv-row-status { align-self: start; }
.prv-row-label { font-weight: 600; color: #1f2937; font-size: 0.93rem; }
.prv-row-detail { grid-column: 2; font-size: 0.88rem; color: #475569; line-height: 1.5; word-break: break-word; overflow-wrap: anywhere; }
.prv-row-fix { grid-column: 2; font-size: 0.84rem; color: #7a1a24; background: var(--prv-accent-tint); border-radius: 8px; padding: 6px 10px; line-height: 1.5; }
.prv-row-fix code, .prv-row-detail code { font-size: 0.82em; background: #f5f6f8; padding: 1px 4px; border-radius: 4px; word-break: break-all; }

.prv-images { margin-top: 18px; }
.prv-table-wrap { overflow-x: clip; }
.prv-table .col-prv-img { width: 44%; }
.prv-table .col-prv-size { width: 110px; }
.prv-table .col-prv-ratio { width: 80px; }
.prv-table .col-prv-alt { width: 22%; }
.prv-table .col-prv-verdict { width: 160px; }
.prv-table td { vertical-align: top; font-size: 0.86rem; }
.prv-img-url { word-break: break-all; overflow-wrap: anywhere; }
.prv-img-url a { color: var(--prv-accent-dark); }
.prv-img-og { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--prv-accent-tint); color: var(--prv-accent-dark); font-size: 0.7rem; font-weight: 700; }
.prv-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.prv-alt-missing { color: #92400e; }
.prv-verdict { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.prv-verdict.is-ideal { background: #dcfce7; color: #166534; }
.prv-verdict.is-ok { background: #e0f2fe; color: #075985; }
.prv-verdict.is-wide, .prv-verdict.is-tall { background: #fef3c7; color: #92400e; }
.prv-verdict.is-small { background: #fee2e2; color: #991b1b; }
.prv-verdict.is-unknown, .prv-verdict.is-skipped { background: #f1f5f9; color: #64748b; }
.prv-verdict-note { display: block; margin-top: 3px; font-size: 0.78rem; color: #64748b; white-space: normal; }

/* Under fixed table layout the th widths must sum to the table width or
   the table overflows the page; at phone widths only Image / Size /
   Verdict stay visible (Ratio and Alt carry col-mobile-hide). */
@media (max-width: 640px) {
    .prv-report { padding: 12px 12px 14px; }
    .prv-row { grid-template-columns: 70px minmax(0, 1fr); }
    .prv-table { width: 100%; max-width: 100%; }
    .prv-table .col-prv-img { width: 46%; }
    .prv-table .col-prv-size { width: 22%; }
    .prv-table .col-prv-verdict { width: 32%; }
    .prv-table td { padding-left: 6px; padding-right: 6px; }
    .prv-verdict { white-space: normal; }
    .prv-summary { gap: 6px; }
}

/* Recent checks: the shared row keeps its meta on one line, which pushed
   the delete button past the viewport at phone widths when the meta is
   long; let the meta shrink and wrap here. */
#prv-history .history-item-meta { white-space: normal; min-width: 0; flex: 0 1 auto; }
