/*! © 2026 Soluber. All rights reserved.
 * Soluber brand guard styles — served at /soluber-brand/guard.css, injected before </head>.
 * Hides or replaces AFFiNE logo artwork and AFFiNE project links in app chrome.
 * No colours, fonts or layout of the Soluber design are changed here.
 */

/* AFFiNE's logo glyph → the Soluber mark (same box): Logo1Icon / Logo1DuotoneIcon (24-unit
   path, app) and the admin panel's sidebar logo (20-unit path) */
svg:has(> path[d^="m21.602 18.535"]),
svg:has(> path[d^="M18.6172 16.2657"]) {
  background: url(/favicon-192.png) center / contain no-repeat;
}
svg:has(> path[d^="m21.602 18.535"]) > path,
svg:has(> path[d^="M18.6172 16.2657"]) > path {
  display: none;
}

/* 404 / no-access art: hidden until guard.js has repainted its logo tile (then src is a blob:) */
img[src*="/assets/other-page."] {
  visibility: hidden !important;
}

/* Settings → About: AFFiNE's project links (website, Discord, GitHub / X / YouTube / Reddit,
   AFFiNE's privacy policy and terms). Groups are found by structure, not by hashed class names. */
[data-testid="setting-modal-content"] [data-testid="about-title"] ~ div:has(> a[href*="affine.pro"]),
[data-testid="setting-modal-content"] [data-testid="about-title"] ~ div:has(> a[href*="github.com/toeverything"]),
[data-testid="setting-modal-content"] [data-testid="about-title"] ~ div:has(> div:not(.title) > div > p) {
  display: none !important;
}
/* Settings footer on every tab: "Love our app? Star us on GitHub and create issues" (AFFiNE's repo) */
[data-testid="setting-modal-content"] > div > div > div + div:has(> svg) {
  display: none !important;
}

/* AFFiNE's repository / docs links in app chrome (admin About: "Star … on GitHub", "Report an
   Issue", "Self-host Document"). Links inside documents are user content and stay. */
a[href*="github.com/toeverything"]:not([data-block-id] *, [contenteditable] *, affine-editor-container *),
a[href*="docs.affine.pro"]:not([data-block-id] *, [contenteditable] *, affine-editor-container *) {
  display: none !important;
}
