/* ═══════════════════════════════════════════════════════════════════
   Review tools — /tools/<tool>/ (security review, cookie scan)
   Builds on assets/tools.css. The verdict and the "two views" comparison
   carry the page; everything else is quiet and readable.
   ═══════════════════════════════════════════════════════════════════ */

.mt-review .mt-wrap {
    max-width: 1080px;
}

/* the theme styles headings with its own face; the review keeps Mulish */
#mhp-tool.mt-review h2,
#mhp-tool.mt-review h3 {
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 0;
}

/* ── night band ─────────────────────────────────────────────────── */

.sr-hero.sr-compromised {
    background:
        radial-gradient(800px 320px at 10% 0%, rgba(52,211,240,.10), transparent 70%),
        radial-gradient(700px 340px at 95% 10%, rgba(200,16,46,.18), transparent 70%),
        var(--night);
}

.sr-hero h1 {
    max-width: none;
    overflow-wrap: anywhere;
}

.sr-when {
    margin: 0 0 30px;
    font-size: 15px;
    color: var(--night-muted);
}

.sr-verdict {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 26px;
    align-items: center;
    padding: 26px 28px;
    border-radius: 14px;
    background: rgba(52,211,153,.10);
    border: 1px solid rgba(52,211,153,.35);
}

.sr-verdict-word {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: #4ADE9B;
    max-width: 9em;
}

.sr-verdict p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: #dfe5f5;
    max-width: 62ch;
}

.sr-compromised .sr-verdict {
    background: rgba(200,16,46,.12);
    border-color: rgba(255,107,114,.35);
}

.sr-compromised .sr-verdict-word {
    color: #FF6B72;
}

.sr-suspicious .sr-verdict {
    background: rgba(251,191,87,.10);
    border-color: rgba(251,191,87,.38);
}

.sr-suspicious .sr-verdict-word {
    color: #FBBF57;
}

.sr-verdict-neutral {
    background: rgba(255,255,255,.05);
    border-color: var(--night-line);
}

.sr-verdict-neutral .sr-verdict-word {
    color: var(--night-ink);
    font-size: 28px;
}

.sr-checks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 22px;
    border-top: 1px solid var(--night-line);
}

.sr-check {
    padding: 16px 18px 0 0;
}

.sr-check + .sr-check {
    padding-left: 18px;
    border-left: 1px solid var(--night-line);
}

.sr-check p {
    margin: 0;
}

.sr-check .k {
    font-size: 13px;
    color: var(--night-muted);
    margin-bottom: 6px;
}

.sr-check .v {
    font-size: 17px;
    font-weight: 800;
    color: var(--night-ink);
}

.sr-check .v.bad { color: #FF6B72; }
.sr-check .v.warn { color: #FBBF57; }
.sr-check .v.ok { color: #4ADE9B; }

/* the form (no ?url= yet) */
.sr-form {
    display: flex;
    gap: 10px;
    max-width: 640px;
    margin-top: 6px;
}

.sr-form input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: var(--night-ink);
    font: inherit;
    font-size: 17px;
}

.sr-form input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(52,211,240,.22);
}

.sr-form button {
    height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #38D6F0 0%, #4C8DFF 100%);
    color: #06122B;
    font: inherit;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.sr-form-error {
    margin: 14px 0 0;
    color: #FF8A90;
    font-weight: 700;
}

.sr-form-note {
    margin: 14px 0 0;
    font-size: 14px;
    color: var(--night-muted);
}

/* ── sheet ──────────────────────────────────────────────────────── */

.sr-block {
    margin-bottom: 44px;
}

.sr-block h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.01em;
    color: var(--ink);
}

.sr-intro {
    margin: 0 0 18px;
    max-width: 70ch;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--soft);
}

.sr-intro a {
    color: var(--link) !important;
}

.sr-ok {
    margin: 0;
    padding: 16px 20px;
    border-radius: 12px;
    background: #EAF7F0;
    color: #12613F;
    font-weight: 700;
}

/* severity chip (same as the vulnerability database) */
.mt-review .sev {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--soft);
    white-space: nowrap;
}

.mt-review .sev b {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 24px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
}

.mt-review .sev-critical b { background: var(--sev-critical); }
.mt-review .sev-high b { background: var(--sev-high); }
.mt-review .sev-medium b { background: var(--sev-medium); color: #241800; }
.mt-review .sev-low b { background: var(--sev-low); }
.mt-review .sev.sev-critical > span { color: var(--sev-critical); }
.mt-review .sev.sev-high > span { color: #B23C0B; }

/* the two views */
.sr-views {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.sr-view {
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 20px 22px;
    min-width: 0;
}

.sr-view-bad {
    border-color: rgba(200,16,46,.45);
    box-shadow: 0 0 0 3px rgba(200,16,46,.07);
}

.sr-view-who {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 800;
    color: var(--soft);
}

.sr-view-bad .sr-view-who {
    color: var(--sev-critical);
}

.sr-view-title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 900;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.sr-view dl {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 6px 12px;
    margin: 0;
    font-size: 14.5px;
}

.sr-view dt {
    color: var(--soft);
}

.sr-view dd {
    margin: 0;
    min-width: 0;
    color: var(--ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.sr-view dd.bad {
    color: var(--sev-critical);
}

/* finding / exposure lists */
.sr-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: 12px;
}

.sr-list li {
    padding: 16px 22px;
    border-bottom: 1px solid var(--rule-soft);
}

.sr-list li:last-child {
    border-bottom: 0;
}

.sr-row-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sr-row-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}

.sr-list p {
    margin: 6px 0 0;
    font-size: 14.5px;
    line-height: 1.55;
}

.sr-how {
    display: block;
    margin-top: 2px;
    color: #12805C;
    font-weight: 700;
}

.sr-evidence {
    color: var(--soft);
    overflow-wrap: anywhere;
}

/* vulnerable components */
.sr-comp {
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
}

.sr-comp header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--rule-soft);
}

.sr-comp h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--ink);
}

