.wolfyx-hsh {
    --wx-ink: #101828;
    --wx-muted: #667085;
    --wx-line: #e4e7ec;
    --wx-white: #ffffff;

    --wx-coral: #f25f54;
    --wx-coral-dark: #d94f46;
    --wx-coral-soft: #fff8f6;

    --wx-green: #067647;
    --wx-green-soft: #ecfdf3;

    --wx-yellow: #b54708;
    --wx-yellow-soft: #fffaeb;

    --wx-red: #b42318;
    --wx-red-soft: #fef3f2;

    --wx-blue: #1d4ed8;
    --wx-blue-soft: #eff6ff;

    --wx-radius: 18px;
    --wx-radius-lg: 24px;

    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 24px 84px;

    color: var(--wx-ink);
}

.wolfyx-hsh *,
.wolfyx-hsh *::before,
.wolfyx-hsh *::after {
    box-sizing: border-box;
}


/* =========================================================
   HERO
   ========================================================= */

.wolfyx-hsh-hero {
    max-width: 860px;
    margin: 0 auto 46px;
    text-align: center;
}

.wolfyx-hsh-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0 0 18px;
    padding: 7px 13px;

    border: 1px solid #f5d4cd;
    border-radius: 999px;

    background: #fff8f6;
    color: var(--wx-coral-dark);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    line-height: 1.2;
    text-transform: uppercase;
}

.wolfyx-hsh-hero h1 {
    margin: 0;

    color: var(--wx-ink);

    font-size: clamp(42px, 5.3vw, 64px);
    font-weight: 750;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.wolfyx-hsh-hero h1 span {
    color: var(--wx-coral);
}

.wolfyx-hsh-hero > p:last-child {
    max-width: 720px;
    margin: 20px auto 0;

    color: var(--wx-muted);

    font-size: 17px;
    line-height: 1.72;
}


/* =========================================================
   INPUT PANEL
   ========================================================= */

.wolfyx-hsh-panel {
    position: relative;

    padding: 30px;

    border: 1px solid var(--wx-line);
    border-radius: var(--wx-radius-lg);

    background: var(--wx-white);

    box-shadow:
        0 22px 60px rgba(16, 24, 40, .07),
        0 2px 6px rgba(16, 24, 40, .03);
}

.wolfyx-hsh-label {
    display: block;

    margin: 0 0 9px;

    color: var(--wx-ink);

    font-size: 14px;
    font-weight: 700;
}

.wolfyx-hsh-input {
    display: block;

    width: 100%;
    height: 58px;

    padding: 0 18px;

    border: 1px solid #d7dbe2;
    border-radius: 14px;

    outline: none;

    background: #fbfcfd;
    color: var(--wx-ink);

    font: inherit;
    font-size: 15px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.wolfyx-hsh-input::placeholder {
    color: #a4aab4;
}

.wolfyx-hsh-input:hover {
    border-color: #c7cbd3;
}

.wolfyx-hsh-input:focus {
    border-color: var(--wx-coral);
    background: #fff;

    box-shadow:
        0 0 0 4px rgba(237, 115, 94, .10);
}

.wolfyx-hsh-hint {
    margin: 9px 2px 0;

    color: var(--wx-muted);

    font-size: 12px;
    line-height: 1.5;
}

.wolfyx-hsh-hint strong {
    color: #475467;
}


/* =========================================================
   SECURITY NOTICE
   ========================================================= */

.wolfyx-hsh-safe {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 18px;
    padding: 14px 16px;

    border: 1px solid #edf0f3;
    border-radius: 13px;

    background: #f8f9fb;
    color: #667085;

    font-size: 12.5px;
    line-height: 1.55;
}

.wolfyx-hsh-safe strong {
    flex: 0 0 auto;

    color: #344054;
    font-weight: 700;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.wolfyx-hsh-actions {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: nowrap;
    width: 100%;

    margin-top: 21px;
}

.wolfyx-hsh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 45px;
    padding: 0 19px;

    border: 0;
    border-radius: 11px;

    appearance: none;
    cursor: pointer;

    font: inherit;
    font-size: 13px;
    font-weight: 750;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease,
        opacity .15s ease;
}

.wolfyx-hsh-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.wolfyx-hsh-button:active:not(:disabled) {
    transform: translateY(0);
}

.wolfyx-hsh-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.wolfyx-hsh-primary,
.wolfyx-hsh-print {
    color: #fff;
    background: #f25f54;

    box-shadow:
        0 6px 16px rgba(242, 95, 84, .18);
}

.wolfyx-hsh-primary:hover:not(:disabled),
.wolfyx-hsh-print:hover:not(:disabled) {
    background: #e9554b;

    box-shadow:
        0 8px 20px rgba(242, 95, 84, .22);
}

.wolfyx-hsh-secondary {
    border: 1px solid #e3e6eb;

    background: #f8f9fb;
    color: #475467;
}

.wolfyx-hsh-secondary:hover:not(:disabled) {
    background: #f1f3f5;
}

.wolfyx-hsh-print {
    margin-left: auto;
}

.wolfyx-hsh-print[hidden] {
    display: none !important;
}


/* =========================================================
   STATUS
   ========================================================= */

#wolfyx-hsh-status {
    display: none;

    margin-top: 18px;
    padding: 13px 15px;

    border-radius: 12px;

    font-size: 13px;
    line-height: 1.5;
}

#wolfyx-hsh-status.is-visible {
    display: block;
}

