/* public/marks.css: the marks (lane A3 of the Plain Platinum reskin, 2026-10-14).
   Linked right after style.css on every page; lib/html-assets.js versions it
   the same way (a plain root-relative .css href in a stylesheet link).

   The Capstone mark is four paths on a 100 x 100 box: tip, left leg, right leg
   and the blade standing in the slot. Colour rule: the product's own part takes
   the product colour, the rest is platinum (#C9CED6 on a dark ground, #2E343D
   on a light one). The base follows the theme through --mark-base, so the same
   markup is right in both modes. Search Arsenal owns the blade, Conversion
   Arsenal the right leg, Ads Arsenal the left leg.

   Product colours (Travis, 15 Oct 2026): Search Arsenal Cartridge Brass, Ads
   Arsenal Petrol, Conversion Arsenal Graphite. They are the family's, so they
   do not change with the product you are in: the switcher shows all three. The
   graphite mark has no hue to light its leg with, so it turns the rule over: its
   A is silver and its leg is ink by day (white at night). Its svg carries
   .cap-conversion (patch-shell-marks.mjs). Ratios: brass blade #B07D22 3.62 on
   white, #D4A24C 8.34 on the dark page; petrol #0E6475 6.78 on white, #5DB8CC
   7.85 on the card; the graphite leg #1A1C1E 17.09 on white, #F4F6F8 on the
   dark page about 18; its silver A is decorative (#9CA5B2, #5F6875 3.42 at night).

   Pages are patched by scripts/patch-shell-marks.mjs; the shapes live there. */

:root {
  --mark-base: #2E343D;
  --mark-search: #B07D22; --mark-ads: #0E6475; --mark-conv: #1A1C1E; --mark-conv-base: #9CA5B2;
}
:root[data-theme="dark"] {
  --mark-base: #C9CED6;
  --mark-search: #D4A24C; --mark-ads: #5DB8CC; --mark-conv: #F4F6F8; --mark-conv-base: #5F6875;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mark-base: #C9CED6;
    --mark-search: #D4A24C; --mark-ads: #5DB8CC; --mark-conv: #F4F6F8; --mark-conv-base: #5F6875;
  }
}

/* ---- Fills ---- */
.mark-base { fill: var(--mark-base); }
.cap-conversion .mark-base { fill: var(--mark-conv-base); }
.mark-search { fill: var(--mark-search); }
.mark-conv { fill: var(--mark-conv); }
.mark-ads { fill: var(--mark-ads); }

/* ---- The mark itself ---- */
.capstone { display: block; flex-shrink: 0; width: 24px; height: 24px; }

/* ---- Sidebar brand block (the family switcher's current product) ----
   The button carries both names (Search Arsenal, Conversion Arsenal); <html data-product>, set before first paint,
   shows the Arsenal you are in. display: contents keeps the visible one's mark and words in the button's own row. */
.fam-id { display: contents; }
:root:not([data-product="conversion"]) .fam-id-conversion, :root[data-product="conversion"] .fam-id-search { display: none; }
.family-current .brand-mark { width: 24px; height: 24px; }
/* "Conversion Arsenal" is four letters longer than "Search Arsenal" and the sidebar is 232px: Archivo's width axis takes
   the name in a little (the titles run at 75%) rather than cutting it with an ellipsis. */
.fam-id-conversion .brand-name { font-stretch: 86%; }
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.15; }
.brand-name {
  font-family: 'Archivo', 'Archivo Expanded', system-ui, sans-serif;
  font-stretch: 100%;
  font-size: 13.5px; font-weight: 600; letter-spacing: .005em;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-by {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500; letter-spacing: 0;
  color: var(--ink-3, var(--muted));
  white-space: nowrap;
}
.brand-by .shield { display: block; width: 8px; height: 12px; flex-shrink: 0; }
.family-item .capstone { width: 18px; height: 18px; }

/* ---- The endorsed lockup on the auth pages: SEARCH / ARSENAL by Battle Bridge ---- */
.lockup { display: inline-flex; align-items: center; gap: 14px; }
.lockup .lk-mark { width: 44px; height: 44px; }
.lk-text { display: flex; flex-direction: column; line-height: 1; }
.lk-name {
  display: flex; flex-direction: column; gap: 4px;
  font-family: 'Archivo', 'Archivo Expanded', system-ui, sans-serif;
  font-stretch: 75%;
  text-transform: uppercase;
  color: var(--text);
}
.lk-p { font-size: 26px; font-weight: 800; letter-spacing: .005em; }
.lk-f { font-size: 12px; font-weight: 600; letter-spacing: .3em; font-stretch: 100%; color: var(--ink-3, var(--muted)); }
.lk-by {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3, var(--muted));
  white-space: nowrap;
}
.lk-by .bb-lockup { display: block; width: 36px; height: 22px; flex-shrink: 0; }
