/* proxies.dk – a plain, quiet tool page. No external fonts or resources.
   Light/dark via prefers-color-scheme. Status colours differ in lightness too
   (light: problem darkest, warning lightest; dark: problem darkest, warning brightest). */

:root {
    color-scheme: light dark;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --bg: #f6f7f9;
    --panel: #ffffff;
    --text: #1f2328;
    --muted: #59636e;
    --line: #d8dee4;
    --link: #0b5cad;
    --focus: #0b5cad;

    --ok: #1a7f37;
    --warn: #bf8700;
    --bad: #8e1b1b;
    --info: #6e7781;
    --pending: #8c959f;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d1117;
        --panel: #151b23;
        --text: #e6edf3;
        --muted: #9198a1;
        --line: #2f3742;
        --link: #6cb6ff;
        --focus: #6cb6ff;

        --ok: #57c26a;
        --warn: #f2cc60;
        --bad: #e5534b;
        --info: #8b949e;
        --pending: #6e7681;
    }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.5;
}

h1, h2, p { margin: 0; }
a { color: var(--link); text-underline-offset: 2px; }
.mono { font-family: var(--mono); font-size: 0.94em; font-variant-ligatures: none; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* Only for visitors with / without JavaScript. app.js also removes .nojs-only for older browsers. */
@media (scripting: enabled) { .nojs-only { display: none !important; } }
@media (scripting: none) {
    .js-only { display: none !important; }
    .row[data-status="pending"] .row-status { display: none; }
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    background: var(--panel);
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.page {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}
@media (min-width: 640px) { .page { padding: 40px 24px 56px; } }

/* ---- Top ------------------------------------------------------------------------------- */

.brand {
    font-family: var(--mono);
    font-size: 0.875rem;
    color: var(--muted);
    text-decoration: none;
}
.brand:hover { color: var(--text); }

.top h1 {
    margin-top: 12px;
    font-size: clamp(1.375rem, 4vw, 1.625rem);
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.verdict {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: baseline;
}
.verdict strong { font-weight: 650; margin-right: 4px; }
.verdict-copy span { color: var(--muted); }

/* ---- Status dot ------------------------------------------------------------------------ */

.dot {
    flex: none;
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c, var(--pending));
    position: relative;
    top: -1px;
}
.verdict .dot { width: 11px; height: 11px; }
.verdict[data-verdict="green"] { --c: var(--ok); }
.verdict[data-verdict="amber"] { --c: var(--warn); }
.verdict[data-verdict="red"] { --c: var(--bad); }
@media (scripting: enabled) {
    .verdict[data-state="pending"] { --c: var(--pending); }
}

/* ok/warn/bad: filled dot; info: hollow ring; pending: dashed-looking pale ring. */
.row[data-status="ok"] { --c: var(--ok); }
.row[data-status="warn"] { --c: var(--warn); }
.row[data-status="bad"] { --c: var(--bad); }
.row[data-status="info"] .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--info); }
.row[data-status="pending"] .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--pending); }
.row[data-status="pending"] .row-status { color: var(--muted); font-weight: 500; }

/* ---- Panel with rows ------------------------------------------------------------------- */

main { outline: none; }

.panel {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "label status" "body body";
    gap: 2px 12px;
    padding: 12px 16px 2px;
}
.row + .row { border-top: 1px solid var(--line); }
@media (min-width: 640px) {
    .row {
        grid-template-columns: 9.5rem minmax(0, 1fr) auto;
        grid-template-areas: "label body status";
        gap: 0 16px;
        padding: 14px 16px 4px;
    }
}

.row-label {
    grid-area: label;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.6;
}
@media (min-width: 640px) { .row-label, .row-status { padding-top: 1px; } }

.row-status {
    grid-area: status;
    align-self: start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.6;
}
.row-status .dot { top: 0; }

.row-body { grid-area: body; min-width: 0; }

.row-value-line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 1.6rem;
}
.row-value {
    min-width: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.row-detail {
    margin-top: 1px;
    font-size: 0.875rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}
.row-detail .mono { color: var(--text); }
.row-summary {
    margin-top: 2px;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Disclosures: the summary line is the tap target (at least 44px high). */
.row-more summary,
.faq summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
}
.row-more summary::-webkit-details-marker,
.faq summary::-webkit-details-marker { display: none; }
.row-more summary {
    width: fit-content;
    font-size: 0.85rem;
    color: var(--link);
}
.row-more summary::after,
.faq summary::after {
    content: "+";
    margin-left: 8px;
    font-family: var(--mono);
    color: var(--muted);
}
.row-more[open] summary::after,
.faq details[open] summary::after { content: "\2212"; }
.row-more p {
    margin: -6px 0 10px;
    font-size: 0.875rem;
    color: var(--muted);
    max-width: 60ch;
}

.placeholder {
    display: inline-block;
    width: 9rem;
    height: 0.75rem;
    border-radius: 4px;
    background: var(--line);
    vertical-align: middle;
}

/* Copy button: icon only, 44px tap target; the check mark is laid on top so nothing moves. */
.copy-btn {
    position: relative;
    flex: none;
    width: 44px;
    height: 44px;
    margin: -10px 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.copy-btn:hover { color: var(--text); }
.copy-btn .icon { width: 16px; height: 16px; }
.copy-done {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--ok);
    opacity: 0;
}
.copy-btn.copied .copy-icon { visibility: hidden; }
.copy-btn.copied .copy-done { opacity: 1; }

.recheck { margin-top: 6px; font-size: 0.875rem; }
.recheck a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- Privacy and FAQ ------------------------------------------------------------------- */

.section { margin-top: 28px; }
.section h2 { font-size: 1.05rem; font-weight: 650; margin-bottom: 8px; }
.plain-list {
    margin: 8px 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.925rem;
}
.plain-list li + li { margin-top: 4px; }

.faq { margin-top: 0; }
.faq details { padding: 0 16px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { font-weight: 500; justify-content: space-between; }
.faq p {
    margin: -4px 0 12px;
    color: var(--muted);
    font-size: 0.925rem;
    max-width: 65ch;
}

/* ---- Footer ---------------------------------------------------------------------------- */

.footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}
.footer p + p { margin-top: 4px; }

@media (prefers-reduced-motion: no-preference) {
    .row.resolved .row-body { animation: fade-in 0.25s ease both; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
