/**
 * Jabuticaba — a white-label skin. The client's identity on SazAI's elements. (data-skin="jabuticaba")
 *
 * THE NAME. The jabuticaba fruits directly on its trunk, not at the tips of its branches. It is
 * called cauliflory and almost nothing else does it. That is this identity: everything grows
 * out of the core, quietly, with no ornament at the extremities.
 *
 * THE RULE (Rames, 2026-09-11): elements and tokens.css are the guardrails; inside them the
 * skin may change whatever it wants, but it must keep every element. This file re-lays the
 * page: the rail becomes a white bar, sections separate by changing ground rather than by
 * drawing a frame, and the footer becomes a deep navy plane. Nothing is removed.
 *
 * WHERE THE VALUES COME FROM. No public brand book exists: the press pages carry contacts only,
 * every guessed brand path is a 404, the brand subdomain does not resolve and the footer has no
 * trademark line. That absence is recorded rather than filled in, so every value here is a
 * computed style measured on the home and one interior page (2026-09-11).
 *
 * THE ONE THING THAT IS NOT SQUARE, AND IT IS DELIBERATE. Unlike its siblings this client is
 * NOT a square system: 81% of elements compute zero radius, and the exceptions are a consistent
 * 8px on cards and buttons and 16px on large panels. Copying a blanket zero here would have
 * produced a different brand, so the exception scale is reproduced exactly.
 *
 * THE VOICE. No uppercase anywhere. No letter-spacing anywhere. No borders and no shadows on
 * cards. A section ends and another begins because the ground changed colour, and for no other
 * reason. Display sentences are sentence case and frequently end in a full stop, which is the
 * most recognisable thing about their headlines.
 *
 * TYPE. Two licensed commercial faces, one geometric for display and one for text, neither of
 * which can ship (white-label ruling 2026-08-31). Nothing is downloaded. The stack names the
 * nearest widely available geometric and text faces and continues into Arabic, Hebrew and CJK
 * for the five locales a Latin-only stack would leave as tofu.
 *
 * NO MARKS. No logo, no wordmark, no company name anywhere, comments included: a skin sheet is
 * served verbatim.
 *
 * DIRECTION. Every inline offset is logical, so the skin flips with the document in ar and he.
 */

