/* ==========================================================================
   Collab OS · product layer · branches from core.css
   Collab OS is a dense working tool: light home on warm paper, Neue Kabel,
   squared controls, uppercase tags, compact density. Its headlines were
   raised on 2026-11-02 (James): a larger H1 (36 → 56px) on a wider ratio,
   a major third opening to a perfect fourth (1.25 → 1.333).
   ========================================================================== */
@layer trellis.product {
  :root[data-product="collab"] {
    --font-sans: "neue-kabel", "Jost", ui-sans-serif, system-ui, sans-serif;
    --font-serif: "loretta", "Source Serif 4", Georgia, serif;
    --fw-body: 400; --fw-heading: 500; --fw-label: 600; --fw-strong: 600; --fw-serif: 500;

    /* The ratio: a major third opening to a perfect fourth */
    --h1-min: 2.25;   --h1-max: 3.5;
    --rh-min: 1.25;   --rh-max: 1.333;
    --body-min: .875; --body-max: .9375;
    --rp-min: 1.2;    --rp-max: 1.272;
    --label-min: .625; --label-max: .6875;
    --lh-h1: 1.05;    --lh-h-step: .05;
    --lh-body: 1.5;   --lh-p-step: .04;
    --label-tracking: .1em;
    --heading-tracking: -.005em;

    /* Palette: globals.css, with the dark raised surface lifted above the ground */
    --bg:             light-dark(#f5f3f0, #0e0e0e);
    --bg-raised:      light-dark(#fffcfb, #171615);
    --bg-sunken:      light-dark(#edeae5, #090909);
    --bg-hover:       light-dark(#f0ede8, #232323);
    --text:           light-dark(#1c1b19, #f5f2ef);
    --text-secondary: light-dark(#524e48, #b8b4b0);
    --text-tertiary:  light-dark(#7d786f, #8b8b8b);
    --text-faint:     light-dark(#a8a39b, #5a5a5a);
    --border:         light-dark(#ddd9d2, #2a2a2a);
    --border-subtle:  light-dark(#e8e4dd, #222222);
    --border-strong:  light-dark(#ccc8c0, #3d3b38);
    --accent:         light-dark(#1f8a9b, #3db3c5);
    --accent-ink:     #fffcfb;
    --focus:          light-dark(#1f8a9b, #3db3c5);

    --kind-person: light-dark(#b8740a, #f5a524);     /* brand deep gold */
    --kind-group:  light-dark(#954298, #c37ac6);     /* brand magenta: collaborations, organizations */
    --kind-event:  light-dark(#3c4c99, #8592e0);     /* brand slate */
    --kind-course: light-dark(#2f8f7c, #3ea691);     /* brand sea */
    --kind-topic:  light-dark(#2079b5, #2d9cdb);     /* brand sky */

    /* Knobs: squared corners, uppercase tags, one notch denser than Holos */
    --shape-card: var(--r-h);
    --shape-input: var(--r-q);
    --shape-control: var(--r-h);
    --shape-float: var(--r-h);
    --density-card-pad: var(--sp-1);
    --density-control-h: var(--size-control-md);
    --density-control-fs: var(--fs-control-md);
    --tag-default-h: var(--size-control-xs);
    --tag-default-fs: var(--tag-fs-sm);
    --tag-fs-sm: .625rem;
    --tag-fs-md: .6875rem;
    --tag-fs-lg: .75rem;
    --tag-r-fixed: var(--r-q);
    --tag-r-ratio: 0;
    --tag-case: uppercase;
    --tag-tracking: .1em;
  }
}
