/* THE WORDMARK: "SyncDeck" ("Sync" red, "Deck" cyan to blue) and ObDeck's "ObDeck", the one source for the whole project
   (owner, 2026-12-01: "where ever the SYNCDECK wordmark is present, it needs to pull from the same single source of truth").
   Its colours, its font (SD Fold) and the way it is painted into the text live here and nowhere else.
   Loaded by apps/dashboard/src/entry.css, the desktop apps' src/styles.css, and the landing page
   (apps/backend/scripts/copy-builds.js copies this file to /landing/wordmark.css and the font to /landing/fonts/sd-fold/).
   Each place keeps only its own size. Markup: two spans, "Sync" then "Deck", inside one of the places listed below;
   a new place takes the class "sd-wordmark" on the element that holds the two spans. */

@font-face { font-family: "SD Fold"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("./fonts/sd-fold/SDFold.otf") format("opentype"); }

:root {
  --nb-font-logo: "SD Fold", "Segoe UI", system-ui, sans-serif;
  /* top to bottom, the brand's own colours (Proposals/brand/font_proposals.html .sync / .deck) */
  --nb-logo-sync: linear-gradient(to bottom, rgb(244, 35, 70), rgb(242, 65, 95));
  --nb-logo-deck: linear-gradient(to bottom, rgb(30, 215, 240), rgb(35, 130, 235));
}

/* ObDeck's name in the colours of ObDeck's own logo (packages/shared-ui/brand/obdeck/favicon_syncdeck.svg: its bright red face
   #ff4655 > #ff6f7c and its bright teal face #2dd4bf > #0d9488), the same way SyncDeck's name takes its logo's faces */
.app-logo.is-obdeck {
  --nb-logo-sync: linear-gradient(to bottom, #ff4655, #ff6f7c);
  --nb-logo-deck: linear-gradient(to bottom, #2dd4bf, #0d9488);
}

/* The places: the dashboard's top bar, the sign-in card, the remotes' and small pages' header (html:not([data-view])),
   the desktop apps' small window head (.app-logo), and any element with the class sd-wordmark (the landing page). */
:is(.sd-wordmark,
    html[data-view] body > header > div:first-child .font-black,
    :where(body, #login-view) > .bg-black\/20.rounded-2xl.border.max-w-md h1.font-black,
    html:not([data-view]) body > header.fixed h1,
    .app-logo) > span:is(:nth-child(1), :nth-child(2)) {
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  font-family: var(--nb-font-logo) !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none;
}
:is(.sd-wordmark,
    html[data-view] body > header > div:first-child .font-black,
    :where(body, #login-view) > .bg-black\/20.rounded-2xl.border.max-w-md h1.font-black,
    html:not([data-view]) body > header.fixed h1,
    .app-logo) > span:nth-child(1) { background-image: var(--nb-logo-sync); }
:is(.sd-wordmark,
    html[data-view] body > header > div:first-child .font-black,
    :where(body, #login-view) > .bg-black\/20.rounded-2xl.border.max-w-md h1.font-black,
    html:not([data-view]) body > header.fixed h1,
    .app-logo) > span:nth-child(2) { background-image: var(--nb-logo-deck); }
/* Arabic screens (dir="rtl"): the name always reads "SyncDeck", never "DeckSync" where its box is a flex row. */
:is(.sd-wordmark,
    html[data-view] body > header > div:first-child .font-black,
    :where(body, #login-view) > .bg-black\/20.rounded-2xl.border.max-w-md h1.font-black,
    html:not([data-view]) body > header.fixed h1,
    .app-logo) { direction: ltr; }
