/* Point brand — unified variable overrides for SearXNG dark theme */
:root.theme-dark {
  --color-base-font: #E0E2E5;
  --color-base-font-rgb: 224, 226, 229;
  --color-base-background: #222831;
  --color-base-background-mobile: #222831;
  --color-url-font: #E97545;
  --color-url-visited-font: #c46536;
  --color-header-background: #222831;
  --color-header-border: #393E46;
  --color-footer-background: #222831;
  --color-footer-border: #393E46;
  --color-sidebar-border: #393E46;
  --color-sidebar-font: #E0E2E5;
  --color-sidebar-background: #252A33;
  --color-backtotop-font: #E0E2E5;
  --color-backtotop-border: #393E46;
  --color-backtotop-background: #252A33;
  --color-btn-background: #E97545;
  --color-btn-font: #fff;
  --color-show-btn-background: #393E46;
  --color-show-btn-font: #E0E2E5;
  --color-search-border: #393E46;
  --color-search-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --color-search-background: #252A33;
  --color-search-font: #E0E2E5;
  --color-search-background-hover: #E97545;
  --color-result-link: #E97545;
  --color-answer-font: #E0E2E5;
  --color-error: #f87171;
  --color-error-background: rgba(248,113,113,0.1);
  --color-warning: #f1d561;
  --color-warning-background: #39300a;
  --color-success: #79f56e;
  --color-success-background: #0e390a;
  --color-categories-item-selected-font: #E97545;
  --color-categories-item-border-selected: #E97545;
  --color-autocomplete-font: #E0E2E5;
  --color-autocomplete-border: #393E46;
  --color-autocomplete-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --color-autocomplete-background: #252A33;
  --color-autocomplete-background-hover: #393E46;
  --color-answer-font: #E0E2E5;
  --color-answer-background: #252A33;
  --color-result-keyvalue-col-table: #2D333B;
  --color-result-keyvalue-odd: #2D333B;
  --color-result-keyvalue-even: #252A33;
  --color-result-background: #252A33;
  --color-result-border: #393E46;
  --color-result-url-font: #9AA0A8;
  --color-result-vim-selected: #2D333B;
  --color-result-vim-arrow: #E97545;
  --color-result-description-highlight-font: #E0E2E5;
  --color-result-link-font: #E97545;
  --color-result-link-font-highlight: #E97545;
  --color-result-link-visited-font: #c46536;
  --color-result-publishdate-font: #9AA0A8;
  --color-result-engines-font: #71717a;
  --color-result-search-url-border: #393E46;
  --color-result-search-url-font: #9AA0A8;
  --color-result-detail-font: #E0E2E5;
  --color-result-detail-label-font: #9AA0A8;
  --color-result-detail-background: #2D333B;
  --color-result-detail-hr: #393E46;
  --color-result-detail-link: #E97545;
  --color-result-detail-loader-border: #fff3;
  --color-result-detail-loader-borderleft: #0000;
  --color-result-image-span-font: #9AA0A8;
  --color-result-image-span-font-selected: #222831;
  --color-result-image-background: #222831;
  --color-settings-tr-hover: #2D333B;
  --color-settings-engine-description-font: #9AA0A8;
  --color-settings-table-group-background: #1c2129;
  --color-toolkit-badge-font: #fff;
  --color-toolkit-badge-background: #393E46;
  --color-toolkit-kbd-font: #222831;
  --color-toolkit-kbd-background: #E0E2E5;
  --color-toolkit-dialog-border: #4D5562;
  --color-toolkit-dialog-background: #252A33;
  --color-toolkit-tabs-label-border: #222831;
  --color-toolkit-tabs-section-border: #4D5562;
  --color-toolkit-select-background: #343A40;
  --color-toolkit-select-border: #4D5562;
  --color-toolkit-select-background-hover: #393E46;
  --color-toolkit-input-text-font: #E0E2E5;
  --color-toolkit-checkbox-onoff-off-background: #343A40;
  --color-toolkit-checkbox-onoff-on-background: #343A40;
  --color-toolkit-checkbox-onoff-on-mark-background: #E97545;
  --color-toolkit-checkbox-onoff-on-mark-color: #fff;
  --color-toolkit-checkbox-onoff-off-mark-background: #9AA0A8;
  --color-toolkit-checkbox-onoff-off-mark-color: #222831;
  --color-toolkit-checkbox-label-background: #222831;
  --color-toolkit-checkbox-label-border: #393E46;
  --color-toolkit-checkbox-input-border: #E97545;
  --color-toolkit-engine-tooltip-border: #393E46;
  --color-toolkit-engine-tooltip-background: #252A33;
  --color-toolkit-loader-border: #fff3;
  --color-toolkit-loader-borderleft: #0000;
  --color-doc-code: #E0E2E5;
  --color-doc-code-background: #343A40;
  --color-favicon-background-color: #393E46;
  --color-favicon-border-color: #4D5562;
}

:root.theme-dark body {
  background-color: #222831;
}

#main_index .title,
.index .title {
  background: url('/brand/logo.svg') no-repeat center !important;
  background-size: contain !important;
  height: 60px !important;
}

#main_preferences .logo,
.preferences .logo {
  background: url('/brand/logo.svg') no-repeat center !important;
  background-size: contain !important;
  width: 200px !important;
  height: 60px !important;
  display: inline-block !important;
}

#main_preferences .logo img,
.preferences .logo img {
  display: none !important;
}

#main_preferences .point-logo,
.preferences .point-logo {
  background: url('/brand/logo.svg') no-repeat center !important;
  background-size: contain !important;
  width: 200px !important;
  height: 60px !important;
  text-indent: -9999px !important;
  display: inline-block !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

#search_logo {
  overflow: visible !important;
}

#search_logo img {
  height: 36px !important;
  width: 36px !important;
  flex: none !important;
}

#search_logo svg {
  display: none !important;
}

.sxng-model-select {
  display: none !important;
}

#main_index .title h1,
.index .title h1,
.point-logo {
  background: none !important;
  width: 200px !important;
  height: 60px !important;
  text-indent: -9999px !important;
  display: inline-block !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

footer {
  display: none !important;
}

:root.theme-dark #send_search {
  background-color: #E97545 !important;
  color: #fff !important;
  border-radius: 0 8px 8px 0;
}

:root.theme-dark #send_search:hover {
  background-color: #d4633a !important;
  color: #fff !important;
}

:root.theme-dark #q:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(233, 117, 69, 0.3);
}

:root.theme-dark ::-webkit-scrollbar {
  width: 10px;
}

:root.theme-dark ::-webkit-scrollbar-track {
  background: #222831;
}

:root.theme-dark ::-webkit-scrollbar-thumb {
  background: #393E46;
  border-radius: 5px;
}

:root.theme-dark ::-webkit-scrollbar-thumb:hover {
  background: #E97545;
}

:root.theme-dark article.result {
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

:root.theme-dark article.result:hover {
  border-color: #4D5562;
}

:root.theme-dark .infobox,
:root.theme-dark #sidebar,
:root.theme-dark #answers {
  border-radius: 8px;
}
