/* ═══════════════════════════════════════════════════════════════════
   MHP Tools — shared base for every tool page
   Fonts, tokens, the night band from the Must-Have Security landing,
   the light sheet, the CTA strip and the "About this data" block.
   Markup: <main id="mhp-tool" class="mt-<module>">, body.mhp-tool-page
   ═══════════════════════════════════════════════════════════════════ */


@font-face { font-family: Mulish; font-style: normal; font-weight: 400 900; font-display: swap;
    src: url(fonts/mulish-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Mulish; font-style: normal; font-weight: 400 900; font-display: swap;
    src: url(fonts/mulish-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

body.mhp-tool-page {
    background: #0A0F1F;
}

#mhp-tool {
    /* night (from the security landing) */
    --night: #0A0F1F;
    --night-2: #0D142A;
    --night-line: rgba(255,255,255,.09);
    --night-ink: #F3F6FF;
    --night-text: #A6B4D6;
    --night-muted: #7d8db5;
    --cyan: #34D3F0;

    /* sheet */
    --paper: #F5F7FA;
    --sheet: #FFFFFF;
    --rule: #E3E8EF;
    --rule-soft: #EEF2F6;
    --ink: #18203A;
    --text: #2A3140;
    --soft: #5B6678;
    --link: #2E6BF0;

    /* severity: the only colour on the sheet */
    --sev-critical: #C8102E;
    --sev-high: #D9480F;
    --sev-medium: #E8A200;
    --sev-low: #7C8AA5;
    --sev-unknown: #C3CBD8;

    --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

    font-family: Mulish, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

#mhp-tool *,
#mhp-tool *::before,
#mhp-tool *::after {
    box-sizing: border-box;
}

#mhp-tool a {
    color: inherit;
}

#mhp-tool code {
    font-family: var(--mono);
    font-size: .86em;
    background: none;
    padding: 0;
}

.mt-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}


#mhp-tool a:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 2px;
}

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

.mt-hero {
    position: relative;
    background:
        radial-gradient(900px 380px at 12% 0%, rgba(52,211,240,.10), transparent 70%),
        radial-gradient(700px 360px at 92% 20%, rgba(76,141,255,.12), transparent 70%),
        var(--night);
    color: var(--night-text);
    padding: 56px 0 64px;
    border-bottom: 1px solid var(--night-line);
}

.mt-crumbs {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--night-muted);
    margin-bottom: 22px;
}

.mt-crumbs a {
    color: var(--night-text);
    text-decoration: none;
}

.mt-crumbs a:hover {
    color: var(--night-ink);
}

.mt-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5.2vw, 60px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -.025em;
    color: var(--night-ink);
    max-width: 20ch;
}

.mt-lede {
    margin: 0 0 40px;
    max-width: 62ch;
    font-size: clamp(17px, 1.6vw, 19px);
    line-height: 1.6;
}

.mt-lede strong {
    color: var(--night-ink);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

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

.mt-sheet {
    background: var(--paper);
    padding: 36px 0 72px;
}

/* CTA: a slice of the night band */
.mt-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 56px;
    padding: 30px 34px;
    border-radius: 14px;
    background:
        radial-gradient(520px 200px at 0% 0%, rgba(52,211,240,.14), transparent 70%),
        var(--night);
    color: var(--night-text);
}

.mt-cta h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.01em;
    color: var(--night-ink);
}

.mt-cta p {
    margin: 0;
    max-width: 64ch;
    line-height: 1.6;
}

.mt-cta-button {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, #38D6F0 0%, #4C8DFF 100%);
    color: #06122B !important;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.mt-cta-button:hover {
    filter: brightness(1.06);
}

/* About */
.mt-about {
    margin-top: 56px;
    max-width: 820px;
}

.mt-about h2 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 900;
    color: var(--ink);
}

.mt-about dl {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 14px 28px;
    margin: 0;
}

.mt-about dt {
    font-weight: 800;
    color: var(--ink);
}

.mt-about dd {
    margin: 0;
    line-height: 1.65;
}

.mt-about a,
.mt-legal a {
    color: var(--link) !important;
}

