/**
 * Victoria — a white-label skin. The client's identity on SazAI's elements. (data-skin="victoria")
 *
 * THE NAME. The giant waterlily carries a ribbed structural lattice on the underside of a leaf
 * that is otherwise thin enough to see through, and engineers copied it to roof a building. A
 * flat sheet made to carry a load is exactly what this client sells, and exactly how their
 * pages read: quiet on the surface, structural underneath.
 *
 * 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 alternate by one step off white, cards become
 * bare photo tiles with their captions laid over a scrim rather than framed objects, and the
 * footer becomes a deep blue plane. Nothing is removed.
 *
 * WHERE THE VALUES COME FROM. No public brand book: the client's brand source gates logotype,
 * colour and typography behind a login, which was not entered, and no official page publishes a
 * typeface or a hex. Absence recorded, not filled. Every value here is a computed style measured
 * on the home and one interior page (2026-09-11). The CTA geometry came from a supplementary
 * probe because the client's calls to action are plain links, not buttons, and a button selector
 * does not see them.
 *
 * THE VOICE, AND IT IS UNUSUAL FOR A CORPORATE SITE. Zero letter-spacing and zero uppercase on
 * either page. One family carries display and body alike, separated only by weight and size.
 * Headings are grey rather than the brand blue; the blue is reserved for the footer plane and
 * for every link. That restraint is the identity, so it is reproduced literally.
 *
 * TYPE. The measured face is freely licensed, so the stack can name it honestly. Nothing is
 * downloaded, and the chain 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.
 * DIRECTION. Every inline offset is logical, so the skin flips with the document in ar and he.
 */

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

  /* ========================= BRAND VALUES ========================= */
  --vic-blue:#023f88;         /* the footer plane and every link. 10.4:1 on paper */
  --vic-cyan:#00bdf2;         /* one accent, and only on the sustainability register */
  --vic-head:#4a4a4a;         /* headings are grey here, not blue: that is the client's move */
  --vic-body:#5a5a5a;
  --vic-paper:#ffffff;
  --vic-step:#f6f6f6;         /* the one step off white that separates every section */
  --vic-hair:#e2e2e2;
  --vic-scrim:rgba(0,0,0,.45); /* captions sit on this, over a photograph */
  --vic-deep:#011f44;

  --vic-bar:4.5rem;
  --vic-measure:78rem;
  --vic-gutter:clamp(1.25rem, 5vw, 4.5rem);
  --vic-r:4px;                /* the only radius on the entire site */

  --vic-sans:"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;
  --vic-w-reg:400; --vic-w-med:500; --vic-w-bold:700;

  color-scheme: light dark;

  *, *::before, *::after { box-shadow:none !important; letter-spacing:normal !important; }

  body { background:var(--vic-paper); color:var(--vic-body); font-family:var(--vic-sans);
         font-weight:var(--vic-w-reg); text-transform:none; }

  .page > #quartz-body { display:block !important; max-width:none !important;
                         padding-block-start:var(--vic-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(--vic-gutter) !important; padding-block:0 !important;
    background:var(--vic-paper) !important; border-block-end:1px solid var(--vic-hair) !important; }

  .sidebar.left > .page-title { grid-area:title; margin:0 !important;
    block-size:var(--vic-bar); display:flex; align-items:center; }
  .sidebar.left > .sazai-nav-menu-mount { grid-area:nav; display:flex; align-items:center;
    block-size:var(--vic-bar); }
  .sidebar.left > .flex-component { grid-area:search; display:flex !important;
    align-items:center; block-size:var(--vic-bar); }
  .sidebar.left > .sazai-rail-chrome { grid-area:chrome; display:flex !important;
    align-items:center; gap:2rem; min-block-size:var(--vic-bar);
    margin-inline:calc(-1 * var(--vic-gutter)) !important; padding-inline:var(--vic-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(--vic-blue); font-weight:var(--vic-w-bold);
    font-size:1.125rem; 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(--vic-head); font-weight:var(--vic-w-med);
                           font-size:.9375rem; }
  sz-nav-menu::part(row):hover { color:var(--vic-blue); }
  sz-nav-menu::part(box) { background:var(--vic-paper); border:1px solid var(--vic-hair);
                           border-radius:var(--vic-r); }

  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(--vic-head); }

  .center > .page-header { background:var(--vic-step); padding:5rem var(--vic-gutter) 3rem; }
  .center > .page-header h1, .center article h1 {
    color:var(--vic-head); font-size:clamp(2.125rem, 4.8vw, 3.25rem); line-height:1.2;
    font-weight:var(--vic-w-bold); text-transform:none; }

  sz-lotus { background:var(--vic-step) !important; }
  sz-lotus::part(stage) { background:var(--vic-step); }
  sz-lotus > [slot="title"] { color:var(--vic-head); font-weight:var(--vic-w-bold);
    font-size:clamp(1.875rem, 4.2vw, 3rem); line-height:1.2; }

  .center > article { max-inline-size:var(--vic-measure); padding-inline:var(--vic-gutter); }
  .center article h2 { color:var(--vic-head); font-size:2rem; font-weight:var(--vic-w-bold);
                       line-height:1.25; }
  .center article h3 { color:var(--vic-head); font-size:1.3125rem;
                       font-weight:var(--vic-w-med); line-height:1.3; }
  .center article p  { font-size:1rem; line-height:1.7; color:var(--vic-body); }
  .center article p > strong { color:var(--vic-head); font-weight:var(--vic-w-bold); }
  .center > hr { border:0; border-block-start:1px solid var(--vic-hair); }

  /* a tile, not a framed card: a plate with its caption on a scrim */
  .acts { display:grid; grid-template-columns:repeat(auto-fit, minmax(15rem, 1fr)); gap:1rem; }
  .act { background:var(--vic-step); padding:0; border:0; border-radius:var(--vic-r);
         overflow:hidden; }
  .act > b    { display:block; background:var(--vic-scrim); color:var(--vic-paper);
                padding:1.25rem 1.25rem .5rem; font-size:1.0625rem;
                font-weight:var(--vic-w-bold); }
  .act > span { display:block; background:var(--vic-scrim); color:var(--vic-paper);
                padding:0 1.25rem 1.25rem; font-size:.9375rem; }

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

  /* their calls to action are white plates with a blue label and a hairline edge */
  sz-vault-access::part(google), sz-vault-access::part(microsoft) {
    background:var(--vic-paper); color:var(--vic-blue);
    border:.8px solid var(--vic-blue); border-radius:var(--vic-r);
    padding:.5rem 1rem; min-block-size:2.625rem; font-weight:var(--vic-w-bold); }
  sz-vault-access::part(google):hover, sz-vault-access::part(microsoft):hover {
    background:var(--vic-step); }
  sz-vault-access::part(heading) { color:var(--vic-head); font-weight:var(--vic-w-bold); }

  .page > #quartz-body .sidebar.right { background:var(--vic-step); padding:2rem 1.5rem; }
  .sidebar.right h3 { color:var(--vic-head); font-size:.9375rem;
                      font-weight:var(--vic-w-bold); }

  .page > #quartz-body > footer { background:var(--vic-blue); color:var(--vic-paper);
                                  padding-block:3.5rem; }
  sz-site-footer::part(heading) { color:var(--vic-cyan); font-size:.9375rem;
                                  font-weight:var(--vic-w-bold); }
  sz-site-footer::part(row) { color:var(--vic-paper); font-weight:var(--vic-w-reg); }
  sz-site-footer::part(row):hover { color:var(--vic-cyan); }
  sz-site-footer::part(copyright) { color:var(--vic-hair); font-size:.8125rem; }

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

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

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

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