/* ---------------------------------------------------------------------------
   companion-gate.css — the email step in front of the PC Companion download.

   Loaded by the homepage and by /install (and so by all 74 localized copies of
   /install). It is its OWN file rather than a few extra rules in utilities.css
   because utilities.css is GENERATED: scripts/generate_fixes_page.py's
   write_static_css_files() rewrites it every run and test/css-generator-drift
   fails the moment the shipped file stops matching what the generator produces.
   Hand-written rules do not survive there.
   --------------------------------------------------------------------------- */

.wh-gate {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 16px;
    padding: 22px 24px;
    margin: 18px auto 26px;
    max-width: 560px;
    text-align: left;
    scroll-margin-top: 24px;
}

.wh-gate-title {
    color: var(--wh-fg-6ee7b7);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
}

.wh-gate-text {
    color: var(--wh-fg-white-a78);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 14px;
}

.wh-gate-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wh-gate-input {
    flex: 1 1 220px;
    min-width: 0;
    background: var(--wh-bg-0a0a1a);
    border: 1px solid rgba(var(--wh-tint-rgb), 0.16);
    border-radius: 10px;
    color: var(--wh-fg-e0e0e0);
    font-size: 15px;
    padding: 12px 14px;
}

.wh-gate-input:focus {
    outline: 2px solid var(--wh-fg-10b981);
    outline-offset: 1px;
}

.wh-gate-submit {
    background: #10B981;
    border: none;
    border-radius: 10px;
    color: #06281d;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 18px;
}

.wh-gate-submit:hover { background: #34d399; }
.wh-gate-submit:disabled { opacity: 0.65; cursor: default; }

/* min-height reserves the line so nothing shifts when a status appears. */
.wh-gate-status {
    color: var(--wh-fg-white-a70);
    font-size: 13px;
    margin: 10px 0 0;
    min-height: 19px;
}

.wh-gate-status--ok { color: var(--wh-fg-6ee7b7); }
.wh-gate-status--err { color: var(--wh-fg-fca5a5); }

.wh-gate-fine {
    /* 0.55 measured 3.8:1 over the teal download band; 0.66 clears AA. */
    color: var(--wh-fg-white-a66);
    font-size: 12px;
    line-height: 1.6;
    margin: 12px 0 0;
}

/* The privacy-policy link in the fine print. Without this it fell back to the
   browser's default unvisited blue (#0000EE), which is 1.88:1 against this
   panel -- axe flagged it as a serious colour-contrast violation and it was
   genuinely unreadable on the dark background. The gate's own accent green is
   11.56:1 here, and the underline stays so the link is not signalled by colour
   alone. */
.wh-gate-fine a {
    color: var(--wh-fg-6ee7b7);
    text-decoration: underline;
}

.wh-gate-fine a:hover,
.wh-gate-fine a:focus-visible {
    color: var(--wh-fg-a7f3d0);
}
