/* Site-wide AI readiness scan results (js/site-audit.js) */
#site-audit-v2 { margin-top: 1.5rem; display: grid; gap: 1rem; }
.sa-status { margin-top: 0.75rem; color: #475569; font-size: 0.95rem; }
.sa-status--error { color: #b91c1c; font-weight: 600; }
.sa-summary { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.sa-summary__line { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin: 0 0 0.25rem; }
.sa-score { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; color: #fff; }
.sa-score--good { background: #16a34a; }
.sa-score--ok { background: #2563eb; }
.sa-score--poor { background: #dc2626; }
.sa-muted { color: #64748b; font-size: 0.9rem; margin: 0.25rem 0 0; }
.sa-muted a { color: #4f46e5; }
.sa-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sa-chip { padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; background: #e2e8f0; color: #334155; }
.sa-chip--pass { background: #dcfce7; color: #15803d; }
.sa-chip--warn { background: #fef3c7; color: #b45309; }
.sa-chip--fail { background: #fee2e2; color: #b91c1c; }
.sa-card { padding: 1.25rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.sa-h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: #0f172a; }
.sa-bots { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.25rem; font-size: 0.9rem; }
.sa-bots .is-ok { color: #15803d; }
.sa-bots .is-blocked { color: #b91c1c; font-weight: 600; }
.sa-group { margin: 1rem 0 0.5rem; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.sa-group--fail { color: #b91c1c; }
.sa-group--warn { color: #b45309; }
.sa-clear { padding: 0.75rem 1rem; border-radius: 8px; background: #f0fdf4; color: #15803d; font-weight: 600; }
.sa-issue { margin-bottom: 0.5rem; padding: 0.75rem 1rem; border: 1px solid #e2e8f0; border-left: 4px solid #f59e0b; border-radius: 8px; }
.sa-issue--fail { border-left-color: #ef4444; }
.sa-issue__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.75rem; cursor: pointer; list-style: none; }
.sa-issue__head::-webkit-details-marker { display: none; }
.sa-issue__title { font-weight: 700; color: #0f172a; }
.sa-issue__count { font-size: 0.85rem; color: #64748b; }
.sa-issue__details { flex-basis: 100%; margin: 0.25rem 0 0; color: #334155; font-size: 0.9rem; }
.sa-issue__rec { margin: 0.25rem 0 0; color: #475569; font-size: 0.9rem; font-style: italic; }
.sa-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; border-radius: 12px; background: #eef2ff; color: #3730a3; font-weight: 600; }
.sa-cta p { margin: 0; flex: 1 1 280px; }
.sa-shopify { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; padding: 1.25rem; border: 1px solid rgba(149, 191, 71, 0.55); border-radius: 12px; background: rgba(149, 191, 71, 0.08); }
.sa-shopify__copy { flex: 1 1 22rem; }
.sa-shopify__eyebrow { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #4d7c0f; }
.sa-shopify__title { margin: 0 0 0.5rem; font-size: 1.1rem; color: #0f172a; }
.sa-shopify__list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.25rem; color: #334155; font-size: 0.9rem; }
.sa-shopify__cta { display: grid; gap: 0.4rem; justify-items: start; }
.sa-shopify__cta .sa-muted { margin: 0; font-size: 0.8rem; }
.sa-shopify__alt { color: #4f46e5; font-size: 0.85rem; }
.sa-pages { display: flex; flex-direction: column; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.sa-page { border-top: 1px solid #f1f5f9; color: #0f172a; font-size: 0.9rem; }
.sa-page:first-child { border-top: 0; }
.sa-page__head { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; cursor: pointer; list-style: none; }
.sa-page__head::-webkit-details-marker { display: none; }
.sa-page__head:hover, .sa-page[open] > .sa-page__head { background: #f8fafc; }
.sa-page__counts { flex-shrink: 0; color: #64748b; font-size: 0.85rem; }
.sa-page__chevron { flex-shrink: 0; color: #94a3b8; transition: transform 0.15s; }
.sa-page[open] .sa-page__chevron { transform: rotate(90deg); }
.sa-page__body { padding: 0.25rem 0.75rem 0.75rem 3.6rem; }
.sa-page__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.sa-page__check { padding-left: 0.75rem; border-left: 3px solid #f59e0b; }
.sa-page__check--fail { border-left-color: #ef4444; }
.sa-page__check-head { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.sa-page__check-details { margin: 0.2rem 0 0; color: #334155; }
.sa-badge { padding: 0.05rem 0.45rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.sa-badge--fail { background: #fee2e2; color: #b91c1c; }
.sa-badge--warn { background: #fef3c7; color: #b45309; }
.sa-page__open { display: inline-block; margin-top: 0.6rem; color: #4f46e5; font-weight: 600; text-decoration: none; }
.sa-page__open:hover { text-decoration: underline; }
.sa-page__score { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; color: #fff; }
.sa-page__path { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
    .sa-summary { flex-direction: column; align-items: flex-start; }
    .sa-page__head { flex-wrap: wrap; }
    .sa-page__path { flex-basis: calc(100% - 50px); }
    .sa-page__counts { margin-left: calc(34px + 0.75rem); }
    .sa-page__chevron { display: none; }
    .sa-page__body { padding-left: 0.75rem; }
    .sa-shopify { flex-direction: column; align-items: stretch; }
    .sa-shopify__cta { justify-items: stretch; text-align: center; }
}
/* The page's base styles float this button over the title; give it its own row. */
#audit-results .back-to-audit { position: static; margin-bottom: 1.25rem; }
#audit-results .audit-results__header { margin-bottom: 0.5rem; text-align: left; }
