/**
 * Vetiver — a white-label skin. The client's identity on SazAI's elements. (data-skin="vetiver")
 *
 * THE NAME. Vetiver roots go metres straight down and hold a hillside against erosion. The
 * plant above ground is unremarkable; the whole argument is underneath. That is this identity:
 * industrial, structural, two colours doing all the work, nothing decorative anywhere.
 *
 * 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 over a deep structural band, headings take the client's
 * two-tone treatment, sections become full-bleed planes, and the footer becomes a solid field
 * of the structural colour. Nothing is removed.
 *
 * WHERE THE VALUES COME FROM. No public brand book exists; the press room carries news and a
 * contact, the sitemap has no identity page, and investor relations publishes governance only.
 * That absence is recorded rather than filled with a guess, so every value here is a computed
 * style measured on the home and one interior page (2026-09-11). 97 to 98% of elements compute
 * zero radius, and the only rounding on the entire site is a deliberate single-corner cut, so
 * that exact gesture is kept and nothing else is rounded.
 *
 * THE SIGNATURE. A two-tone headline in capitals: first word heavy, second word light, same
 * size, the first in the structural colour and the second in the action colour. It repeats at
 * every level from the hero down to the section titles, and it is the most recognisable thing
 * about their pages.
 *
 * TYPE. Their face is a licensed commercial family and cannot ship (white-label ruling
 * 2026-08-31). Nothing is downloaded. The stack names the nearest widely available industrial
 * grotesques and continues into Arabic, Hebrew and CJK for the five locales a Latin-only stack
 * would leave as tofu.
 *
 * CONTRAST. The action colour measures 2.1:1 on white and is therefore never body ink and never
 * a text ground for light type: it is a fill that carries dark ink, and a rule. The structural
 * colour clears 7:1 on white and does carry text.
 *
 * 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="vetiver"] {

  /* ========================= BRAND VALUES ========================= */
  --vet-structure:#005d5e;    /* deep teal: headings, bands, footer. 7.4:1 on paper */
  --vet-action:#6cbe4b;       /* leaf green: buttons, rules, active states. never body ink */
  --vet-action-ink:#0b2b12;   /* the ink that sits ON the action colour */
  --vet-paper:#ffffff;
  --vet-near:#f4f6f5;
  --vet-body:#40474a;
  --vet-hair:#d8dedd;
  --vet-deep:#003c3d;         /* one step past the structure, for the dark face */

  /* geometry: square, with the one asymmetric cut the client actually uses */
  --vet-bar:4.75rem;
  --vet-measure:80rem;
  --vet-gutter:clamp(1.25rem, 5vw, 4.5rem);
  --vet-cut:0 1.5rem 1.5rem 0;   /* the single-corner cut, logical order start->end */

  --vet-sans:"DIN Next", "DIN Pro", "Roboto Condensed", "Helvetica Neue", Arial,
             "Noto Sans Arabic", "Noto Sans Hebrew",
             "Hiragino Sans", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC",
             system-ui, sans-serif;
  --vet-w-light:300; --vet-w-reg:400; --vet-w-med:500; --vet-w-bold:700;

  color-scheme: light dark;

  *, *::before, *::after { border-radius:0 !important; box-shadow:none !important; }

  body { background:var(--vet-paper); color:var(--vet-body); font-family:var(--vet-sans);
         font-weight:var(--vet-w-reg); }

  /* ===================== A WHITE BAR OVER A STRUCTURAL BAND ===================== */
  .page > #quartz-body { display:block !important; max-width:none !important;
                         padding-block-start:var(--vet-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(--vet-gutter) !important; padding-block:0 !important;
    background:var(--vet-paper) !important; border-block-end:3px solid var(--vet-action) !important; }

  .sidebar.left > .page-title { grid-area:title; margin:0 !important;
    block-size:var(--vet-bar); display:flex; align-items:center; }
  .sidebar.left > .sazai-nav-menu-mount { grid-area:nav; display:flex; align-items:center;
    block-size:var(--vet-bar); }
  .sidebar.left > .flex-component { grid-area:search; display:flex !important;
    align-items:center; block-size:var(--vet-bar); }
  .sidebar.left > .sazai-rail-chrome { grid-area:chrome; display:flex !important;
    align-items:center; gap:2rem; min-block-size:var(--vet-bar);
    margin-inline:calc(-1 * var(--vet-gutter)) !important; padding-inline:var(--vet-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(--vet-structure); font-weight:var(--vet-w-bold);
    font-size:1.1875rem; text-transform:uppercase; letter-spacing:.02em; 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(--vet-structure); font-weight:var(--vet-w-med);
    font-size:.875rem; text-transform:uppercase; letter-spacing:.04em; }
  sz-nav-menu::part(row):hover { color:var(--vet-action); }
  sz-nav-menu::part(box) { background:var(--vet-paper); border:1px solid var(--vet-hair); }

  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(--vet-structure); }

  /* ===================== THE TWO-TONE HEAD ===================== */
  .center > .page-header { background:var(--vet-structure); color:var(--vet-paper);
    padding:5rem var(--vet-gutter) 4rem; }
  .center > .page-header h1 { color:var(--vet-paper); font-size:clamp(2.25rem, 5vw, 3.75rem);
    line-height:1.05; font-weight:var(--vet-w-bold); text-transform:uppercase;
    letter-spacing:.01em; }

  sz-lotus { background:var(--vet-structure) !important; }
  sz-lotus::part(stage) { background:var(--vet-structure); }
  sz-lotus > [slot="title"] { color:var(--vet-paper); font-weight:var(--vet-w-bold);
    text-transform:uppercase; font-size:clamp(2rem, 4.8vw, 3.5rem); line-height:1.05;
    letter-spacing:.01em; }
  /* the second line goes light and green: the client's own two-tone move */
  sz-lotus > [slot="title"] br + * { font-weight:var(--vet-w-light); color:var(--vet-action); }

  /* ===================== PLANES, NOT CARDS ===================== */
  .center > article { max-inline-size:var(--vet-measure); padding-inline:var(--vet-gutter); }
  .center article h1 { color:var(--vet-structure); font-size:clamp(2rem,4.4vw,3.25rem);
    font-weight:var(--vet-w-bold); text-transform:uppercase; letter-spacing:.01em; }
  .center article h2 { color:var(--vet-structure); font-size:2.125rem;
    font-weight:var(--vet-w-bold); text-transform:uppercase; letter-spacing:.01em;
    line-height:1.1; }
  .center article h3 { color:var(--vet-structure); font-size:1.375rem;
    font-weight:var(--vet-w-light); text-transform:uppercase; letter-spacing:.03em; }
  .center article p { font-size:1rem; line-height:1.65; color:var(--vet-body); }
  .center article p > strong { color:var(--vet-structure); font-weight:var(--vet-w-bold); }
  .center > hr { border:0; border-block-start:3px solid var(--vet-action);
                 inline-size:3.5rem; margin-inline-end:auto; }

  .acts { display:grid; grid-template-columns:repeat(auto-fit, minmax(15rem, 1fr)); gap:1.5rem; }
  .act { background:var(--vet-near); padding:2rem 1.75rem;
         border-inline-start:4px solid var(--vet-action); }
  .act > b    { display:block; color:var(--vet-structure); font-size:1.1875rem;
                font-weight:var(--vet-w-bold); text-transform:uppercase; letter-spacing:.01em;
                margin-block-end:.5rem; }
  .act > span { color:var(--vet-body); font-size:.96rem; }

  a, a.internal { color:var(--vet-structure); text-decoration:underline;
                  text-underline-offset:.18em; text-decoration-thickness:1px; }
  a:hover { color:var(--vet-action); }

  sz-vault-access::part(google), sz-vault-access::part(microsoft) {
    background:var(--vet-action); color:var(--vet-action-ink); border:0;
    border-radius:var(--vet-cut) !important; padding:.9rem 1.75rem;
    font-weight:var(--vet-w-bold); text-transform:uppercase; letter-spacing:.04em; }
  sz-vault-access::part(google):hover, sz-vault-access::part(microsoft):hover {
    background:var(--vet-structure); color:var(--vet-paper); }
  sz-vault-access::part(heading) { color:var(--vet-structure); font-weight:var(--vet-w-bold);
    text-transform:uppercase; }

  .page > #quartz-body .sidebar.right { background:var(--vet-near); padding:2rem 1.5rem; }
  .sidebar.right h3 { color:var(--vet-structure); font-size:.8125rem;
    font-weight:var(--vet-w-bold); text-transform:uppercase; letter-spacing:.06em; }

  .page > #quartz-body > footer { background:var(--vet-structure); color:var(--vet-paper);
                                  padding-block:3.5rem; }
  sz-site-footer::part(heading) { color:var(--vet-action); font-size:.8125rem;
    text-transform:uppercase; letter-spacing:.06em; font-weight:var(--vet-w-bold); }
  sz-site-footer::part(row) { color:var(--vet-paper); font-weight:var(--vet-w-light); }
  sz-site-footer::part(row):hover { color:var(--vet-action); }
  sz-site-footer::part(copyright) { color:var(--vet-hair); font-size:.8125rem; }

  sz-side-menu::part(panel) { background:var(--vet-structure); color:var(--vet-paper);
                              border:0; }
  sz-side-menu::part(pitch) { color:var(--vet-hair); font-weight:var(--vet-w-light);
    border-inline-start:1px solid rgba(255,255,255,.25); padding-inline-start:1.5rem; }
  sz-side-menu::part(here) { color:var(--vet-action); }
  sz-user-panel::part(panel) { background:var(--vet-structure); color:var(--vet-paper); }
  sz-user-panel::part(email) { color:var(--vet-hair); }

  sz-library::part(card) { background:var(--vet-paper); border:1px solid var(--vet-hair); }
  sz-library::part(header) { color:var(--vet-structure); font-weight:var(--vet-w-bold);
                             text-transform:uppercase; }

  .center article pre { background:var(--vet-deep); color:var(--vet-paper); }
  .center article :not(pre) > code { background:var(--vet-near); color:var(--vet-structure); }
  .center article table { border-collapse:collapse; }
  .center article th { background:var(--vet-structure); color:var(--vet-paper);
    font-weight:var(--vet-w-bold); text-transform:uppercase; text-align:start; }
  .center article td { border-block-start:1px solid var(--vet-hair); }
  ::selection { background:var(--vet-action); color:var(--vet-action-ink); }
}