.mt-legal {
    margin: 26px 0 0;
    font-size: 13px;
    color: var(--soft);
}

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

@media (max-width: 920px) {
    .mt-wrap {
        padding: 0 16px;
    }

    .mt-hero {
        padding: 34px 0 40px;
    }

    .mt-lede {
        margin-bottom: 28px;
    }

    .mt-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
        gap: 18px;
    }

    .mt-cta-button {
        white-space: normal;
        height: auto;
        min-height: 48px;
        padding: 12px 18px;
    }

    .mt-about dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mt-about dd {
        margin-bottom: 12px;
    }
}

/* ── /tools/: one field for both scans, then a row per tool ─────── */

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

#mhp-tool.mt-hub h2 {
    font-family: inherit;
    text-transform: none;
    letter-spacing: -.01em;
    margin: 0 0 8px;
}

.mt-check {
    position: relative;
    max-width: 760px;
}

.mt-check label {
    display: block;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--night-ink);
}

.mt-check-row {
    display: flex;
    gap: 10px;
}

.mt-check input {
    flex: 1;
    min-width: 0;
    height: 56px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: var(--night-ink);
    font: inherit;
    font-size: 18px;
}

.mt-check input::placeholder {
    color: var(--night-muted);
}

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

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

.mt-check button.is-quiet {
    background: transparent;
    border: 1px solid rgba(255,255,255,.26);
    color: var(--night-ink);
}

.mt-check button:hover {
    filter: brightness(1.07);
}

.mt-check button.is-quiet:hover {
    border-color: var(--cyan);
}

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

/* Must-Have Captcha puts a honeypot into every form: off screen, out of the row */
.mt-check > :not(label):not(.mt-check-row),
.mt-check-row > :not(input):not(button),
.mt-tools-search > :not(input):not(button):not(label) {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* the tools: icon, what it is, what it finds, how to start */
.mt-tools {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule);
}

.mt-tools > li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1.25fr) minmax(0, 1fr) 260px;
    gap: 8px 28px;
    align-items: start;
    padding: 32px 0;
    border-bottom: 1px solid var(--rule);
}

.mt-tools-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--night);
}

.mt-tools-icon svg {
    width: 27px;
    height: 27px;
}

.mt-tools h2 {
    font-size: 23px;
    font-weight: 900;
    line-height: 1.2;
}

#mhp-tool .mt-tools h2 a {
    color: var(--ink);
    text-decoration: none;
}

#mhp-tool .mt-tools h2 a:hover {
    color: var(--link);
}

.mt-tools-about p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--soft);
}

.mt-tools-finds {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}

.mt-tools-finds li {
    position: relative;
    padding: 0 0 8px 18px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text);
}

.mt-tools-finds li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: .55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38D6F0, #4C8DFF);
}

.mt-tools-act {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 260px;
}

.mt-tools-go {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 20px;
    border-radius: 10px;
    background: var(--night);
    color: var(--night-ink) !important;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.mt-tools-go:hover {
    background: #16203f;
}

.mt-tools-search {
    display: flex;
    gap: 6px;
}

.mt-tools-search input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--rule);
    background: var(--sheet);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
}

.mt-tools-search input:focus {
    outline: none;
    border-color: var(--link);
    box-shadow: 0 0 0 3px rgba(46,107,240,.15);
}

.mt-tools-search button {
    height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--night);
    color: var(--night-ink);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.mt-check button:focus-visible,
.mt-tools-search button:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 2px;
}

@media (max-width: 980px) {
    .mt-tools > li {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .mt-tools-finds,
    .mt-tools-act {
        grid-column: 2;
    }

    .mt-tools-act {
        justify-self: start;
        margin-top: 6px;
    }
}

@media (max-width: 700px) {
    .mt-check-row {
        flex-direction: column;
    }

    .mt-check input {
        flex: 0 0 auto;
    }

    .mt-tools > li {
        grid-template-columns: minmax(0, 1fr);
        padding: 26px 0;
    }

    .mt-tools-finds,
    .mt-tools-act {
        grid-column: 1;
    }

    .mt-tools-act {
        max-width: none;
    }
}