#wolfyx-hsh-status.is-loading {
    border: 1px solid #dbeafe;
    background: var(--wx-blue-soft);
    color: #1e40af;
}

#wolfyx-hsh-status.is-success {
    border: 1px solid #abefc6;
    background: var(--wx-green-soft);
    color: var(--wx-green);
}

#wolfyx-hsh-status.is-error {
    border: 1px solid #fecdca;
    background: var(--wx-red-soft);
    color: var(--wx-red);
}


/* =========================================================
   RESULTS
   ========================================================= */

#wolfyx-hsh-results {
    display: none;

    margin-top: 34px;
}

#wolfyx-hsh-results.is-visible {
    display: block;
}


/* =========================================================
   REPORT HEADER
   ========================================================= */

.wolfyx-hsh-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
}

.wolfyx-hsh-report-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wolfyx-hsh-report-logo {
    display: none;

    width: 150px;
    height: auto;
}

.wolfyx-hsh-report-header h2 {
    margin: 0 0 4px;

    color: var(--wx-ink);

    font-size: 25px;
    line-height: 1.2;
}

.wolfyx-hsh-report-header p {
    margin: 0;

    color: var(--wx-muted);

    font-size: 13px;
}


/* =========================================================
   BADGES
   ========================================================= */

.wolfyx-hsh-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 29px;

    padding: 5px 10px;

    border: 1px solid #e4e7ec;
    border-radius: 999px;

    background: #f9fafb;
    color: #475467;

    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
}

.wolfyx-hsh-badge.pass {
    border-color: #abefc6;
    background: var(--wx-green-soft);
    color: var(--wx-green);
}

.wolfyx-hsh-badge.warning {
    border-color: #fedf89;
    background: var(--wx-yellow-soft);
    color: var(--wx-yellow);
}

.wolfyx-hsh-badge.critical {
    border-color: #fecdca;
    background: var(--wx-red-soft);
    color: var(--wx-red);
}

.wolfyx-hsh-badge.info {
    border-color: #bfdbfe;
    background: var(--wx-blue-soft);
    color: var(--wx-blue);
}


/* =========================================================
   REPORT METADATA
   ========================================================= */

.wolfyx-hsh-report-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;

    margin-bottom: 18px;
}

.wolfyx-hsh-report-meta > div {
    min-width: 0;

    padding: 15px 16px;

    border: 1px solid var(--wx-line);
    border-radius: 14px;

    background: #fbfcfd;
}

