@charset "UTF-8";
/* ===========================================================================
   InWasser Brand Theme - PTAS BMI
   Copyright 2026 - Raul Herreros - Amtiri SpA

   Deployment brand layer for the INW-PTA instance. Linked last by SitePage
   from application.theme, so the cascade is:

       J2W/tokens.css -> J2W/j2w.css -> FX2WEB/fx2web.css
                      -> workspace.css -> resources/site-overrides.css
                      -> this file

   Palette taken from www.inwasser.com, read off the saved page in
   docs/InWASSER Tecnologia del Agua.mhtml:

       #013C46   the ground of every dark section - services, contact,
                 "NOSOTROS", "CONOZCANOS". The site's signature colour
       #347FC4   the CTA blue ("Mas Detalle" buttons)
       #92BEE1   light blue, used for headings sitting on the dark ground
       #AF0003   the crimson of the "in" in the wordmark

   Scope rule: this file retunes design tokens and nothing else. It defines
   no layout, no component and - as of this revision - not a single surface
   rule, because every rule added here is a rule that stops following the
   upstream libraries.

   Fonts are deliberately NOT taken from the site. It loads Merriweather from
   fonts.gstatic.com, and this instance runs behind a CSP with font-src 'self'
   on plants that may have no route to the internet at all - a webfont here
   would fail closed and fall back mid-render.
   =========================================================================== */

/* =========================================
   THE SHAPE OF THIS THEME

   One ground, tinted. Every surface in the product - the page, the header,
   the login card, panels, tables, dialogs, the fullscreened dashboard - sits
   on the same light, teal-leaning neutral family. The brand is carried by
   the temperature of that family, by the accent, and by the mark; not by a
   dark backdrop that the content then has to be excepted from.

   The previous revision did the opposite: a #013C46 page ground with light
   content floating on it. That shape cost a rule for every piece of chrome
   that landed on the dark - the header, its title, subtitle, user, chips,
   rules and avatar, the fullscreen tool rail, and a plaque painted behind
   the logo so a reversed lockup would have something to be reversed against.
   Each of those was a component re-inked by hand, and each was a component
   that would break the next time it changed upstream.

   Retuning the gray ramp instead reaches all of it at once. Every surface,
   border and text token in tokens.css is derived from that ramp, so moving
   the ramp onto the brand hue moves the entire product with it - including
   whatever ships upstream tomorrow - and leaves nothing to except.

   The scheme is pinned to LIGHT so a viewer whose OS is set to dark still
   gets the instance the plant was commissioned with, rather than a half-
   applied second scheme.
   ========================================= */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
    color-scheme: light;
}

