/* Security Command: standalone Gitea theme, based on gitea-dark */
gitea-theme-meta-info {
  --theme-display-name: "Security Command";
  --theme-color-scheme: "dark";
}

:root {
  --is-dark-theme: true;
  --color-primary: #d24654;
  --color-primary-contrast: #ffffff;
  --color-primary-dark-1: #d65865;
  --color-primary-dark-2: #db6b76;
  --color-primary-dark-3: #e07e87;
  --color-primary-dark-4: #e49098;
  --color-primary-dark-5: #edb5bb;
  --color-primary-dark-6: #f6dadd;
  --color-primary-dark-7: #fdf6f6;
  --color-primary-light-1: #b53c48;
  --color-primary-light-2: #9e343f;
  --color-primary-light-3: #8b2e37;
  --color-primary-light-4: #782830;
  --color-primary-light-5: #511b20;
  --color-primary-light-6: #270d10;
  --color-primary-light-7: #0d0405;
  --color-primary-alpha-10: #d2465419;
  --color-primary-alpha-20: #d2465433;
  --color-primary-alpha-30: #d246544b;
  --color-primary-alpha-40: #d2465466;
  --color-primary-alpha-50: #d2465480;
  --color-primary-alpha-60: #d2465499;
  --color-primary-alpha-70: #d24654b3;
  --color-primary-alpha-80: #d24654cc;
  --color-primary-alpha-90: #d24654e1;
  --color-primary-hover: var(--color-primary-light-1);
  --color-primary-active: var(--color-primary-light-2);
  --color-secondary: #2a2223;
  --color-secondary-dark-1: #373030;
  --color-secondary-dark-2: #453d3e;
  --color-secondary-dark-3: #524a4b;
  --color-secondary-dark-4: #605859;
  --color-secondary-dark-5: #6d6666;
  --color-secondary-dark-6: #7b7374;
  --color-secondary-dark-7: #888081;
  --color-secondary-dark-8: #958e8e;
  --color-secondary-dark-9: #a39c9c;
  --color-secondary-dark-10: #b0a9a9;
  --color-secondary-dark-11: #beb6b7;
  --color-secondary-dark-12: #cbc4c4;
  --color-secondary-dark-13: #d9d2d2;
  --color-secondary-light-1: #211a1b;
  --color-secondary-light-2: #181314;
  --color-secondary-light-3: #100c0d;
  --color-secondary-light-4: #0a0808;
  --color-secondary-alpha-10: #2a222319;
  --color-secondary-alpha-20: #2a222333;
  --color-secondary-alpha-30: #2a22234b;
  --color-secondary-alpha-40: #2a222366;
  --color-secondary-alpha-50: #2a222380;
  --color-secondary-alpha-60: #2a222399;
  --color-secondary-alpha-70: #2a2223b3;
  --color-secondary-alpha-80: #2a2223cc;
  --color-secondary-alpha-90: #2a2223e1;
  --color-secondary-button: var(--color-secondary-dark-4);
  --color-secondary-hover: var(--color-secondary-dark-3);
  --color-secondary-active: var(--color-secondary-dark-2);
  /* console colors - used for actions console and console files */
  --color-console-fg: #f8f8f8;
  --color-console-fg-subtle: #c1c3c8;
  --color-console-bg: #191a1c;
  --color-console-hover-bg: #2a2c30;
  --color-console-active-bg: #313338;
  --color-console-link: #969aa1;
  /* named colors */
  --color-red: #f03e3e;
  --color-orange: #cc580c;
  --color-yellow: #cc9903;
  --color-olive: #91a313;
  --color-green: #87ab63;
  --color-teal: #00918a;
  --color-blue: #3a8ac6;
  --color-violet: #906ae1;
  --color-purple: #b259d0;
  --color-pink: #d22e8b;
  --color-brown: #a47252;
  --color-black: #202225;
  /* light variants - produced via Sass scale-color(color, $lightness: +10%) */
  --color-red-light: #ff6b6b;
  --color-orange-light: #f6a066;
  --color-yellow-light: #eaaf03;
  --color-olive-light: #abc016;
  --color-green-light: #93b373;
  --color-teal-light: #00b6ad;
  --color-blue-light: #4e96cc;
  --color-violet-light: #9b79e4;
  --color-purple-light: #ba6ad5;
  --color-pink-light: #d74397;
  --color-brown-light: #b08061;
  --color-black-light: #45484e;
  /* dark 1 variants - produced via Sass scale-color(color, $lightness: -10%) */
  --color-red-dark-1: #d63434;
  --color-orange-dark-1: #f38236;
  --color-yellow-dark-1: #b88a03;
  --color-olive-dark-1: #839311;
  --color-green-dark-1: #7a9e55;
  --color-teal-dark-1: #00837c;
  --color-blue-dark-1: #347cb3;
  --color-violet-dark-1: #7b4edb;
  --color-purple-dark-1: #a742c9;
  --color-pink-dark-1: #be297d;
  --color-brown-dark-1: #94674a;
  --color-black-dark-1: #2e3033;
  /* dark 2 variants - produced via Sass scale-color(color, $lightness: -20%) */
  --color-red-dark-2: #ad3030;
  --color-orange-dark-2: #f16e17;
  --color-yellow-dark-2: #a37a02;
  --color-olive-dark-2: #74820f;
  --color-green-dark-2: #6c8c4c;
  --color-teal-dark-2: #00746e;
  --color-blue-dark-2: #2e6e9f;
  --color-violet-dark-2: #6733d6;
  --color-purple-dark-2: #9834b9;
  --color-pink-dark-2: #a9246f;
  --color-brown-dark-2: #835b42;
  --color-black-dark-2: #292b2e;
  /* ansi colors used for actions console and console files */
  --color-ansi-black: #202225;
  --color-ansi-red: #cc4848;
  --color-ansi-green: #87ab63;
  --color-ansi-yellow: #cc9903;
  --color-ansi-blue: #3a8ac6;
  --color-ansi-magenta: #d22e8b;
  --color-ansi-cyan: #00918a;
  --color-ansi-white: var(--color-console-fg-subtle);
  --color-ansi-bright-black: #45484e;
  --color-ansi-bright-red: #d15a5a;
  --color-ansi-bright-green: #93b373;
  --color-ansi-bright-yellow: #eaaf03;
  --color-ansi-bright-blue: #4e96cc;
  --color-ansi-bright-magenta: #d74397;
  --color-ansi-bright-cyan: #00b6ad;
  --color-ansi-bright-white: var(--color-console-fg);
  /* 16-color series */
  --color-series-16-0: #7db233;
  --color-series-16-1: #499a37;
  --color-series-16-2: #ce4751;
  --color-series-16-3: #8f9121;
  --color-series-16-4: #ac32a6;
  --color-series-16-5: #7445e9;
  --color-series-16-6: #c67d28;
  --color-series-16-7: #4db392;
  --color-series-16-8: #aa4d30;
  --color-series-16-9: #2a6f84;
  --color-series-16-10: #c45327;
  --color-series-16-11: #3d965c;
  --color-series-16-12: #792a93;
  --color-series-16-13: #439d73;
  --color-series-16-14: #103aad;
  --color-series-16-15: #982e85;
  /* other colors */
  --color-grey: #3d3f44;
  --color-grey-light: #898d96;
  --color-gold: #b1983b;
  --color-white: #ffffff;
  --color-diff-added-fg: #93b373;
  --color-diff-added-linenum-bg: #274227;
  --color-diff-added-row-bg: #203224;
  --color-diff-added-row-border: #314a37;
  --color-diff-added-word-bg: #3c653c;
  --color-diff-moved-row-bg: #818044;
  --color-diff-moved-row-border: #bcca6f;
  --color-diff-removed-fg: #fb5f5b;
  --color-diff-removed-linenum-bg: #482121;
  --color-diff-removed-row-bg: #301e1e;
  --color-diff-removed-row-border: #634343;
  --color-diff-removed-word-bg: #6f3333;
  --color-diff-inactive: #25272a;
  --color-error-border: #5c1c1e;
  --color-error-bg: #1c0c0c;
  --color-error-bg-active: #2e1414;
  --color-error-bg-hover: #241010;
  --color-error-text: #ff6b6b;
  --color-success-border: #3d181b;
  --color-success-bg: #170c0d;
  --color-success-text: #db6b76;
  --color-warning-border: #5f2228;
  --color-warning-bg: #230f11;
  --color-warning-text: #db6b76;
  --color-info-border: #3d181b;
  --color-info-bg: #170c0d;
  --color-info-text: #db6b76;
  --color-priority-border: #4a268d;
  --color-priority-bg: #251c39;
  --color-priority-text: #a371f7;
  --color-red-badge: #ff5a5a;
  --color-red-badge-bg: #ff5a5a1a;
  --color-red-badge-hover-bg: #ff5a5a4d;
  --color-green-badge: #21ba45;
  --color-green-badge-bg: #21ba451a;
  --color-green-badge-hover-bg: #21ba454d;
  --color-yellow-badge: #fbbd08;
  --color-yellow-badge-bg: #fbbd081a;
  --color-yellow-badge-hover-bg: #fbbd084d;
  --color-orange-badge: #f2711c;
  --color-orange-badge-bg: #f2711c1a;
  --color-orange-badge-hover-bg: #f2711c4d;
  --color-git: #f05133;
  --color-logo: #b5303e;
  /* target-based colors */
  --color-body: #060404;
  --color-box-header: #120e0e;
  --color-box-body: #0b0808;
  --color-box-body-highlight: #151212;
  --color-text-dark: #ffffff;
  --color-text: #e6dfdf;
  --color-text-light: #b8adad;
  --color-text-light-1: #a69a9a;
  --color-text-light-2: #948787;
  --color-text-light-3: #7e7273;
  --color-footer: var(--color-nav-bg);
  --color-timeline: #2a2223;
  --color-input-text: var(--color-text-dark);
  --color-input-background: #080505;
  --color-input-toggle-background: #2a2223;
  --color-input-border: var(--color-secondary-dark-1);
  --color-light: #0b0b0c28;
  --color-light-border: #2a2223;
  --color-hover: #ffffff0f;
  --color-hover-opaque: #151313; /* TODO: color-mix(in srgb, var(--color-body), var(--color-hover)); */
  --color-active: #ffffff21;
  --color-menu: #120e0e;
  --color-card: #0b0808;
  --color-markup-table-row: #ffffff08;
  --color-markup-code-block: #ffffff0a;
  --color-markup-code-inline: #ffffff1a;
  --color-button: #120e0e;
  --color-code-bg: #080505;
  --color-shadow: #0b0b0c58;
  --color-shadow-opaque: #0b0b0c;
  --color-secondary-bg: #252121;
  --color-expand-button: #2a2626;
  --color-placeholder-text: var(--color-text-light-3);
  --color-editor-line-highlight: var(--color-secondary-alpha-40);
  --color-editor-selection: var(--color-primary-alpha-50);
  --color-project-column-bg: var(--color-secondary-light-2);
  --color-caret: var(--color-text); /* should ideally be --color-text-dark, see #15651 */
  --color-reaction-bg: #f3f3f412;
  --color-reaction-hover-bg: var(--color-primary-light-4);
  --color-reaction-active-bg: var(--color-primary-light-5);
  --color-tooltip-text: #f4f4f5;
  --color-tooltip-bg: #2a2223;
  --color-nav-bg: #030202;
  --color-nav-hover-bg: var(--color-secondary-light-1);
  --color-nav-text: var(--color-text);
  --color-secondary-nav-bg: #030202;
  --color-label-text: var(--color-text);
  --color-label-bg: #7a7f8a4b;
  --color-label-hover-bg: #7a7f8aa0;
  --color-label-active-bg: #7a7f8aff;
  --color-accent: var(--color-primary-light-1);
  --color-small-accent: var(--color-primary-light-5);
  --color-highlight-fg: #87651e;
  --color-highlight-bg: #443a27;
  --color-overlay-backdrop: #080808c0;
  --color-danger: var(--color-red);
  --color-transparency-grid-light: #2a2a2a;
  --color-transparency-grid-dark: #1a1a1a;
  --color-workflow-edge-hover: #666a73;
  --color-syntax-keyword: #e5636b;
  --color-syntax-bool: #7fb8b0;
  --color-syntax-control: #e5636b;
  --color-syntax-name: #f0a07a;
  --color-syntax-type: #e6b673;
  --color-syntax-number: #7fb8b0;
  --color-syntax-operator: #b8adad;
  --color-syntax-regexp: #7fb8b0;
  --color-syntax-string: #a9c08a;
  --color-syntax-comment: #857879;
  --color-syntax-invalid: #ff6b6b;
  --color-syntax-link: var(--color-primary);
  --color-syntax-tag: #e5636b;
  --color-syntax-attribute: #e6b673;
  --color-syntax-property: #55afff;
  --color-syntax-variable: #e6dfdf;
  --color-syntax-string-special: #e6b673;
  --color-syntax-escape: #f0a07a;
  --color-syntax-entity: #e6b673;
  --color-syntax-preproc: #d98a6a;
  --color-syntax-preproc-file: #a9c08a;
  --color-syntax-decorator: #d98a6a;
  --color-syntax-namespace: #c9b8b8;
  --color-syntax-name-pseudo: #e5636b;
  --color-syntax-comment-special: #c4979b;
  --color-syntax-text: #e6dfdf;
  --color-syntax-text-alt: #d4c9c9;
  --color-syntax-punctuation: #b8adad;
  --color-syntax-whitespace: #4a3f40;
  --color-syntax-diff-fg: #ffffff;
  --color-syntax-deleted-bg: #4a1c1f;
  --color-syntax-inserted-bg: #24331f;
  --color-syntax-emph: #e6b673;
  --color-syntax-strong: #f0a07a;
  --color-syntax-heading: #e5636b;
  --color-syntax-subheading: #a9c08a;
  --color-syntax-output: #857879;
  --color-syntax-prompt: #e5636b;
  --color-syntax-traceback: #ff6b6b;
  --color-syntax-matching-bracket-bg: #b5303e55;
  --color-syntax-nonmatching-bracket-bg: #ff6b6b40;
  accent-color: var(--color-accent);
  color-scheme: dark;
}

