/* DesignGate overrides. Loaded after css/main.css from index.html (patch_frontend.py). */

/* Accent: blue instead of upstream teal (dark) / purple (light). Same selectors as main.css, later wins. */
.default {
  --color-accent-primary: #6680ff;
  --color-accent-primary-muted: #2b3566;
  --color-accent-secondary: #99abff;
  --color-accent-tertiary: #4d6bff;
  --color-accent-overlay: rgba(102, 128, 255, 0.6);
  --color-accent-select: rgba(77, 107, 255, 0.1019607843);
  --color-accent-background-select: rgba(77, 107, 255, 0.7019607843);
  --color-accent-action: #99abff;
  --color-accent-action-hover: #7f94ff;
}
.light {
  --color-accent-primary: #0033ff;
  --color-accent-primary-muted: #d6deff;
  --color-accent-secondary: #1345aa;
  --color-accent-tertiary: #3355ff;
  --color-accent-overlay: rgba(0, 51, 255, 0.6);
  --color-accent-select: rgba(0, 51, 255, 0.1019607843);
  --color-accent-background-select: rgba(0, 51, 255, 0.7019607843);
  --color-accent-action: #99abff;
  --color-accent-action-hover: #7f94ff;
}

/* Marketing / community links (help.penpot.app docs are kept on purpose). */
a[href*="penpot.app"]:not([href*="help.penpot.app"]),
a[href*="github.com/penpot"],
a[href*="youtube.com/c/Penpot"],
[data-url*="penpot.app"]:not([data-url*="help.penpot.app"]),
[data-url*="github.com/penpot"],
/* dashboard sidebar help menu */
[data-testid="community-contributions"],
[data-testid="about-penpot"],
/* workspace main menu > Help & info */
#file-menu-community,
#file-menu-github,
#file-menu-youtube,
#file-menu-templates,
#file-menu-terms,
#file-menu-release-notes,
#file-menu-feedback,
/* empty-project placeholder: 3rd card "Add a Library or a Template" opens penpot.app hub */
.main_ui_dashboard_placeholder__empty-project-container > .main_ui_dashboard_placeholder__empty-project-card:nth-child(3) {
  display: none !important;
}

/* MPL-2.0 notice link (injected into index.html by patch_frontend.py): auth and settings pages only */
#dg-license {
  position: fixed;
  right: 12px;
  bottom: 8px;
  z-index: 10;
  font-size: 11px;
  color: var(--color-foreground-secondary, #8f9da3);
  text-decoration: underline;
}
body:not(:has([class*="main_ui_auth__auth-content"], [class*="main_ui_settings__dashboard"])) #dg-license {
  display: none;
}