.sr-comp-sub {
    margin: 3px 0 0;
    font-size: 14px;
    color: var(--soft);
}

.sr-comp-right {
    text-align: right;
}

.sr-counts {
    margin: 0;
    font-size: 13.5px;
}

.sr-cnt {
    margin-left: 10px;
    font-weight: 800;
}

.sr-cnt-critical { color: var(--sev-critical); }
.sr-cnt-high { color: #B23C0B; }
.sr-cnt-medium { color: #8a6100; }
.sr-cnt-low { color: var(--soft); }

.sr-fix {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 800;
    color: #12805C;
}

.sr-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sr-table td {
    padding: 11px 22px;
    border-bottom: 1px solid var(--rule-soft);
    vertical-align: top;
}

.sr-table tr:last-child td {
    border-bottom: 0;
}

.sr-table td:first-child { width: 130px; }
.sr-table td:nth-child(3) { width: 170px; }
.sr-table td:nth-child(4) { width: 150px; color: var(--soft); white-space: nowrap; }

.sr-table a {
    color: var(--link) !important;
    text-decoration: none;
}

.sr-vt {
    display: block;
    font-weight: 800;
    color: var(--ink);
}

.sr-vd {
    display: block;
    margin-top: 2px;
    font-size: 13.5px;
    color: var(--soft);
}

.sr-more {
    margin: 0;
    padding: 10px 22px 14px;
    font-size: 13.5px;
    color: var(--soft);
}

.sr-muted {
    color: var(--soft);
}

.sr-note {
    margin-top: 6px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #FFF8E6;
    border: 1px solid #F3E2B3;
    font-size: 14px;
    line-height: 1.55;
}

.sr-note p {
    margin: 0;
}

.sr-note p + p {
    margin-top: 8px;
}

/* what runs */
.sr-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sr-panel {
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 18px 22px;
    min-width: 0;
}

.sr-panel h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
    color: var(--soft);
}

.sr-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sr-panel li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--rule-soft);
    font-size: 14.5px;
}

.sr-panel li:last-child {
    border-bottom: 0;
}

.sr-panel li span {
    font-weight: 700;
    color: var(--ink);
}

.sr-panel li code {
    text-align: right;
    overflow-wrap: anywhere;
}

/* steps: a real sequence, so numbered */
.sr-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
}

.sr-steps > li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 10px;
}

.sr-steps > li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.sr-steps h3 {
    margin: 2px 0 4px;
    font-size: 16.5px;
    font-weight: 900;
    color: var(--ink);
}

.sr-steps p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
}

.sr-upd {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 28px;
    font-family: var(--mono);
    font-size: 13.5px;
    color: var(--ink);
}

.sr-upd li {
    padding: 3px 0;
    break-inside: avoid;
}

.mt-review .mt-cta {
    margin-top: 12px;
}

.sr-how-it-works code {
    color: var(--ink);
}

/* ── narrow ─────────────────────────────────────────────────────── */

@media (max-width: 920px) {
    .sr-verdict {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px;
    }

    .sr-verdict-word {
        font-size: 30px;
    }

    .sr-checks {
        grid-template-columns: 1fr 1fr;
    }

    .sr-check:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .sr-views,
    .sr-stack {
        grid-template-columns: 1fr;
    }

    .sr-view dl {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sr-view dd {
        margin-bottom: 8px;
    }

    .sr-comp header {
        flex-direction: column;
        gap: 8px;
    }

    .sr-comp-right {
        text-align: left;
    }

    .sr-cnt {
        margin: 0 10px 0 0;
    }

    /* each vulnerability becomes a short block */
    .sr-table table,
    .sr-table tbody,
    .sr-table tr,
    .sr-table td {
        display: block;
        width: auto !important;
    }

    .sr-table tr {
        padding: 12px 18px;
        border-bottom: 1px solid var(--rule-soft);
    }

    .sr-table tr:last-child {
        border-bottom: 0;
    }

    .sr-table td {
        padding: 2px 0;
        border: 0;
    }

    .sr-upd {
        columns: 1;
    }

    .sr-form {
        flex-direction: column;
    }

    /* in a column flex: 1 would take the inputs' height away */
    .sr-form input,
    .sr-again input {
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    .sr-checks {
        grid-template-columns: 1fr;
    }

    .sr-check + .sr-check {
        padding-left: 0;
        border-left: 0;
    }
}

/* ── progress while the scan runs ───────────────────────────────── */

.sr-progress {
    max-width: 640px;
    margin-top: 6px;
    padding: 22px 24px 20px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--night-line);
}

.sr-progress[hidden],
.sr-form[hidden],
.sr-form-error[hidden] {
    display: none;
}

.sr-progress-head {
    margin: 0 0 14px;
    font-size: 17px;
    color: var(--night-text);
}

.sr-progress-head strong {
    color: var(--night-ink);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.sr-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}

.sr-bar-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38D6F0 0%, #4C8DFF 100%);
    box-shadow: 0 0 14px rgba(52,211,240,.45);
    transition: width .35s ease-out;
}