:root[data-skin="jabuticaba"] {

  /* ========================= BRAND VALUES ========================= */
  --jab-navy:#0b1641;         /* ink, and the dark ground. 14.7:1 on paper */
  --jab-blue:#0067cc;         /* every call to action and every emphasis. the only accent */
  --jab-pale:#dcecfa;         /* the alternate ground that does all the separating */
  --jab-paper:#ffffff;
  --jab-body:#3f4a63;
  --jab-hair:#c9d7e8;
  --jab-deep:#060d28;         /* one step past the navy, for the dark face */

  /* geometry: the exception scale this client actually keeps */
  --jab-bar:4.75rem;
  --jab-measure:80rem;
  --jab-gutter:clamp(1.25rem, 5vw, 4.5rem);
  --jab-r-card:8px;
  --jab-r-panel:16px;

  --jab-display:"Nexa", "Poppins", "Montserrat", "Helvetica Neue", Arial,
                "Noto Sans Arabic", "Noto Sans Hebrew",
                "Hiragino Sans", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC",
                system-ui, sans-serif;
  --jab-text:"Inter", "Source Sans 3", "Helvetica Neue", Arial,
             "Noto Sans Arabic", "Noto Sans Hebrew",
             "Hiragino Sans", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC",
             system-ui, sans-serif;
  --jab-w-med:500; --jab-w-bold:700; --jab-w-black:800;

  color-scheme: light dark;

  /* NOT a blanket zero: this client rounds, and by how much is part of the identity */
  *, *::before, *::after { box-shadow:none !important; }

  body { background:var(--jab-paper); color:var(--jab-body); font-family:var(--jab-text);
         font-weight:var(--jab-w-med); letter-spacing:normal; text-transform:none; }

  .page > #quartz-body { display:block !important; max-width:none !important;
                         padding-block-start:var(--jab-bar) !important; }
  .page > #quartz-body > * { max-width:none !important; }

  /* ===================== THE RAIL BECOMES A BAR, AND IT IS A GRID =====================
     Corrected 2026-09-11 after rendering the first skin on a served page and measuring it.
     My first version made the rail `display:flex` with a fixed `block-size`, and the children
     spilled down the page: `.flex-component` landed at y=354 and the nav mount at y=414 with
     the bar ending at y=84. The cause is one line of the HOST's own CSS: `.sazai-rail-chrome`
     computes `display: contents`, so it is not a box — its descendants are promoted into
     whatever formatting context the rail declares, they bring their own height, and 84px does
     not hold them. The reference skin solved this before me and I had read the file:
     a GRID with named areas, so the chrome gets a row of its OWN below the bar row, every
     child is placed explicitly, and the chrome is given a real `display` so it stops being
     `contents`. No fixed height on the rail: the rows size themselves. */
  .page > #quartz-body .sidebar.left {
    order:0; position:sticky !important; inset-block-start:0; z-index:120;
    inline-size:100% !important; max-inline-size:none !important;
    display:grid !important;
    grid-template-columns:auto 1fr auto;
    grid-template-areas:"title nav search" "chrome chrome chrome";
    column-gap:1.5rem; row-gap:0; align-items:center;
    /* The host gives the rail a height of its own and the grid rows then stretch to fill
       it: measured 842px, two rows of 431 and 411, with nothing inside taller than 120.
       A bar has to say so. */
    block-size:auto !important; margin:0 !important;
    padding-inline:var(--jab-gutter) !important; padding-block:0 !important;
    background:var(--jab-paper) !important; border:0 !important; }

  .sidebar.left > .page-title { grid-area:title; margin:0 !important;
    block-size:var(--jab-bar); display:flex; align-items:center; }
  .sidebar.left > .sazai-nav-menu-mount { grid-area:nav; display:flex; align-items:center;
    block-size:var(--jab-bar); }
  .sidebar.left > .flex-component { grid-area:search; display:flex !important;
    align-items:center; block-size:var(--jab-bar); }
  .sidebar.left > .sazai-rail-chrome { grid-area:chrome; display:flex !important;
    align-items:center; gap:2rem; min-block-size:var(--jab-bar);
    margin-inline:calc(-1 * var(--jab-gutter)) !important; padding-inline:var(--jab-gutter); }
  .sazai-rail-chrome > .sazai-side-menu-mount { flex:1 1 auto; min-inline-size:0; }

  /* ============ THE SIDE MENU LIES DOWN, AND THIS IS THE OTHER HALF OF THE BAR ============
     Measured 2026-09-11: with the grid alone the bar rendered 842px tall. The chrome row got a
     row of its own, correctly, and then the side-menu component kept its own vertical layout
     inside it. A bar is not a bar until the component in it lies down. 48 of the reference
     skin's 139 rules are this conversion, and it is brand-independent: what follows is that
     structure, parameterised by this skin's own tokens. Every part below is one the component
     publishes; nothing reaches into its internals. */
  sz-side-menu::part(menu), sz-side-menu::part(panel), sz-side-menu::part(variable),
  sz-side-menu::part(vault), sz-side-menu::part(pitch) {
    display:flex; flex-direction:row; align-items:center; gap:1.5rem;
    flex:0 1 auto; min-inline-size:0; min-block-size:0; block-size:auto;
    background:transparent; border:0; outline:0; box-shadow:none; padding:0; margin:0; }
  sz-side-menu::part(menu) { gap:2.5rem; }
  sz-side-menu::part(panel) { flex:1 1 auto; }
  sz-side-menu::part(variable) { flex:1 1 auto; }
  sz-side-menu::part(variable)::before { display:none; }
  sz-side-menu::part(lockup) { display:flex; align-items:center; gap:.75rem;
    margin:0; padding:0; flex:0 0 auto; min-inline-size:0; order:2; }
  sz-side-menu::part(mark) { inline-size:1.25rem; block-size:1.25rem; flex:0 0 auto; opacity:.9; }
  sz-side-menu::part(ways) { display:flex; gap:1.5rem; margin:0; font-size:.75rem;
    text-transform:uppercase; letter-spacing:.08em; font-weight:600; }
  /* the two labels are for a screen reader, not for a bar: hidden visually, never removed */
  sz-side-menu::part(controls-label), sz-side-menu::part(vault-controls-label) {
    position:absolute; inline-size:1px; block-size:1px; overflow:hidden;
    clip-path:inset(50%); white-space:nowrap; margin:0; }
  sz-side-menu::part(controls), sz-user-panel::part(toolbar) { border:0; background:transparent; }
  sz-user-panel::part(panel) { display:flex; align-items:center; gap:1rem;
    background:transparent; border:0; padding:0; margin:0; }
  sz-user-panel::part(identity) { gap:.5rem; }
  sz-user-panel::part(welcome), sz-user-panel::part(email) { font-size:.6875rem; }
  sz-user-panel::part(name) { font-size:.8125rem; }

  .sidebar.left > .page-title a { color:var(--jab-navy); font-family:var(--jab-display);
    font-weight:var(--jab-w-black); font-size:1.1875rem; letter-spacing:normal;
    text-decoration:none; }

  .sazai-nav-menu-mount > .sazai-nav-content {
    display:flex !important; gap:1.75rem; align-items:center; position:static !important;
    background:transparent !important; border:0 !important; padding:0 !important; }
  sz-nav-menu::part(row) { color:var(--jab-navy); font-weight:var(--jab-w-med);
                           font-size:.9375rem; letter-spacing:normal; }
  sz-nav-menu::part(row):hover { color:var(--jab-blue); }
  sz-nav-menu::part(box) { background:var(--jab-paper); border:0;
                           border-radius:var(--jab-r-panel); }

  body > .search, .sidebar.left .search { margin-inline-start:auto; }
  .search-button { background:transparent !important; border:0 !important; }
  .search-button p, .search-button svg { color:var(--jab-navy); }

  /* ===================== SENTENCE CASE, AND IT ENDS IN A FULL STOP ===================== */
  .center > .page-header { background:var(--jab-pale); padding:5.5rem var(--jab-gutter) 3.5rem; }
  .center > .page-header h1, .center article h1 {
    font-family:var(--jab-display); font-size:clamp(2.25rem, 5.2vw, 3.5rem); line-height:1.12;
    font-weight:var(--jab-w-black); letter-spacing:normal; text-transform:none;
    color:var(--jab-navy); }

  sz-lotus { background:var(--jab-pale) !important; }
  sz-lotus::part(stage) { background:var(--jab-pale); }
  sz-lotus > [slot="title"] { font-family:var(--jab-display); color:var(--jab-navy);
    font-weight:var(--jab-w-black); font-size:clamp(2rem, 4.6vw, 3.25rem); line-height:1.12;
    letter-spacing:normal; text-transform:none; }

  .center > article { max-inline-size:var(--jab-measure); padding-inline:var(--jab-gutter); }
  .center article h2 { font-family:var(--jab-display); font-size:2.25rem; line-height:1.15;
    font-weight:var(--jab-w-bold); letter-spacing:normal; color:var(--jab-navy); }
  .center article h3 { font-family:var(--jab-display); font-size:1.375rem; line-height:1.25;
    font-weight:var(--jab-w-bold); letter-spacing:normal; color:var(--jab-navy); }
  .center article p  { font-size:1rem; line-height:1.7; color:var(--jab-body); }
  .center article p > strong { color:var(--jab-blue); font-weight:var(--jab-w-bold); }
  .center > hr { border:0; border-block-start:1px solid var(--jab-hair); }

  /* cards separate by ground, never by a frame */
  .acts { display:grid; grid-template-columns:repeat(auto-fit, minmax(15rem, 1fr)); gap:1.25rem; }
  .act { background:var(--jab-pale); padding:2rem 1.75rem; border:0;
         border-radius:var(--jab-r-card); }
  .act > b    { display:block; font-family:var(--jab-display); color:var(--jab-navy);
                font-size:1.1875rem; font-weight:var(--jab-w-bold); margin-block-end:.5rem; }
  .act > span { color:var(--jab-body); font-size:.96rem; }

  a, a.internal { color:var(--jab-blue); text-decoration:underline;
                  text-underline-offset:.2em; text-decoration-thickness:1px; }
  a:hover { color:var(--jab-navy); }

  sz-vault-access::part(google), sz-vault-access::part(microsoft) {
    background:var(--jab-blue); color:var(--jab-paper); border:0;
    border-radius:var(--jab-r-card); padding:.9rem 1.75rem;
    font-weight:var(--jab-w-bold); letter-spacing:normal; text-transform:none; }
  sz-vault-access::part(google):hover, sz-vault-access::part(microsoft):hover {
    background:var(--jab-navy); }
  sz-vault-access::part(heading) { font-family:var(--jab-display); color:var(--jab-navy);
    font-weight:var(--jab-w-bold); }
  sz-vault-access::part(box) { border-radius:var(--jab-r-panel); }

  .page > #quartz-body .sidebar.right { background:var(--jab-pale); padding:2rem 1.5rem;
                                        border-radius:var(--jab-r-panel); }
  .sidebar.right h3 { font-family:var(--jab-display); color:var(--jab-navy);
    font-size:.9375rem; font-weight:var(--jab-w-bold); letter-spacing:normal;
    text-transform:none; }

  .page > #quartz-body > footer { background:var(--jab-navy); color:var(--jab-paper);
                                  padding-block:3.5rem; }
  sz-site-footer::part(heading) { font-family:var(--jab-display); color:var(--jab-paper);
    font-size:1rem; font-weight:var(--jab-w-bold); letter-spacing:normal;
    text-transform:none; }
  sz-site-footer::part(row) { color:var(--jab-pale); font-weight:var(--jab-w-med); }
  sz-site-footer::part(row):hover { color:var(--jab-paper); }
  sz-site-footer::part(copyright) { color:var(--jab-hair); font-size:.8125rem; }

  sz-side-menu::part(panel) { background:var(--jab-navy); color:var(--jab-paper); border:0; }
  sz-side-menu::part(pitch) { color:var(--jab-pale);
    border-inline-start:1px solid rgba(255,255,255,.25); padding-inline-start:1.5rem; }
  sz-side-menu::part(here) { color:var(--jab-blue); }
  sz-user-panel::part(panel) { background:var(--jab-navy); color:var(--jab-paper); }
  sz-user-panel::part(email) { color:var(--jab-hair); }

  sz-library::part(card) { background:var(--jab-paper); border:0;
    border-radius:var(--jab-r-card); }
  sz-library::part(header) { font-family:var(--jab-display); color:var(--jab-navy);
    font-weight:var(--jab-w-bold); }

  .center article pre { background:var(--jab-deep); color:var(--jab-paper);
                        border-radius:var(--jab-r-card); }
  .center article :not(pre) > code { background:var(--jab-pale); color:var(--jab-navy);
                                     border-radius:4px; }
  .center article table { border-collapse:collapse; }
  .center article th { background:var(--jab-pale); color:var(--jab-navy);
    font-weight:var(--jab-w-bold); text-align:start; }
  .center article td { border-block-start:1px solid var(--jab-hair); }
  ::selection { background:var(--jab-blue); color:var(--jab-paper); }
}

