/**
 * Iris — a white-label skin. The client's identity on SazAI's elements. (data-skin="iris")
 *
 * THE NAME. An iris grows from a rhizome: a stem that runs sideways underground and sends a
 * flower up wherever it reaches. The network is buried and only the delivery points are
 * visible, which is what a distribution utility is.
 *
 * 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 under a two-colour rule, the hero becomes a full-bleed
 * band, cards and panels take the client's own graduated radius scale, and the footer becomes a
 * structural blue plane. Nothing is removed.
 *
 * WHERE THE VALUES COME FROM. No public brand book: a manual exists, an agency names it in a
 * portfolio, and nothing from it is published. No client page states any rule on third-party
 * use of the mark. Absence recorded, not filled. Every value here is a computed style measured
 * on the home and one institutional page (2026-09-11).
 *
 * THE SIGNATURE, AND IT IS ONE OBJECT REPEATED. A left-to-right gradient from the action colour
 * to the structural colour, used as a rule, as an underline and as a full-bleed band. It
 * appears eight times on the home and twenty-four on the institutional page. It is the only
 * gradient in the system and it does all the joining, so it is reproduced literally.
 *
 * THE GEOMETRY IS GRADUATED, NOT UNIFORM. 82.8% of elements are square, and the exceptions are
 * a deliberate scale: buttons 4px, cards 16px, statistic panels 32px, and true circles for photo
 * masks and segment chips. Flattening that to one radius would be a different brand, so the
 * scale is kept.
 *
 * TYPE. One freely licensed face carries display and body alike, separated only by weight, with
 * a single global negative tracking applied to everything. The stack names it honestly and
 * downloads nothing, 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.2:1 on white and is therefore a fill that carries dark
 * ink, never body text and never a light-on-colour label at body size. The structural colour
 * clears AA on white and does carry text.
 *
 * NO MARKS. No logo, no wordmark, no company name anywhere, comments included.
 * DIRECTION. Every inline offset is logical, so the skin flips with the document in ar and he.
 */

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

  /* ========================= BRAND VALUES ========================= */
  --iris-blue:#007cb6;        /* structure: headings, footer, the gradient's far stop */
  --iris-green:#7fc241;       /* action: buttons and the gradient's near stop */
  --iris-green-ink:#12300a;   /* the ink that sits ON the action colour */
  --iris-deep:#005a85;
  --iris-paper:#ffffff;
  --iris-field:#f3f7fa;
  --iris-body:#46545c;
  --iris-hair:#d5e2ea;
  --iris-seam:linear-gradient(90deg, var(--iris-green), var(--iris-blue));

  /* the graduated radius scale this client actually uses */
  --iris-bar:4.75rem;
  --iris-measure:80rem;
  --iris-gutter:clamp(1.25rem, 5vw, 4.5rem);
  --iris-r-btn:4px;
  --iris-r-card:16px;
  --iris-r-panel:32px;
  --iris-track:-0.36px;       /* one global tracking, applied to everything */

  --iris-sans:"Open Sans", "Helvetica Neue", Arial,
              "Noto Sans Arabic", "Noto Sans Hebrew",
              "Hiragino Sans", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC",
              system-ui, sans-serif;
  --iris-w-reg:400; --iris-w-bold:700; --iris-w-black:800;

  color-scheme: light dark;

  *, *::before, *::after { box-shadow:none !important; letter-spacing:var(--iris-track); }

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

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

  /* the bar sits on the seam: the one object that joins everything */
  /* ===================== 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(--iris-gutter) !important; padding-block:0 !important;
    background:var(--iris-paper) !important; border:0 !important; }

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

  /* the seam, the one object that joins this system, sits under the bar */
  .page > #quartz-body .sidebar.left::after {
    content:""; position:absolute; inset-block-end:0; inset-inline:0;
    block-size:3px; background:var(--iris-seam); }

  /* ============ 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(--iris-blue); font-weight:var(--iris-w-black);
    font-size:1.1875rem; 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(--iris-blue); font-weight:var(--iris-w-bold);
                           font-size:.9rem; }
  sz-nav-menu::part(row):hover { color:var(--iris-green); }
  sz-nav-menu::part(box) { background:var(--iris-paper); border:1px solid var(--iris-hair);
                           border-radius:var(--iris-r-card); }

  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(--iris-blue); }

  .center > .page-header { background:var(--iris-field);
    padding:5.5rem var(--iris-gutter) 4rem; }
  .center > .page-header h1, .center article h1 {
    color:var(--iris-blue); font-size:clamp(2.25rem, 5vw, 3.5rem); line-height:1.15;
    font-weight:var(--iris-w-black); }

  sz-lotus { background:var(--iris-field) !important; }
  sz-lotus::part(stage) { background:var(--iris-field); }
  sz-lotus > [slot="title"] { color:var(--iris-blue); font-weight:var(--iris-w-black);
    font-size:clamp(2rem, 4.6vw, 3.25rem); line-height:1.15; }

  .center > article { max-inline-size:var(--iris-measure); padding-inline:var(--iris-gutter); }
  .center article h2 { color:var(--iris-blue); font-size:2.125rem; line-height:1.2;
                       font-weight:var(--iris-w-bold); }
  /* the seam, again, as the underline under a section title */
  .center article h2::after { content:""; display:block; inline-size:4rem; block-size:3px;
                              background:var(--iris-seam); margin-block-start:.75rem; }
  .center article h3 { color:var(--iris-blue); font-size:1.375rem; line-height:1.3;
                       font-weight:var(--iris-w-bold); }
  .center article p { font-size:1rem; line-height:1.7; color:var(--iris-body); }
  .center article p > strong { color:var(--iris-blue); font-weight:var(--iris-w-bold); }
  .center > hr { border:0; block-size:3px; background:var(--iris-seam); }

  .acts { display:grid; grid-template-columns:repeat(auto-fit, minmax(15rem, 1fr)); gap:1.25rem; }
  .act { background:var(--iris-field); padding:2rem 1.75rem; border:0;
         border-radius:var(--iris-r-card); }
  .act > b { display:block; color:var(--iris-blue); font-size:1.1875rem;
             font-weight:var(--iris-w-bold); margin-block-end:.5rem; }
  .act > span { color:var(--iris-body); font-size:.96rem; }

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

  sz-vault-access::part(google), sz-vault-access::part(microsoft) {
    background:var(--iris-green); color:var(--iris-green-ink); border:0;
    border-radius:var(--iris-r-btn); padding:.9rem 1.75rem; font-weight:var(--iris-w-bold); }
  sz-vault-access::part(google):hover, sz-vault-access::part(microsoft):hover {
    background:var(--iris-blue); color:var(--iris-paper); }
  sz-vault-access::part(heading) { color:var(--iris-blue); font-weight:var(--iris-w-bold); }
  sz-vault-access::part(box) { border-radius:var(--iris-r-panel); }

  .page > #quartz-body .sidebar.right { background:var(--iris-field); padding:2rem 1.5rem;
                                        border-radius:var(--iris-r-panel); }
  .sidebar.right h3 { color:var(--iris-blue); font-size:.9375rem;
                      font-weight:var(--iris-w-bold); }

  .page > #quartz-body > footer { background:var(--iris-blue); color:var(--iris-paper);
    padding-block:3.5rem; border-block-start:4px solid var(--iris-green); }
  sz-site-footer::part(heading) { color:var(--iris-paper); font-size:.9375rem;
                                  font-weight:var(--iris-w-bold); }
  sz-site-footer::part(row) { color:var(--iris-field); font-weight:var(--iris-w-reg); }
  sz-site-footer::part(row):hover { color:var(--iris-green); }
  sz-site-footer::part(copyright) { color:var(--iris-hair); font-size:.8125rem; }

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

  sz-library::part(card) { background:var(--iris-paper); border:1px solid var(--iris-hair);
                           border-radius:var(--iris-r-card); }
  sz-library::part(header) { color:var(--iris-blue); font-weight:var(--iris-w-bold); }

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

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