/**
 * Araucária — a white-label skin. The client's identity on SazAI's elements. (data-skin="araucaria")
 *
 * THE NAME. Seen from above, an araucária is a perfect radial array: branches at fixed angles
 * around a single axis, repeated up the whole trunk. It is the most engineered-looking tree in
 * the forest, and it is protected. An engineering identity, named for engineering that grew.
 *
 * 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 transparent bar over a full-bleed field, the hero becomes
 * photography with the type laid over it, sections alternate between white and one pale
 * blue-grey band, and the footer becomes a slate plane. Nothing is removed.
 *
 * WHERE THE VALUES COME FROM. The client's brand centre publishes only its FAQ openly; colours,
 * typography and logos all redirect to a login that was not entered, so no official hex and no
 * named typeface were obtained. A brand book PDF is public and unauthenticated but was not
 * downloaded. Absence recorded, not filled: every value here is a computed style measured on
 * the home and one interior page (2026-09-11).
 *
 * THE GEOMETRY. 98.1% of home elements compute zero radius and there are no gradients anywhere
 * on either page. The identity is carried by full-bleed photography, a hard type contrast and
 * two structural colours, and nothing is softened.
 *
 * THE TYPE, AND IT IS A SUPERFAMILY DOING FOUR JOBS. A compressed cut in capitals with negative
 * leading carries display, a light cut carries body, a monospaced cut carries the letterspaced
 * eyebrows, and an extended cut carries the navigation. Four voices, one family. That division
 * of labour is the identity and it is reproduced here with widely available stand-ins, because
 * the family is commercially licensed and the site is in fact serving trial files of it.
 * Nothing is downloaded (white-label ruling 2026-08-31), and the chain continues into Arabic,
 * Hebrew and CJK for the five locales a Latin-only stack would leave as tofu.
 *
 * THE YELLOW IS NOT ON THE HOME. It appears on product pages only, so it is declared as an
 * accent and used sparingly here, never as ink on white where it measures under 2:1.
 *
 * 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="araucaria"] {

  /* ========================= BRAND VALUES ========================= */
  --ara-blue:#100690;         /* the structural blue. 14.6:1 on paper */
  --ara-slate:#1e3137;        /* the second structure, and the footer plane */
  --ara-band:#f0f5f7;         /* the one pale blue-grey band that alternates with white */
  --ara-paper:#ffffff;
  --ara-body:#4a5a60;
  --ara-hair:#d6e0e4;
  --ara-yellow:#fcc317;       /* product-page accent. never ink on a light ground */
  --ara-scrim:rgba(30,49,55,.55);

  --ara-bar:5rem;
  --ara-measure:84rem;
  --ara-gutter:clamp(1.25rem, 5.5vw, 5rem);

  --ara-display:"Oswald", "Archivo Narrow", "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;
  --ara-text:"Inter", "Helvetica Neue", Arial,
             "Noto Sans Arabic", "Noto Sans Hebrew",
             "Hiragino Sans", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC",
             system-ui, sans-serif;
  --ara-mono:"IBM Plex Mono", ui-monospace,
             "Noto Sans Mono CJK JP", "Noto Sans Arabic", "Noto Sans Hebrew", monospace;
  --ara-w-light:300; --ara-w-reg:400; --ara-w-med:500; --ara-w-bold:700;

  color-scheme: light dark;

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

  body { background:var(--ara-paper); color:var(--ara-body); font-family:var(--ara-text);
         font-weight:var(--ara-w-light); }

  .page > #quartz-body { display:block !important; max-width:none !important;
                         padding-block-start:var(--ara-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(--ara-gutter) !important; padding-block:0 !important;
    background:var(--ara-slate) !important; border:0 !important; }

  .sidebar.left > .page-title { grid-area:title; margin:0 !important;
    block-size:var(--ara-bar); display:flex; align-items:center; }
  .sidebar.left > .sazai-nav-menu-mount { grid-area:nav; display:flex; align-items:center;
    block-size:var(--ara-bar); }
  .sidebar.left > .flex-component { grid-area:search; display:flex !important;
    align-items:center; block-size:var(--ara-bar); }
  .sidebar.left > .sazai-rail-chrome { grid-area:chrome; display:flex !important;
    align-items:center; gap:2rem; min-block-size:var(--ara-bar);
    margin-inline:calc(-1 * var(--ara-gutter)) !important; padding-inline:var(--ara-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(--ara-paper); font-family:var(--ara-display);
    font-weight:var(--ara-w-bold); font-size:1.25rem; text-transform:uppercase;
    letter-spacing:.04em; text-decoration:none; }

  .sazai-nav-menu-mount > .sazai-nav-content {
    display:flex !important; gap:2rem; align-items:center; position:static !important;
    background:transparent !important; border:0 !important; padding:0 !important; }
  sz-nav-menu::part(row) { color:var(--ara-paper); font-weight:var(--ara-w-med);
    font-size:.8125rem; text-transform:uppercase; letter-spacing:.06em; }
  sz-nav-menu::part(row):hover { color:var(--ara-yellow); }
  sz-nav-menu::part(box) { background:var(--ara-slate); border:0; }

  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(--ara-paper); }

  /* ===================== CAPITALS, COMPRESSED, NEGATIVE LEADING ===================== */
  .center > .page-header { background:var(--ara-slate); color:var(--ara-paper);
    padding:6rem var(--ara-gutter) 4rem; }
  .center > .page-header h1, .center article h1 {
    font-family:var(--ara-display); color:var(--ara-paper);
    font-size:clamp(2.75rem, 7.4vw, 6.25rem); line-height:.9; font-weight:var(--ara-w-med);
    text-transform:uppercase; letter-spacing:.005em; }

  sz-lotus { background:var(--ara-slate) !important; }
  sz-lotus::part(stage) { background:var(--ara-slate); }
  sz-lotus > [slot="title"] { font-family:var(--ara-display); color:var(--ara-paper);
    font-weight:var(--ara-w-med); text-transform:uppercase;
    font-size:clamp(2.25rem, 6vw, 5rem); line-height:.9; }

  /* the eyebrow: monospaced and letterspaced, the family's fourth voice */
  .center article > .markdown-preview-view > p:first-child {
    font-family:var(--ara-mono); font-size:.8125rem; text-transform:uppercase;
    letter-spacing:.14em; color:var(--ara-blue); }

  .center > article { max-inline-size:var(--ara-measure); padding-inline:var(--ara-gutter); }
  .center article h2 { font-family:var(--ara-display); color:var(--ara-slate);
    font-size:2.75rem; line-height:.95; font-weight:var(--ara-w-med);
    text-transform:uppercase; }
  .center article h3 { font-family:var(--ara-display); color:var(--ara-slate);
    font-size:1.5rem; line-height:1.1; font-weight:var(--ara-w-med);
    text-transform:uppercase; letter-spacing:.02em; }
  .center article p { font-size:1.0625rem; line-height:1.7; font-weight:var(--ara-w-light);
                      color:var(--ara-body); }
  .center article p > strong { color:var(--ara-blue); font-weight:var(--ara-w-bold); }
  .center > hr { border:0; border-block-start:1px solid var(--ara-hair); }

  .acts { display:grid; grid-template-columns:repeat(auto-fit, minmax(15rem, 1fr)); gap:1.25rem; }
  .act { background:var(--ara-band); padding:2rem 1.75rem; border:0; }
  .act > b { display:block; font-family:var(--ara-display); color:var(--ara-slate);
             font-size:1.375rem; font-weight:var(--ara-w-med); text-transform:uppercase;
             margin-block-end:.5rem; }
  .act > span { color:var(--ara-body); font-size:.98rem; }

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

  sz-vault-access::part(google), sz-vault-access::part(microsoft) {
    background:var(--ara-blue); color:var(--ara-paper); border:0;
    padding:.9rem 1.75rem; font-family:var(--ara-mono); font-size:.8125rem;
    text-transform:uppercase; letter-spacing:.1em; }
  sz-vault-access::part(google):hover, sz-vault-access::part(microsoft):hover {
    background:var(--ara-slate); }
  sz-vault-access::part(heading) { font-family:var(--ara-display); color:var(--ara-slate);
    text-transform:uppercase; font-weight:var(--ara-w-med); }

  .page > #quartz-body .sidebar.right { background:var(--ara-band); padding:2rem 1.5rem; }
  .sidebar.right h3 { font-family:var(--ara-mono); color:var(--ara-blue); font-size:.75rem;
    text-transform:uppercase; letter-spacing:.12em; }

  .page > #quartz-body > footer { background:var(--ara-slate); color:var(--ara-paper);
                                  padding-block:4rem; }
  sz-site-footer::part(heading) { font-family:var(--ara-mono); color:var(--ara-yellow);
    font-size:.75rem; text-transform:uppercase; letter-spacing:.12em; }
  sz-site-footer::part(row) { color:var(--ara-paper); font-weight:var(--ara-w-light); }
  sz-site-footer::part(row):hover { color:var(--ara-yellow); }
  sz-site-footer::part(copyright) { color:var(--ara-hair); font-size:.8125rem; }

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

  sz-library::part(card) { background:var(--ara-paper); border:1px solid var(--ara-hair); }
  sz-library::part(header) { font-family:var(--ara-display); color:var(--ara-slate);
                             text-transform:uppercase; }

  .center article pre { background:var(--ara-slate); color:var(--ara-paper);
                        font-family:var(--ara-mono); }
  .center article :not(pre) > code { background:var(--ara-band); color:var(--ara-blue);
                                     font-family:var(--ara-mono); }
  .center article table { border-collapse:collapse; }
  .center article th { background:var(--ara-slate); color:var(--ara-paper);
    font-family:var(--ara-mono); font-size:.75rem; text-transform:uppercase;
    letter-spacing:.1em; text-align:start; }
  .center article td { border-block-start:1px solid var(--ara-hair); }
  ::selection { background:var(--ara-yellow); color:var(--ara-slate); }
}

