/* ============================================================
   site-page-base.css  --  SITE-WIDE
   The boilerplate every Redesign 2026 page used to carry in its own
   stylesheet, held once: the site palette, the scoped reset, the
   button and header resets, the keyboard focus ring, the content
   column (.container) and the shared section-title base (.sec-title).
   A page stylesheet carries only what is specific to that page
   (STANDARDS.md s3).

   The palette sits on :root (not on the page wrapper) so that a page
   can override a token on .page-<slug> and the override still reaches
   elements inside the page whose own class begins with "page-"
   (.page-wave, .page-wave__img); a [class^="page-"] declaration would
   reset those to the site value. :root also lets the chrome
   (site-menu / site-footer) read the same palette later.

   Scope: every page wrapper is <div class="page-<slug>">, so the
   rules bind to [class^="page-"]. That has the same specificity as
   the .page-<slug> form each page used before, so page rules still
   win ties -- PROVIDED this file loads before the page stylesheet.
   Registration order in the CMS head: after the other site-*.css
   files, immediately before css/page-<slug>.css.

   ASCII-clean (required by the SmarterASP.NET upload filter).

   Loaded on every redesigned page via:
     getVersionedFile('css/site-page-base.css')

   SECTION INDEX
     0. Site palette (:root tokens)
     1. Reset (box-sizing, margins)
     2. Element resets (button, header)
     3. Focus ring
     4. Content column
     5. Section-title base
   ============================================================ */

/* -- 0. SITE PALETTE ------------------------------------------- */
/* One value, one name (STANDARDS s3). The product colours are named
   by product, never by colour; the Bio Tuner has exactly two purples
   (Brad, Nov 2026). A page declares its own --color-accent /
   --color-accent-dark / --color-accent-tint aliases and any page
   component tokens; it re-declares a token below only to override it
   (audit C19 -- Clearance keeps the legacy #555555 body text). */
:root {
  /* Brand colours by product */
  --color-silver-pulser:   #92ca6a; /* green */
  --color-magnetic-pulser: #59afb2; /* teal */
  --color-water-ozonator:  #4792bc; /* blue -- also the site primary */
  --color-bio-tuner:       #8873c3; /* purple -- the only Bio Tuner purple */

  /* Product pastel tints (themed sections, chips, compare columns) */
  --color-silver-pulser-tint:   #d9e8d8;
  --color-magnetic-pulser-tint: #cae4e6;
  --color-water-ozonator-tint:  #bbddf0;
  --color-bio-tuner-tint:       #d5d1e6;

  /* Neutrals and surfaces */
  --color-white:     #ffffff;
  --color-text:      #3b3b3b; /* body text */
  --surface-warm:    #f8f4f2; /* the cream */
  --surface-cool:    #eff9fd; /* the pale blue */
  --color-btn-hover: #555555; /* on-hover background of every filled CTA (designer "Variant3") */
}

/* -- 1. RESET (scoped to the page wrapper) --------------------- */
[class^="page-"] *,
[class^="page-"] *::before,
[class^="page-"] *::after {
  box-sizing: border-box;
  margin: 0;
}

/* -- 2. ELEMENT RESETS ----------------------------------------- */
[class^="page-"] button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
[class^="page-"] header { font: inherit; }   /* CMS bare-header leak */

/* -- 3. FOCUS RING --------------------------------------------- */
/* Keyboard/AT focus only (:focus-visible), never on mouse click.
   --color-accent-dark is defined on every page wrapper. */
[class^="page-"] a:focus-visible,
[class^="page-"] button:focus-visible,
[class^="page-"] input:focus-visible,
[class^="page-"] [tabindex]:focus-visible {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 2px;
}

/* -- 4. CONTENT COLUMN ----------------------------------------- */
[class^="page-"] .container {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(1200px + 2 * var(--space-container));
  margin-inline: auto;
  padding-inline: var(--space-container);
}

/* -- 5. SECTION-TITLE BASE ------------------------------------- */
/* Each block's __title modifier adds its own line-height, margin
   and colour (COMPONENTS.md). Pages whose titles share one
   line-height set it on .page-<slug> .sec-title in the page file. */
[class^="page-"] .sec-title {
  font-size: var(--text-heading);
  font-weight: 900;
}
