/* Screen: Your results (.res-). The free win, then every check in three groups that get
   quieter as they go: worth handling soon, fine for now, already in good shape. */

.res { display: flex; flex-direction: column; gap: 24px; }
.res-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
.res-head p { margin-top: 6px; color: var(--muted); text-wrap: pretty; }
/* Phones: the score is below the findings, so one line under the heading names it and jumps there. */
.res-jump { display: none; }
@media (max-width: 900px) {
  .res-jump {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 14px; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
    color: var(--text); font-size: var(--fs-md); text-decoration: none;
  }
  .res-jump strong { color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; }
  .res-jump__go { margin-left: auto; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
}

.res-mono {
  display: block; padding: 8px 11px; border-radius: var(--radius-sm);
  background: #F5F6F3; border: 1px solid var(--line);
  font: 12px/1.55 var(--mono); color: var(--ink);
  overflow-wrap: break-word;
}
.res-mono span { display: inline-block; max-width: 100%; }

/* ---------- The free win ---------- */

.res-win {
  padding: 18px 20px 16px;
  border: 1px solid #D3E3D8; border-radius: var(--radius);
  background: linear-gradient(180deg, #F1F7F2 0%, #F8FBF8 100%);
}
.res-win__label { font-size: var(--fs-xs); font-weight: 600; color: var(--green); letter-spacing: .01em; }
.res-win__title { margin-top: 4px; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.015em; }
.res-win__lede { margin-top: 6px; font-size: var(--fs-sm); line-height: 1.55; color: var(--text); text-wrap: pretty; }
.res-win__record { margin-top: 14px; padding: 10px 12px; background: var(--surface); border-color: #D3E3D8; }
.res-ico { width: 15px; height: 15px; flex: none; }

/* Two ways to act on the free fix: copy the record, or preview a note to send. */
.res-win__rec { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; margin-top: 14px; }
.res-win__rec-label { grid-column: 1 / -1; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.res-win__rec .res-win__record { margin-top: 0; }
.res-win__copy { gap: 6px; min-height: 34px; padding: 4px 14px; background: var(--surface); white-space: nowrap; }

.res-win__mail { margin-top: 12px; border: 1px solid #D3E3D8; border-radius: var(--radius-sm); background: var(--surface); }
.res-win__mail > summary {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none;
}
.res-win__mail > summary::-webkit-details-marker { display: none; }
.res-win__mail > summary > span { flex: 1; display: grid; }
.res-win__mail > summary strong { color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.res-win__mail > summary span span { font-size: var(--fs-xs); color: var(--muted); }
.res-win__mail > summary .res-ico--mail { width: 18px; height: 18px; color: var(--green); }
.res-win__mail > summary:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.res-win__mail[open] > summary { border-bottom: 1px solid var(--line); }
.res-win__mail[open] > summary .res-row__chev { transform: rotate(180deg); }

/* The note, shown as a small email before it's copied. */
.res-mail { padding: 12px 14px 14px; }
.res-mail__meta { display: flex; gap: 10px; margin: 0 0 4px; font-size: var(--fs-xs); color: var(--text); }
.res-mail__meta span { flex: none; width: 52px; color: var(--muted); }
.res-mail__body { margin: 10px 0 12px; padding: 12px 14px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.55; color: var(--ink); }
.res-mail__body p { margin: 0 0 8px; }
.res-mail__body p:last-child { margin-bottom: 0; }
.res-mail__line { display: block; font: 12px/1.6 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.res-mail__line:last-of-type { margin-bottom: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .res-win__mail[open] .res-mail { animation: rise .25s ease both; }
}

/* ---------- The three groups ---------- */

.res-group__head {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px;
  font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em;
}
.res-group__head span {
  display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px;
  border-radius: var(--radius-pill); background: var(--tint);
  font-size: var(--fs-xs); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums;
}
.res-group--soon .res-group__head span { background: var(--gold-soft); color: var(--gold-text); }
.res-group--good .res-group__head span { background: var(--green-soft); color: var(--green); }

.res-list { overflow: hidden; }
.res-row + .res-row { border-top: 1px solid var(--line); }

.res-row__sum {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) 12px; gap: 12px; align-items: start;
  padding: 12px 16px; cursor: pointer; list-style: none;
  transition: background-color .15s;
}
.res-row__sum::-webkit-details-marker { display: none; }
.res-row__sum:hover { background: var(--soft); }
.res-row__sum:focus-visible { outline-offset: -2px; border-radius: var(--radius-sm); }
.res-row__sum > .ico { width: 18px; height: 18px; margin-top: 1px; }
.res-row__title { color: var(--ink); font-weight: 600; line-height: 1.4; text-wrap: pretty; }
.res-row__chev { width: 12px; height: 12px; margin-top: 5px; color: var(--faint); transition: transform .2s; }
.res-row[open] > summary .res-row__chev { transform: rotate(180deg); }

.res-row__body { padding: 2px 16px 16px 46px; animation: rise .25s ease both; }
.res-row__body h3 { margin: 12px 0 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.res-row__body .res-row__meta + h3 { margin-top: 10px; }
.res-row__body p { font-size: var(--fs-sm); line-height: 1.55; color: var(--text); text-wrap: pretty; }
.res-row__body .res-row__meta { font-size: var(--fs-xs); color: var(--muted); }
.res-row__body .res-mono { font-size: 11.5px; }

/* Fine for now and Already in good shape: each folds into one calm line until opened. */
.res-fold { overflow: hidden; }
.res-fold__sum {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; cursor: pointer; list-style: none;
  font-size: var(--fs-md); color: var(--muted); transition: background-color .15s;
}
.res-fold__sum::-webkit-details-marker { display: none; }
.res-fold__sum:hover { background: var(--soft); }
.res-fold__sum:focus-visible { outline-offset: -2px; border-radius: var(--radius); }
.res-fold__sum strong { color: var(--ink); font-weight: 600; }
.res-fold__sum .res-row__chev { flex: none; margin-top: 0; }
.res-fold[open] > .res-fold__sum { border-bottom: 1px solid var(--line); }
.res-fold[open] > .res-fold__sum .res-row__chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: no-preference) {
  .res-fold[open] > .res-list { animation: rise .25s ease both; }
}
.res-fold + .res-fold { margin-top: -12px; }

/* Within a fold the rows are a step quieter. */
.res-fold .res-row__sum { padding-block: 10px; }
.res-fold .res-row__sum > .ico { width: 16px; height: 16px; margin: 2px 1px 0; }
.res-fold .res-row__title { font-weight: 500; font-size: var(--fs-sm); line-height: 1.5; }
.res-group--later .res-row__sum > .ico { opacity: .75; }
.res-group--good .res-row__title { color: var(--text); }

/* ---------- Close ---------- */

.res-sample { font-size: var(--fs-xs); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.res-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: -4px; }

@media (max-width: 480px) {
  .res-win { padding-inline: 16px; }
  .res-row__body { padding-left: 16px; }
}

/* Severity pill under the title of each item worth handling soon. */
.res-row__sev { display: block; margin-top: 5px; }

/* ---------- Tabs: Findings / What we checked ---------- */

.res-tabs {
  display: flex; gap: 4px; padding: 4px; width: fit-content; max-width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--tint);
}
.res-tab {
  padding: 6px 16px; border: 0; border-radius: var(--radius-pill); background: transparent;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text); white-space: nowrap;
}
.res-tab:hover { color: var(--ink); }
.res-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(44, 51, 64, .1); }
.res-panel { display: grid; gap: inherit; }
.res-panel[hidden] { display: none; }

/* How a single finding was checked, at the foot of its row. */
.res-row__std { margin-top: 4px; font-size: var(--fs-xs) !important; color: var(--muted) !important; }
.res-row__std span { font-weight: 600; margin-right: 4px; }

/* ---------- What we checked ---------- */

.how { display: grid; gap: 22px; }
.how-lede { font-size: var(--fs-sm); line-height: 1.6; color: var(--text); text-wrap: pretty; }

.how-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.how-stat {
  display: grid; gap: 2px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.how-stat strong { font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.how-stat span { font-size: var(--fs-xs); color: var(--muted); }

.how-sec { display: grid; gap: 8px; }
.how-sec__head { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.how-sec__lede { font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.how-sec__foot { font-size: var(--fs-xs); color: var(--muted); }

.how-list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.how-list > li { padding: 12px 16px; }
.how-list > li + li { border-top: 1px solid var(--line); }

.how-form__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--ink); }
.how-form__title strong { font-weight: 600; }
.how-form__dest { margin-top: 2px; font-size: var(--fs-sm); color: var(--text); }
.how-path { font: 12px/1.5 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.how-host { font: 11.5px/1.5 var(--mono); color: var(--muted); margin-left: 4px; }
.how-dim { font-size: var(--fs-xs); color: var(--muted); }

.how-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.how-tag {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 500; line-height: 1.6; background: var(--tint-soft); color: var(--text);
}
.how-tag--ok { background: var(--green-soft); color: var(--green); }
.how-tag--warn { background: var(--gold-soft); color: var(--gold-text); }

.how-domain__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ink); }
.how-domain__name strong { font-weight: 600; overflow-wrap: anywhere; }
.how-domain .how-tags { margin-top: 6px; }

.how-pages > li { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 10px 16px; }
.how-status { font: 12px/1.5 var(--mono); color: var(--muted); }

.how-cat { overflow: hidden; }
.how-cat + .how-cat { margin-top: 8px; }
.how-cat > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; cursor: pointer; list-style: none; font-size: var(--fs-sm); color: var(--muted);
}
.how-cat > summary::-webkit-details-marker { display: none; }
.how-cat > summary strong { color: var(--ink); font-weight: 600; }
.how-cat > summary:hover { background: var(--soft); }
.how-cat > summary:focus-visible { outline-offset: -2px; border-radius: var(--radius); }
.how-cat[open] > summary { border-bottom: 1px solid var(--line); }
.how-cat[open] > summary .res-row__chev { transform: rotate(180deg); }
.how-checks { list-style: none; margin: 0; padding: 4px 0; }
.how-check { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding: 10px 16px; }
.how-check + .how-check { border-top: 1px solid var(--line); }
.how-check__ico .ico { width: 16px; height: 16px; margin-top: 2px; }
.how-check__label { font-weight: 600; color: var(--ink); font-size: var(--fs-sm); }
.how-check__how { margin-top: 2px; font-size: var(--fs-sm); line-height: 1.5; color: var(--text); text-wrap: pretty; }
.how-check__std { margin-top: 3px; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.how-check__std span, .how-sources strong { font-weight: 600; }

.how-skipped { margin: 0; padding-left: 18px; font-size: var(--fs-sm); color: var(--text); }
.how-skipped li + li { margin-top: 4px; }
.how-sources { font-size: var(--fs-xs); line-height: 1.6; color: var(--muted); }

@media (max-width: 720px) {
  .how-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-pages > li { grid-template-columns: minmax(0, 1fr) auto; }
  .how-pages .how-dim { grid-column: 1 / -1; grid-row: 2; }
}






/* Outside view beside the estimate, kept in view while they answer. */
























/* ---------- What your site runs on ---------- */

.stack { padding: 14px 18px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.stack__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.stack__head h2 { margin: 0; font-size: var(--fs-md); font-weight: 650; }
.stack__head span { font-size: var(--fs-xs); color: var(--muted); }
.stack__list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.stack__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.stack__row dt { font-size: var(--fs-xs); color: var(--muted); }
.stack__row dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.stack__item { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12.5px/1.45 var(--mono); color: var(--ink); cursor: help; }
.stack__item em { margin-left: 6px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--green-soft); color: var(--green); font: normal 600 10.5px/1.7 var(--font); }
.stack__how { margin-top: 8px; }
.stack__how summary { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.stack__how summary::-webkit-details-marker { display: none; }
.stack__how[open] .res-row__chev { transform: rotate(180deg); }
.stack__how ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.stack__how li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; font-size: var(--fs-xs); }
.stack__how code { font: 11.5px/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 1180px) { .stack__list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .stack__how li { grid-template-columns: 1fr; gap: 0; } }

/* Published issues behind a plugin or theme finding. */
.res-issues { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-sm); }
.res-issues strong { font-family: var(--mono); font-size: 12.5px; }
.res-issues__rate { padding: 0 6px; border-radius: var(--radius-pill); background: var(--gold-soft); color: var(--gold-text); font-size: 11px; font-weight: 600; }
.res-issues__credit { margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
.res-issues__cve { font: 11.5px/1 var(--mono); color: var(--muted); }
.res-issues__kev { padding: 0 6px; border-radius: var(--radius-pill); background: #FBE9E4; color: #9A3B22; font-size: 11px; font-weight: 600; }

/* A row we couldn't fill: same height as the rest, quiet, never an error color. */
.stack__unknown { font-size: 12.5px; font-style: italic; color: var(--muted); cursor: help; }
.stack__why { font-family: var(--font); font-style: italic; }

/* The homepage didn't load: one calm, plain box above the summary. */
.res-blocked { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--gold); border-radius: 0; background: var(--gold-soft); color: var(--text); font-size: var(--fs-sm); line-height: 1.55; }
.res-blocked strong { color: var(--ink); }






/* What your site runs on, folded to one line until opened. */
.stack__sum { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; }
.stack__sum::-webkit-details-marker { display: none; }
.stack__sum .stack__head { flex: 1; min-width: 0; margin: 0; flex-direction: column; align-items: flex-start; gap: 2px; }
.stack__line { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12.5px/1.5 var(--mono) !important; color: var(--ink) !important; }
.stack[open] .stack__sum .res-row__chev { transform: rotate(180deg); }
.stack[open] .stack__line { display: none; }
.stack__note { margin: 6px 0 8px; font-size: var(--fs-xs); color: var(--muted); }






























/* The check didn't finish: one calm card, Try again, and the rest still works. */
.res-none { display: grid; gap: 12px; padding: 20px 22px 22px; }
.res-none h2 { font-size: var(--fs-lg); font-weight: 650; }
.res-none p { line-height: 1.6; text-wrap: pretty; }
.res-none__status:empty { display: none; }
.res-none__status { font-size: var(--fs-sm); color: var(--muted); }
.res-none__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }

/* The one quiet way to ask for the findings in writing. */
.res-report { margin-top: 18px; font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.res-report a { color: var(--ink); }
