/*
 * contextforce theme — shared by /tests/* and /labs/* pages.
 * See labs/theme.css for the canonical readable copy.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg:                #0b0b0c;
    --bg-soft:           #111113;
    --surface:           #16161a;
    --surface-hover:     #1c1c22;
    --surface-2:         #1c1c22;
    --surface-accent:    #1c1c22;
    --glass:             rgba(255, 255, 255, 0.03);

    --border:            #25252c;
    --border-strong:     #34343d;
    --border-hover:      #34343d;

    --text:              #f5f5f3;
    --ink:               #f5f5f3;
    --text-dim:          #a8a8ad;
    --ink-muted:         #a8a8ad;
    --ink-dim:           #6b6b73;

    --accent:            #c4ff3d;
    --accent-ink:        #0b0b0c;
    --accent-secondary:  #c4ff3d;
    --accent-purple:     #c4ff3d;
    --accent-gradient:   linear-gradient(90deg, #c4ff3d 0%, #c4ff3d 100%);
    --gradient:          linear-gradient(135deg, #c4ff3d 0%, #c4ff3d 100%);

    --danger:            #ff5d5d;
    --warning:           #ffb84d;
    --success:           #c4ff3d;
    --ok:                #c4ff3d;
    --warn:              #ffb84d;
    --err:               #ff5d5d;

    --font-main:         'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:         'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --font-serif:        'Instrument Serif', Georgia, serif;
}

html, body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: var(--font-main) !important;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 {
    -webkit-text-fill-color: initial;
}

body.cf-no-theme { /* opt-out — no overrides applied */ }
body.cf-no-theme h1, body.cf-no-theme h2, body.cf-no-theme h3 {
    -webkit-text-fill-color: transparent;
}