/* invert emojis that are hard to read otherwise */
.emoji[data-alias="heavy_check_mark"],
.emoji[data-alias="currency_exchange"],
.emoji[data-alias="top"],
.emoji[data-alias="end"],
.emoji[data-alias="on"],
.emoji[data-alias="soon"],
.emoji[data-alias="heavy_dollar_sign"],
.emoji[data-alias="copyright"],
.emoji[data-alias="registered"],
.emoji[data-alias="tm"],
.emoji[data-alias="heavy_multiplication_x"],
.emoji[data-alias="heavy_plus_sign"],
.emoji[data-alias="heavy_minus_sign"],
.emoji[data-alias="heavy_division_sign"],
.emoji[data-alias="curly_loop"],
.emoji[data-alias="loop"],
.emoji[data-alias="wavy_dash"],
.emoji[data-alias="feet"],
.emoji[data-alias="musical_note"],
.emoji[data-alias="notes"] {
  filter: invert(100%) hue-rotate(180deg);
}

/* JetBrains Mono, self-hosted (SIL OFL 1.1), files in public/assets/fonts/ */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "JetBrains Mono"; font-style: italic; font-display: swap; font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-wght-italic.woff2") format("woff2-variations");
  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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: italic; font-display: swap; font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-ext-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* no coding ligatures (JetBrains Mono draws != -> etc. as single glyphs via contextual alternates) */
html { font-variant-ligatures: no-contextual; }
/* file names in the repo file listing */
#repo-files-table .repo-file-cell.name .entry-name {
  font-family: var(--fonts-monospace);
  font-size: 0.92em;
}
:root {
  --fonts-monospace: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace, var(--fonts-emoji);
}

.ui.primary.button,
.ui.primary.buttons .button { background: #b5303e; }
.ui.primary.button:hover,
.ui.primary.buttons .button:hover { background: #c43a48; }

/* "New Pull Request" in the pushed-branch banner: oxblood like other primary buttons */
.ui.positive.message .ui.green.button { background: #b5303e; color: #ffffff; }
.ui.positive.message .ui.green.button:hover { background: #c43a48; }
