/* The brand cutout on every page of maajii.ca (SPEC-53 DR-53-10; SPEC-05 DR-05-2,
   founder 2026-11-19: "use the style developed in the dashboard for those buttons",
   consistent everywhere). Moved out of skin.css so the four public pages, which do not
   wear the skin, load it too. brand-cut.js draws only where html.skin-f is set, which
   every page now carries. */
/* the public pages: the symbol takes the page's own text colour */
html.v-f { --text-primary: var(--ink); }
/* the site's other pages (styles.css) have no --text-primary: the dashboard's values */
html.skin-f:not(.v-f):not(:has(link[href*="aurora.css"])) { --text-primary: #21483f; }
html.skin-f[data-theme="dark"]:not(.v-f):not(:has(link[href*="aurora.css"])) { --text-primary: #e6f1ed; }
/* ---- The brand cutout, Interlock only (founder 2026-11-18 and 19; SPEC-53 DR-53-10,
   SPEC-58 READ-16). brand-cut.js draws, and only when html.skin-f is set. Drawn as
   finished images: the selected item in the workspace nav and the playbook contents (a
   teal slanted block, the maple leaf at its lower right, a channel cut round the leaf),
   and the theme, world and notification buttons (teal and coral parted on the A's slant
   by the wordmark's channel, the symbol whole in front with the halo cut round it). The
   skin's own slant clip on those elements is lifted where the drawing takes over. ---- */
html.skin-f {
  --mj-block: #6ccfc0;
  --mj-on-block: #0b0f0e;
  --mj-fig: #f2845f; /* the dashboard's values, pinned so every page matches */
}
html.skin-f[data-theme="light"] {
  --mj-block: #2c8072;
  --mj-on-block: #ffffff;
  --mj-fig: #d97962;
}
/* a selected item: the block is drawn behind the words, the leaf at its lower right */
html.skin-f .mj-selected {
  position: relative;
  isolation: isolate;
  color: var(--mj-on-block) !important;
  background: none !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
}
html.skin-f .mj-selected:hover { background: none !important; }
html.skin-f .mj-selected svg { color: var(--mj-on-block) !important; }
html.skin-f .mj-mark { position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; }
/* outranks the skin's own teal slant on the open view (.nav-item.active above) */
html.skin-f .nav-item.active.mj-selected { background: none !important; clip-path: none !important; color: var(--mj-on-block) !important; padding-right: 2.6rem; }
html.skin-f .nav-item.mj-selected::after { display: none; }
html.skin-f :is(.pb-toc, #pbTocMobile) a.mj-selected { padding: 0.5rem 2.7rem 0.5rem 0.7rem; border-left: 0; font-weight: 800; }
html.skin-f :is(.pb-toc, #pbTocMobile) a.mj-selected.done::after { color: inherit; }
/* the icon buttons: the button is the drawing */
html.skin-f :is(.theme-toggle, .notif-bell):has(> .mj-face) {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  clip-path: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* the bell holds its count badge; the fixed toggles (access, connect, open) keep their place */
html.skin-f .notif-bell:has(> .mj-face) { position: relative; }
html.skin-f .notif-bell:has(> .mj-face)::before { display: none !important; }
html.skin-f .notif-wrap:has(.mj-face) { display: inline-flex; align-items: center; }
html.skin-f :is(.theme-toggle, .notif-bell) .mj-face { width: 42px; height: 42px; display: block; user-select: none; }
html.skin-f :is(.theme-toggle, .notif-bell):has(> .mj-face):hover .mj-face { filter: brightness(1.08) saturate(1.05); }
html.skin-f :is(.theme-toggle, .notif-bell):has(> .mj-face):focus-visible { outline: 2px solid var(--mj-block); outline-offset: 3px; }
/* the top bar spaces its buttons with a gap; sea.css's margin doubled it after the world button */
html.skin-f :is(.topbar-actions, .pb-topbar-actions) .world-toggle:has(> .mj-face) { margin-right: 0; }
/* the unread count: a red maple leaf at the bell's top right, the bell cut round it.
   White on #d83a34 is 4.59:1. The leaf holds up to 9, then 9+. */
html.skin-f .notif-bell:has(> .mj-face) .notif-badge {
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  min-width: 0;
  padding: 1px 0 0;
  border-radius: 0;
  box-shadow: none !important;
  background: #d83a34;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  -webkit-mask: var(--maple) center / contain no-repeat;
  mask: var(--maple) center / contain no-repeat;
}
/* a page that had no theme button gets one, top right (look/cut-wire.js) */
html.skin-f .theme-toggle.mj-theme-added { position: fixed !important; top: 14px; right: 16px; z-index: 50; cursor: pointer; }