.wolfyx-hsh-report-meta span {
    display: block;

    margin-bottom: 5px;

    color: var(--wx-muted);

    font-size: 10px;
    font-weight: 750;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.wolfyx-hsh-report-meta strong {
    display: block;

    overflow-wrap: anywhere;

    color: var(--wx-ink);

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   RESULT GRID / CARDS
   ========================================================= */

.wolfyx-hsh-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wolfyx-hsh-card {
    min-width: 0;

    padding: 23px;

    border: 1px solid var(--wx-line);
    border-radius: var(--wx-radius);

    background: var(--wx-white);

    box-shadow:
        0 8px 28px rgba(16, 24, 40, .04);
}

.wolfyx-hsh-card-full {
    grid-column: 1 / -1;
}

.wolfyx-hsh-card h3 {
    margin: 0 0 16px;

    color: var(--wx-ink);

    font-size: 16px;
    font-weight: 750;
    line-height: 1.3;
}

.wolfyx-hsh-row {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 16px;

    min-height: 45px;
    padding: 11px 0;

    border-bottom: 1px solid #f0f1f3;
}

.wolfyx-hsh-row:last-child {
    border-bottom: 0;
}

.wolfyx-hsh-key {
    color: var(--wx-muted);

    font-size: 13px;
}

.wolfyx-hsh-value {
    min-width: 0;

    overflow-wrap: anywhere;

    color: var(--wx-ink);

    font-size: 13px;
    font-weight: 650;
}


/* =========================================================
   SECURITY CONTROLS
   ========================================================= */

.wolfyx-hsh-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wolfyx-hsh-control {
    min-width: 0;

    padding: 16px;

    border: 1px solid #e7e9ed;
    border-radius: 14px;

    background: #fbfcfd;
}

.wolfyx-hsh-control-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 10px;
}

.wolfyx-hsh-control-title {
    color: var(--wx-ink);

    font-size: 13px;
    font-weight: 750;
}

.wolfyx-hsh-control-value {
    margin-top: 8px;

    overflow-wrap: anywhere;
    word-break: break-word;

    color: #475467;

    font-size: 12px;
    line-height: 1.55;
}

.wolfyx-hsh-control-details {
    margin-top: 8px;

    color: var(--wx-muted);

    font-size: 11.5px;
    line-height: 1.55;
}


/* =========================================================
   COOKIES / DISCLOSURE
   ========================================================= */

.wolfyx-hsh-item {
    padding: 15px 0;

    border-bottom: 1px solid #f0f1f3;
}

.wolfyx-hsh-item:first-child {
    padding-top: 0;
}

.wolfyx-hsh-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.wolfyx-hsh-item-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 7px;

    color: var(--wx-ink);

    font-size: 13px;
    font-weight: 750;
}

.wolfyx-hsh-item p {
    margin: 4px 0 0;

    overflow-wrap: anywhere;

    color: var(--wx-muted);

    font-size: 12px;
    line-height: 1.55;
}

.wolfyx-hsh-empty {
    margin: 0;

    color: var(--wx-muted);

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   FINDINGS
   ========================================================= */

.wolfyx-hsh-finding {
    margin-bottom: 12px;
    padding: 16px;

    border: 1px solid #e7e9ed;
    border-radius: 14px;

    background: #fbfcfd;
}

.wolfyx-hsh-finding:last-child {
    margin-bottom: 0;
}

.wolfyx-hsh-finding-title {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;

    margin-bottom: 7px;

    color: var(--wx-ink);

    font-size: 13px;
    font-weight: 750;
}

.wolfyx-hsh-finding p {
    margin: 5px 0 0;

    color: var(--wx-muted);

    font-size: 12px;
    line-height: 1.6;
}

.wolfyx-hsh-finding strong {
    color: #475467;
}


/* =========================================================
   FOOTER NOTE
   ========================================================= */

.wolfyx-hsh-footer-note {
    max-width: 920px;

    margin: 20px auto 0;

    color: var(--wx-muted);

    font-size: 11px;
    line-height: 1.6;
}

.wolfyx-hsh-footer-note strong {
    color: #475467;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .wolfyx-hsh {
        padding: 38px 18px 64px;
    }

    .wolfyx-hsh-hero {
        margin-bottom: 32px;
    }

    .wolfyx-hsh-hero h1 {
        font-size: clamp(38px, 10vw, 52px);
    }

    .wolfyx-hsh-panel {
        padding: 22px;
    }

    .wolfyx-hsh-report-meta,
    .wolfyx-hsh-grid,
    .wolfyx-hsh-controls {
        grid-template-columns: 1fr;
    }

    .wolfyx-hsh-card-full {
        grid-column: auto;
    }
}


