/* Washington State labor force embeds: shared styles.
   Styled to the WWA port of the Workforce Index (workforce-index/wwa-port,
   00-styles.html), which follows WWA's Brand Standard Guide (3.12.23):
   Montserrat headlines and subheads, Lato body, WWA palette. Light only.
   The host's white chart card is the background, so these pages stay
   transparent. */

:root {
  /* Typography */
  --font-head: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --font-body: Lato, "Helvetica Neue", Arial, sans-serif;

  /* Brand */
  --wwa-green: #8fc440;    /* Renewal Green */
  --wwa-blue: #3675ba;     /* Steady Blue   */
  --wwa-charcoal: #404042; /* Charcoal Gray */
  --wwa-navy: #1c3a64;     /* Dark Blue     */
  --wwa-lime: #c8e563;     /* Accent Lime   */

  /* Text */
  --wi-ink: #1f1f21;
  --wi-ink-soft: rgba(64, 64, 66, 0.82);
  --wi-ink-faint: rgba(64, 64, 66, 0.66);

  /* Chart. Steady Blue carries the line: Dark Blue (the Unemployment
     section's theme) is too dark to read as a data color, so it stays in the
     chrome (title, active toggle). */
  --dv-lead: #3675ba;
  --dv-ink: #1f1f21;
  --dv-muted: #5c5c5e;
  --dv-axis: #9a9a9d;
  --dv-grid: #e6e7e9;
  --dv-gap: rgba(64, 64, 66, 0.07);

  --tip-bg: #fff;
  --tip-border: rgba(64, 64, 66, 0.16);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  background: transparent; /* embed contract: the host card is the background */
  color: var(--wi-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* color-scheme goes on body, never the root: a root color-scheme that differs
   from the host page's makes the browser paint an opaque backdrop behind the
   frame. */
body { color-scheme: light; }

/* Standalone preview (not in an iframe): paint a page so it's readable. */
html.is-standalone body { background: #f6f8fb; padding: 24px 16px; }

/* Theme fills, same as the port's .wi-theme--* (fill + a text colour that
   passes contrast on it). */
.wi-theme--white { --wi-fill: #ffffff; --wi-text: var(--wwa-charcoal); }
.wi-theme--blue  { --wi-fill: var(--wwa-blue); --wi-text: #ffffff; }
.wi-theme--navy  { --wi-fill: var(--wwa-navy); --wi-text: #ffffff; }
.wi-theme--green { --wi-fill: var(--wwa-green); --wi-text: var(--wwa-charcoal); }
.wi-theme--lime  { --wi-fill: var(--wwa-lime); --wi-text: var(--wwa-charcoal); }
.wi-theme--gray  { --wi-fill: #e8e8e9; --wi-text: var(--wwa-charcoal); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.error { color: #b3261e; padding: 12px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