:root[data-skin="jabuticaba"][data-theme="dark"] {
  body { background:var(--jab-deep); color:var(--jab-hair); }
  .page > #quartz-body .sidebar.left { background:var(--jab-deep) !important; }
  .sidebar.left > .page-title a, sz-nav-menu::part(row) { color:var(--jab-paper); }
  .search-button p, .search-button svg { color:var(--jab-paper); }
  .center > .page-header { background:var(--jab-navy); }
  sz-lotus, sz-lotus::part(stage) { background:var(--jab-navy) !important; }
  .center > .page-header h1, .center article h1, .center article h2, .center article h3,
  sz-lotus > [slot="title"] { color:var(--jab-paper); }
  .center article p { color:var(--jab-hair); }
  .act { background:var(--jab-navy); }
  .act > b { color:var(--jab-paper); }
  .act > span { color:var(--jab-hair); }
  a, a.internal { color:var(--jab-pale); }
  a:hover { color:var(--jab-paper); }
  .page > #quartz-body .sidebar.right { background:var(--jab-navy); }
  .sidebar.right h3 { color:var(--jab-paper); }
  .page > #quartz-body > footer { background:var(--jab-deep); }
  sz-library::part(card) { background:var(--jab-navy); }
  sz-library::part(header) { color:var(--jab-paper); }
  .center article :not(pre) > code { background:var(--jab-navy); color:var(--jab-pale); }
  .center article th { background:var(--jab-navy); color:var(--jab-paper); }
  .center article td { border-block-start-color:rgba(255,255,255,.18); }
}