:root[data-skin="araucaria"][data-theme="dark"] {
  body { background:var(--ara-slate); color:var(--ara-hair); }
  .center > .page-header { background:var(--ara-slate); }
  sz-lotus, sz-lotus::part(stage) { background:var(--ara-slate) !important; }
  .center article h1, .center article h2, .center article h3 { color:var(--ara-paper); }
  .center article > .markdown-preview-view > p:first-child { color:var(--ara-yellow); }
  .center article p { color:var(--ara-hair); }
  .center article p > strong { color:var(--ara-yellow); }
  .act { background:rgba(255,255,255,.06); }
  .act > b { color:var(--ara-paper); }
  .act > span { color:var(--ara-hair); }
  a, a.internal { color:var(--ara-paper); }
  a:hover { color:var(--ara-yellow); }
  .page > #quartz-body .sidebar.right { background:rgba(255,255,255,.05); }
  .sidebar.right h3 { color:var(--ara-yellow); }
  sz-library::part(card) { background:rgba(255,255,255,.05);
                           border-color:rgba(255,255,255,.18); }
  sz-library::part(header) { color:var(--ara-paper); }
  .center article :not(pre) > code { background:rgba(255,255,255,.08); color:var(--ara-hair); }
  .center article td { border-block-start-color:rgba(255,255,255,.18); }
}