:root {
    /* =========================================
       PRIMITIVES - InWasser teal
       #013C46 is the site's own dark-section ground. It is no longer a
       surface here; it survives as the ink of the wordmark and as the hue
       the whole neutral ramp below is tuned to.
       ========================================= */
    --inw-teal-900: #013C46;
    --inw-teal-700: #045A69;

    /* The page ground. Deeper than gray-50 on purpose: at 1.18:1 against
       white it is the separation that lets a panel read as a raised sheet
       without a heavier border, and it is still light enough that nothing
       placed on it has to be re-inked. */
    --inw-teal-50: #E5EEF1;

    /* =========================================
       PRIMITIVES - InWasser blue (accent)
       500 and 300 are the site's two blues verbatim. 600 is one step down
       and is what the interactive tokens use: see the accent block below.
       ========================================= */
    --inw-blue-700: #21527F;
    --inw-blue-600: #2A66A0;
    --inw-blue-500: #347FC4;
    --inw-blue-300: #92BEE1;

    /* PRIMITIVE - InWasser crimson, the trademark ink of the "in".
       Identity only: it names no state and no control, so it appears in the
       mark and in the header's signature hairline and nowhere else. */
    --inw-crimson-600: #AF0003;

    /* =========================================
       THE NEUTRAL RAMP

       tokens.css derives every surface, border and text token from
       --j2w-gray-*, which upstream is Slate - a blue-leaning neutral at
       hue 215. Rotating the ramp to the brand's own hue 193 and keeping
       each step's lightness and saturation exactly where Slate had them
       gives the product the brand's temperature without touching a single
       component and without moving any contrast relationship: measured on
       white, body text lands at 16.1:1 (Slate 17.9:1), secondary text at
       6.5:1 (7.6:1) - both still far above the 4.5:1 they must hold.

       This is the whole theme. Everything below is the page ground, the
       accent, and the two places the mark needs.
       ========================================= */
    --j2w-gray-50:  #F8FBFC;
    --j2w-gray-100: #F1F7F9;
    --j2w-gray-200: #E2EDF0;
    --j2w-gray-300: #CBDCE1;
    --j2w-gray-400: #94B0B8;
    --j2w-gray-500: #64838B;
    --j2w-gray-600: #476269;
    --j2w-gray-700: #334E55;
    --j2w-gray-800: #1E353B;
    --j2w-gray-900: #0F242A;
    --j2w-gray-950: #021217;

    /* The one surface token overridden, and only because the ramp cannot
       express it: gray-50 is the right *panel* white-adjacent step and too
       close to white to be a ground. Everything else - surface, raised,
       sunken, every text and border token - keeps its upstream derivation
       and now resolves through the ramp above. */
    --j2w-bg: var(--inw-teal-50);

    /* =========================================
       ACCENT - the site's blue, one step down

       #347FC4 is painted on white by the site and reaches 4.22:1 there,
       under the 4.5:1 that body-sized link text asks for. Panels here are
       white, so the interactive tokens take blue-600 (5.99:1 as text on
       white, and the same the other way round when it is a filled button
       carrying white text). The site's own #347FC4 stays as the wash and
       the selection tint, where it sits behind content rather than being
       read.
       ========================================= */
    --j2w-accent: var(--inw-blue-600);
    --j2w-accent-hover: var(--inw-blue-700);
    --j2w-accent-active: var(--inw-blue-700);
    --j2w-accent-subtle: color-mix(in srgb, var(--inw-blue-500) 12%, transparent);
    --j2w-selection: color-mix(in srgb, var(--inw-blue-500) 28%, transparent);

    /* Declared from the primitive upstream rather than derived from
       --j2w-accent, so it does not follow the override above. */
    --j2w-focus-ring: var(--inw-blue-500);
}

/*
 * Deliberately not overridden:
 *
 *   --j2w-surface*, --j2w-text*, --j2w-border*
 *                                all of them derive from the ramp above and
 *                                are on the brand already. Naming one here
 *                                would only pin it out of the system.
 *   --j2w-danger / --j2w-safe    the alarm and the go-ahead. Their whole value
 *                                is that an operator already knows them; a
 *                                brand has no business retuning either.
 *   --j2w-space-* / radius / motion
 *                                a brand is a palette here, not a new metric
 *                                system. Retuning spacing would desynchronise
 *                                this instance from every shared component.
 *   --j2w-font-*                 see the CSP note in the header.
 */

/* =========================================
   THE SIGNATURE

   The single piece of chrome this file draws, and the only rule in it that
   is not a token. workspace.css already gives the header bar an accent-
   tinted ground and a 2px accent rule under it; that rule is restated here
   as the brand gradient - teal into the site blue, closing on the trademark
   crimson - so the one line every screen carries is the instance's own.

   Written against .wks-header, the class the workspace library actually
   ships. The revision this replaces addressed .site-header, .site-avatar and
   six more selectors under that prefix: none of them exist in any stylesheet
   or page this product serves, so every one of those rules was dead and the
   header was never branded at all.
   ========================================= */
.wks-header {
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg,
        var(--inw-teal-900) 0%,
        var(--inw-blue-500) 55%,
        var(--inw-crimson-600) 100%) 1;
}

/* =========================================
   THE MARK

   theme/logo-inwasser.svg is now the positive lockup: the "in" in trademark
   crimson, "WASSER" and the strapline band in the brand teal, the strapline
   letters punched through the band to whatever is behind them. On a light
   ground that is the mark as the company draws it, and it needs no plaque -
   which is why the previous revision's painted background is gone, along
   with the reversed ink it existed to serve.

   The one thing still worth saying: j2w.css sets object-fit: scale-down
   globally, which pins an image to its intrinsic size. Right for a photo,
   wrong for a vector - it would freeze this logo at the 230x70 of its
   viewBox however much room the slot gives it.
   ========================================= */
.site-logo {
    object-fit: contain;
}