@media (max-width: 520px) {

    .wolfyx-hsh {
        padding-left: 14px;
        padding-right: 14px;
    }

    .wolfyx-hsh-hero h1 {
        font-size: 38px;
    }

    .wolfyx-hsh-hero > p:last-child {
        font-size: 15px;
    }

    .wolfyx-hsh-panel {
        padding: 18px;
        border-radius: 18px;
    }

    .wolfyx-hsh-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .wolfyx-hsh-print {
        margin-left: 0;
    }

    .wolfyx-hsh-button {
        width: 100%;
    }

    .wolfyx-hsh-report-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .wolfyx-hsh-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}


/* =========================================================
   FINDING SEVERITY PALETTE
   ========================================================= */

/* INFO — neutral light gray */
.wolfyx-hsh-finding.severity-info {
    border-color: #e4e7ec;
    background: #f8f9fb;
}

.wolfyx-hsh-finding.severity-info .wolfyx-hsh-badge {
    border-color: #d0d5dd;
    background: #f2f4f7;
    color: #475467;
}


/* LOW — light blue */
.wolfyx-hsh-finding.severity-low {
    border-color: #b2ddff;
    background: #eff8ff;
}

.wolfyx-hsh-finding.severity-low .wolfyx-hsh-badge {
    border-color: #84caff;
    background: #dff2fe;
    color: #175cd3;
}


/* MEDIUM — light yellow / orange */
.wolfyx-hsh-finding.severity-medium {
    border-color: #fedf89;
    background: #fffaeb;
}

.wolfyx-hsh-finding.severity-medium .wolfyx-hsh-badge {
    border-color: #fec84b;
    background: #fef0c7;
    color: #b54708;
}


/* HIGH — light red */
.wolfyx-hsh-finding.severity-high {
    border-color: #fecdca;
    background: #fef3f2;
}

.wolfyx-hsh-finding.severity-high .wolfyx-hsh-badge {
    border-color: #fda29b;
    background: #fee4e2;
    color: #b42318;
}


/* CRITICAL — stronger red */
.wolfyx-hsh-finding.severity-critical {
    border-color: #f97066;
    background: #fee4e2;

    box-shadow:
        inset 4px 0 0 #d92d20;
}

.wolfyx-hsh-finding.severity-critical .wolfyx-hsh-badge {
    border-color: #f97066;
    background: #fecdca;
    color: #912018;
}


/* Finding evidence context */
.wolfyx-hsh-evaluated-headers {
    margin: 7px 0 8px !important;
    color: #475467 !important;
    font-size: 11.5px !important;
    line-height: 1.55 !important;
}

.wolfyx-hsh-evaluated-headers strong {
    color: #344054 !important;
    font-weight: 750 !important;
}



/* WordPress wraps Custom HTML buttons in <p> elements.
   Push the Print button wrapper to the right on non-mobile layouts. */
.wolfyx-hsh-actions > p:has(#wolfyx-hsh-print) {
    margin-left: auto !important;
}

@media (max-width: 520px) {
    .wolfyx-hsh-actions > p:has(#wolfyx-hsh-print) {
        margin-left: 0 !important;
    }
}