.sr-stages {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.sr-stages li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: center;
    font-size: 15px;
    line-height: 1.4;
    transition: color .2s ease;
}

.sr-stages li.is-pending {
    color: rgba(166,180,214,.45);
}

.sr-stages li.is-active {
    color: var(--night-ink);
    font-weight: 700;
}

.sr-stages li.is-done {
    color: var(--night-text);
}

.sr-stage-mark {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(166,180,214,.3);
}

.is-active .sr-stage-mark {
    border-color: rgba(52,211,240,.25);
    border-top-color: var(--cyan);
    animation: sr-spin .8s linear infinite;
}

.is-done .sr-stage-mark {
    border-color: #4ADE9B;
    background: #4ADE9B;
}

.is-done .sr-stage-mark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #06122B;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sr-slow {
    margin: 16px 0 0;
    font-size: 14px;
    color: #FBBF57;
}

.sr-slow[hidden] {
    display: none;
}

@keyframes sr-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .is-active .sr-stage-mark {
        animation: none;
        border-color: var(--cyan);
    }
    .sr-bar-fill {
        transition: none;
    }
}

/* the review's heading takes focus for screen readers when it arrives; no ring for that */
#mhp-tool h1[tabindex="-1"]:focus {
    outline: none;
}

/* ── saved review: next check, scan time, share bar ─────────────── */

.sr-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.sr-topbar .mt-crumbs {
    margin-bottom: 0;
}

.sr-again {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 400px;
}

.sr-again input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.05);
    color: var(--night-ink);
    font: inherit;
    font-size: 15px;
}

.sr-again input::placeholder {
    color: var(--night-muted);
}

.sr-again input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(52,211,240,.22);
}

.sr-again button {
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #38D6F0 0%, #4C8DFF 100%);
    color: #06122B;
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.sr-notice {
    margin: 0 0 22px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(52,211,240,.3);
    background: rgba(52,211,240,.08);
    color: var(--night-ink);
    font-size: 15px;
    line-height: 1.5;
}

/* the scan time is part of the result: bright, not a footnote */
.sr-when time {
    color: var(--night-ink);
    font-weight: 800;
}

.sr-share {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px 18px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--night-line);
}

.sr-share-label {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--night-text);
}

.sr-share-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.sr-share-btn {
    height: 40px;
    padding: 0 16px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.2);
    background: transparent;
    color: var(--night-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.sr-share-btn:hover,
.sr-share-btn[aria-expanded="true"] {
    border-color: var(--cyan);
    background: rgba(52,211,240,.08);
}

.sr-share-btn:focus-visible,
.sr-again button:focus-visible,
.sr-email button:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}

.sr-share-status {
    font-size: 14px;
    font-weight: 700;
    color: #4ADE9B;
    overflow-wrap: anywhere;
}

.sr-share-status.is-bad {
    color: #FF8A90;
}

.sr-email {
    grid-column: 1 / -1;
    max-width: 560px;
}

.sr-email[hidden] {
    display: none;
}

.sr-email label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--night-text);
}

.sr-email-row {
    display: flex;
    gap: 8px;
}

.sr-email input[type=email] {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: var(--night-ink);
    font: inherit;
    font-size: 16px;
}

.sr-email input[type=email]:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(52,211,240,.22);
}

.sr-email button {
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #38D6F0 0%, #4C8DFF 100%);
    color: #06122B;
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.sr-email button[disabled] {
    opacity: .6;
    cursor: wait;
}

/* bots fill it, people never see it */
.sr-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.sr-email-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--night-muted);
}

@media (max-width: 920px) {
    .sr-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .sr-again {
        max-width: none;
    }

    .sr-share {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sr-email-row {
        flex-direction: column;
    }

    .sr-email input[type=email] {
        flex: 0 0 auto;
    }

    .sr-share-btn {
        flex: 1;
    }
}

/* Must-Have Captcha puts its honeypot (div.mhchp) into every form of an uncached page.
   Off screen and out of the flow, so it neither squeezes the fields nor stops working. */
.sr-form,
.sr-again,
.sr-email {
    position: relative;
}

.sr-form > :not(input):not(button),
.sr-again > :not(input):not(button),
.sr-email > :not(label):not(.sr-email-row):not(.sr-email-note),
.sr-email-row > :not(input):not(button) {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
