/* ============================================================
   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
     6. Phone numbers and email addresses
     7. Hero link (text + round arrow)
   ============================================================ */

/* -- 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;
}

/* -- 6. PHONE NUMBERS AND EMAIL ADDRESSES ---------------------- */
/* Site standard (Nov 2026) for every contact block:
     Toll Free: 1.800.224.0242 (USA &amp; Canada)
     Telephone: 1.250.770.2023
     Email: info@sota.com
     Monday to Friday, 8am - 4pm Pacific Time
   Each number is a tel: link and each address a mailto: link, and
   only the number / address is bold -- the label and the bracketed
   note around it stay at the line's own weight. The weight comes
   from here, so pages do not wrap them in <strong> and the
   containing line must NOT be bold. Colour is left to the page
   (accent or inherited). */
[class^="page-"] a[href^="tel:"],
[class^="page-"] a[href^="mailto:"] {
  font-weight: 700;
  text-decoration: none;
}
[class^="page-"] a[href^="tel:"]:hover,
[class^="page-"] a[href^="mailto:"]:hover { text-decoration: underline; }

/* -- 7. HERO LINK ---------------------------------------------- */
/* The one hero call-to-action style for every Redesign 2026 page
   (Brad, Nov 2026): bold text followed by a round accent disc with
   the sprite's ico-arrow-down. First used on Share Your SOTA
   Experience ("Ask for an interview"); pills are no longer used in
   heroes. Markup:
     <a class="hero__link" href="default.aspx?page=X#id">Label
       <span class="hero__link-icon" aria-hidden="true"><svg class="icon">
         <use href="/images/elements/site-icons-sprite.svg#ico-arrow-down"/></svg></span></a>
   The disc takes the page's --color-accent; a page that wants another
   product colour overrides .hero__link-icon background in its file. */
[class^="page-"] .hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.556em; /* 10px */
  font-size: 1.222em; /* 22px */
  font-weight: 700;
  line-height: 1.364; /* 30/22 */
  color: inherit; /* the hero's text colour, never the browser's link blue */
  text-decoration: none;
}
[class^="page-"] .hero__link-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.909em; /* 42px at 22 */
  height: 1.909em;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  transition: background-color 0.2s ease;
}
[class^="page-"] .hero__link-icon .icon { font-size: 0.727em; } /* 16px glyph */
[class^="page-"] .hero__link:hover .hero__link-icon,
[class^="page-"] .hero__link:focus-visible .hero__link-icon { background: var(--color-btn-hover); }
@media (prefers-reduced-motion: reduce) {
  [class^="page-"] .hero__link-icon { transition: none; }
}