/* ===================== THE SECOND FACE ===================== */
:root[data-skin="vetiver"][data-theme="dark"] {
  body { background:var(--vet-deep); color:var(--vet-hair); }
  .page > #quartz-body .sidebar.left { background:var(--vet-deep) !important; }
  .sidebar.left > .page-title a, sz-nav-menu::part(row) { color:var(--vet-paper); }
  .search-button p, .search-button svg { color:var(--vet-paper); }
  .center > .page-header { background:var(--vet-deep); }
  sz-lotus, sz-lotus::part(stage) { background:var(--vet-deep) !important; }
  .center article h1, .center article h2, .center article h3 { color:var(--vet-paper); }
  .center article p { color:var(--vet-hair); }
  .center article p > strong { color:var(--vet-action); }
  .act { background:rgba(255,255,255,.06); }
  .act > b { color:var(--vet-action); }
  .act > span { color:var(--vet-hair); }
  a, a.internal { color:var(--vet-paper); }
  a:hover { color:var(--vet-action); }
  .page > #quartz-body .sidebar.right { background:var(--vet-deep); }
  .sidebar.right h3 { color:var(--vet-paper); }
  .page > #quartz-body > footer { background:var(--vet-deep); }
  sz-library::part(card) { background:rgba(255,255,255,.05);
                           border-color:rgba(255,255,255,.18); }
  sz-library::part(header) { color:var(--vet-paper); }
  .center article :not(pre) > code { background:rgba(255,255,255,.08); color:var(--vet-hair); }
  .center article td { border-block-start-color:rgba(255,255,255,.18); }
}
