/*
 * Report page V6 (2026-11-14): calmer layout for clean reports.
 * Display only. No scores, statuses, data or JS behaviour are changed.
 * Load AFTER the other report-*.css files.
 */

/* ---------- Clean-report status panel (replaces AI panel + empty roadmap) ---------- */
.ai-seo-panel.is-clean{padding:22px 24px;display:grid;gap:16px}
.report-clean-head{display:flex;gap:16px;align-items:flex-start}
.report-clean-icon{flex:0 0 auto;display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:rgba(31,157,98,.12);color:var(--success,#17784c);font-size:22px;font-weight:900}
.report-clean-head h2{margin:2px 0 6px;font-size:clamp(21px,2.4vw,27px);line-height:1.2;letter-spacing:-.02em}
.report-clean-head p{margin:0;max-width:760px;font-size:14px;line-height:1.65;color:var(--muted,#64748b)}
.report-clean-stats{display:flex;flex-wrap:wrap;gap:8px}
.report-clean-stats span,.seo-guided-stat-row .is-note{display:inline-flex;align-items:baseline;gap:7px;padding:8px 13px;border:1px solid var(--border,#e2e8f0);border-radius:12px;background:var(--card,#fff);font-size:12px;font-weight:700;color:var(--text,#182231)}
.report-clean-stats b{font-size:18px;font-variant-numeric:tabular-nums}
.report-clean-stats span:first-child{border-left:3px solid var(--success,#17784c)}
.report-clean-stats .is-note,.seo-guided-stat-row .is-note{border-left:3px solid #d99a12}
.report-minor-notes{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.report-minor-notes a{display:grid;gap:3px;padding:11px 14px;border:1px solid rgba(217,154,18,.35);border-left:3px solid #d99a12;border-radius:12px;background:rgba(217,154,18,.07);color:inherit;text-decoration:none}
.report-minor-notes a:hover{background:rgba(217,154,18,.12)}
.report-minor-notes strong{font-size:13px}
.report-minor-notes span{font-size:12.5px;line-height:1.55;color:var(--muted,#64748b)}
.ai-seo-panel.is-clean .ai-seo-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;align-items:stretch;margin:0;padding:0;border:0}
.ai-seo-panel.is-clean .ai-seo-actions a,.ai-seo-panel.is-clean .ai-seo-actions button{width:auto;min-height:42px;padding:0 16px;text-decoration:none}
.ai-seo-panel.is-clean .ai-seo-actions a{background:var(--card,#fff);color:var(--text,#182231);border:1px solid var(--border,#d9e0ea);box-shadow:none}
.ai-seo-panel.is-clean .ai-seo-actions a:hover{border-color:#d3a015}
.ai-seo-panel.is-clean .ai-seo-actions button{background:linear-gradient(135deg,#ffd15a,#f4b21a);color:#17130a}
.report-clean-foot{margin:0;font-size:12px;line-height:1.6;color:var(--muted,#64748b)}
.seo-guided-stat-row .is-note b{font-size:inherit}

/* ---------- Change detector: quiet single line ---------- */
.seo-change-panel.is-quiet{padding:14px 18px;border-radius:16px;margin:0 0 18px}
.seo-change-quiet{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-size:13px}
.seo-change-quiet strong{font-size:14px}
.seo-change-quiet .seo-change-dot{flex:0 0 auto}
.seo-change-quiet-meta{color:var(--muted,#64748b)}
.seo-change-quiet a{margin-left:auto;font-weight:700;font-size:12.5px;color:inherit;text-decoration:underline;text-decoration-color:rgba(211,160,21,.6);text-underline-offset:3px}
html[data-theme="dark"] .seo-change-panel.is-quiet{background:rgba(255,255,255,.04)}

/* ---------- History ---------- */
.history-stable-note{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:13px 16px;border:1px solid var(--border,#e2e8f0);border-radius:14px;background:var(--card,#fff);font-size:13.5px;line-height:1.5}
.history-stable-dot{flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:var(--success,#17784c)}
.history-fold{margin:0 0 6px;border:1px solid var(--border,#e2e8f0);border-radius:14px;background:var(--card,#fff);overflow:hidden}
.history-fold>summary{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:13px 16px;cursor:pointer;list-style:none;font-weight:800;font-size:14px}
.history-fold>summary::-webkit-details-marker{display:none}
.history-fold>summary small{font-weight:600;color:var(--muted,#64748b);font-size:11.5px}
.history-fold>summary:after{content:"⌄";margin-left:auto;padding-left:10px;transition:transform .15s}
.history-fold[open]>summary:after{transform:rotate(180deg)}
.history-fold .history-recent{margin:0;padding:0 14px 14px}
.history-fold .history-recent-head{display:none}
.history-bar-item small{line-height:1.25;text-align:center}

/* ---------- Check list: passed checks folded ---------- */
.audit-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.audit-toolbar span{font-weight:900;font-size:17px}
.audit-toolbar button{cursor:pointer;border:1px solid var(--border,#d9e0ea);border-radius:11px;background:var(--card,#fff);color:var(--text,#182231);padding:9px 13px;font-family:inherit;font-size:12px;font-weight:700;line-height:1.2}
.audit-toolbar button:hover{border-color:#d3a015}
.audit-toolbar[hidden]{display:none}
.audit-passed-fold{border-radius:14px;overflow:hidden}
.audit-passed-fold>summary{display:flex;align-items:center;gap:10px;padding:13px 16px;cursor:pointer;list-style:none;border:1px dashed rgba(31,157,98,.45);border-radius:14px;background:rgba(31,157,98,.06);font-size:13.5px;font-weight:800;color:var(--success,#17784c)}
.audit-passed-fold>summary::-webkit-details-marker{display:none}
.audit-passed-fold>summary:before{content:"✓";display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:rgba(31,157,98,.14);font-size:13px}
.audit-passed-fold>summary b{margin-left:auto;font-size:12px;font-weight:800;opacity:.85}
.audit-passed-fold[open]>summary{margin-bottom:9px}
.audit-passed-fold[open]>summary b{font-size:0}
.audit-passed-fold[open]>summary b:after{content:"⌃";font-size:14px}
.audit-passed-body{display:grid;gap:9px}
.audit-item.has-note .check-icon{background:rgba(217,154,18,.14)!important;color:#b07a00!important;font-style:italic;font-weight:900}
.audit-item.has-note{box-shadow:inset 3px 0 0 #d99a12}
.check-note-chip{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:rgba(217,154,18,.16);color:#8a5d00;font-size:10px;font-weight:900;font-style:normal;letter-spacing:.02em;vertical-align:2px}
html[data-theme="dark"] .check-note-chip{color:#f3c04f}

/* Groups that contain only a folded "passed" row stay slim. */
.audit-group:has(>.audit-list>.audit-passed-fold:only-child){padding-top:14px;padding-bottom:14px;margin-bottom:12px}
.audit-group:has(>.audit-list>.audit-passed-fold:only-child) .audit-group-head{margin-bottom:10px;padding-bottom:0;border-bottom:0}
.audit-group:has(>.audit-list>.audit-passed-fold:only-child) .audit-group-head p{display:none}

/* ---------- Sidebar: sticky, so the right column never leaves a hole ---------- */
@media(min-width:1051px){
  .audit-layout .report-sidebar{position:sticky;top:92px;align-self:start}
}

/* ---------- Badge band (moved out of the narrow sidebar) ---------- */
.report-badge-band.report-sidebar{margin-top:26px;width:100%}
.report-badge-band.report-sidebar .embed-badge{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:32px;row-gap:12px;align-items:start;margin:0;padding:22px 24px}
.report-badge-band.report-sidebar .embed-badge-intro{grid-column:1;grid-row:1}
.report-badge-band.report-sidebar .embed-badge-layout{grid-column:1;grid-row:2;flex-direction:row;flex-wrap:wrap;margin:0}
.report-badge-band.report-sidebar .embed-badge-choices{flex:1 1 230px;width:auto}
.report-badge-band.report-sidebar .embed-badge-preview{flex:1 1 210px;width:auto}
.report-badge-band.report-sidebar .embed-badge-code-label{grid-column:2;grid-row:1;align-self:end}
.report-badge-band.report-sidebar .embed-badge-code-row{grid-column:2;grid-row:2;align-self:start}
.report-badge-band.report-sidebar .embed-badge-footnote{grid-column:1 / -1;grid-row:3;margin:0}
@media(max-width:900px){
  .report-badge-band.report-sidebar .embed-badge{display:block;padding:16px}
  .report-badge-band.report-sidebar .embed-badge-layout{margin:15px 0}
}

/* ---------- Small screens ---------- */
@media(max-width:640px){
  .ai-seo-panel.is-clean{padding:18px 16px}
  .report-clean-head{gap:12px}
  .report-clean-icon{width:40px;height:40px;font-size:19px}
  .seo-change-quiet a{margin-left:0}
  .audit-toolbar{flex-wrap:wrap}
}
