/*
 * statementofwork.org theme: Carbon Design System tokens, WorldCC colours.
 *
 * Token names follow Carbon v11 (--cds-*), based on the Carbon White theme.
 * Carbon's Blue scale is replaced by a scale built on the three WorldCC blues:
 *   blue-40 = WorldCC Light Blue #00b1eb
 *   blue-50 = WorldCC Mid Blue   #0080c9
 *   blue-80 = WorldCC Dark Blue  #004070
 * The other steps are variations of those three. blue-60 is the first step
 * that passes 4.5:1 on white, so it carries links, buttons and focus.
 * Neutrals are the Carbon Gray scale. Support colours are the WorldCC
 * secondary colours, used for status and highlights only.
 * Every surface is square: no radius, no shadow.
 */
:root {
  /* WorldCC blue scale */
  --wcc-blue-10: #edf8fe;
  --wcc-blue-20: #d6f0fc;
  --wcc-blue-30: #85d6f5;
  --wcc-blue-40: #00b1eb;
  --wcc-blue-50: #0080c9;
  --wcc-blue-60: #006fb0;
  --wcc-blue-70: #005a94;
  --wcc-blue-80: #004070;
  --wcc-blue-90: #002d52;
  --wcc-blue-100: #001a33;

  /* WorldCC secondary colours */
  --wcc-red: #d2231b;
  --wcc-yellow: #f9b000;
  --wcc-green: #5aaa35;

  /* Carbon Gray scale */
  --cds-gray-10: #f4f4f4;
  --cds-gray-20: #e0e0e0;
  --cds-gray-30: #c6c6c6;
  --cds-gray-50: #8d8d8d;
  --cds-gray-60: #6f6f6f;
  --cds-gray-70: #525252;
  --cds-gray-100: #161616;

  /* Carbon theme tokens */
  --cds-background: #ffffff;
  --cds-background-inverse: var(--wcc-blue-80);
  --cds-background-brand: var(--wcc-blue-50);
  --cds-layer-01: var(--cds-gray-10);
  --cds-layer-02: #ffffff;
  --cds-layer-accent-01: var(--cds-gray-20);
  --cds-field-01: var(--cds-gray-10);
  --cds-border-subtle-01: var(--cds-gray-30);
  --cds-border-strong-01: var(--cds-gray-50);
  --cds-border-inverse: var(--wcc-blue-80);
  --cds-border-interactive: var(--wcc-blue-60);
  --cds-text-primary: var(--cds-gray-100);
  --cds-text-secondary: var(--cds-gray-70);
  --cds-text-helper: var(--cds-gray-60);
  --cds-text-on-color: #ffffff;
  --cds-text-inverse: #ffffff;
  --cds-link-primary: var(--wcc-blue-60);
  --cds-link-primary-hover: var(--wcc-blue-70);
  --cds-link-inverse: var(--wcc-blue-30);
  --cds-interactive: var(--wcc-blue-60);
  --cds-focus: var(--wcc-blue-60);
  --cds-focus-inverse: #ffffff;
  --cds-highlight: var(--wcc-blue-20);
  --cds-button-primary: var(--wcc-blue-60);
  --cds-button-primary-hover: var(--wcc-blue-70);
  --cds-button-primary-active: var(--wcc-blue-80);
  --cds-support-error: var(--wcc-red);
  --cds-support-success: var(--wcc-green);
  --cds-support-warning: var(--wcc-yellow);
  --cds-support-info: var(--wcc-blue-70);
  --cds-overlay: rgba(0, 45, 82, 0.6);

  /* Site roles built on the tokens above */
  --sow-heading: var(--wcc-blue-80);
  --sow-accent-soft: var(--wcc-blue-20);
  --sow-highlight: var(--wcc-yellow);
  /* Photographs: greyscale shifted to a WorldCC blue tone */
  --sow-photo-tone: grayscale(1) sepia(0.6) hue-rotate(172deg) saturate(1.5) contrast(1.03) brightness(1.03);

  /* Type. IBM Plex Sans and IBM Plex Mono, Carbon's own faces. The WorldCC
     faces, Helvetica Neue then Arial, are the fallbacks. */
  --cds-font-sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --cds-font-mono: 'IBM Plex Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace;

  /* Carbon spacing scale */
  --cds-spacing-01: 0.125rem;
  --cds-spacing-02: 0.25rem;
  --cds-spacing-03: 0.5rem;
  --cds-spacing-04: 0.75rem;
  --cds-spacing-05: 1rem;
  --cds-spacing-06: 1.5rem;
  --cds-spacing-07: 2rem;
  --cds-spacing-08: 2.5rem;
  --cds-spacing-09: 3rem;
  --cds-spacing-10: 4rem;
}

body {
  font-family: var(--cds-font-sans);
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--cds-highlight); color: var(--cds-text-primary); }

/* Carbon focus: a 2px ring in the focus colour */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cds-focus);
  outline-offset: 1px;
}

/* Brand mark: a flat WorldCC Light Blue square */
.brand-dot, .f-brand .brand-dot { background: var(--wcc-blue-40); border-radius: 0; }

/* Carbon button: square, label left, arrow right */
.btn {
  border-radius: 0;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.16px;
  padding: 0 16px;
  gap: 32px;
  justify-content: space-between;
}
.btn::after { font-family: var(--cds-font-sans); }
.btn-sm { padding: 0 16px; gap: 24px; }

/* Checkboxes and radios take the interactive colour */
input[type="checkbox"], input[type="radio"] { accent-color: var(--cds-interactive); }

/* WorldCC logo. The blue logo sits on the white header and is hidden where the
   header has no room. The white logo sits directly on the Dark Blue footer. */
.wcc-mark { display: none; align-items: center; height: 28px; padding-right: 14px; margin-right: 2px; border-right: 1px solid var(--cds-border-subtle-01); flex-shrink: 0; }
.wcc-mark img { height: 26px; width: auto; }
@media (min-width: 600px) { .wcc-mark { display: flex; } }
@media (min-width: 1024px) and (max-width: 1279px) { .wcc-mark { display: none; } }
.f-wcc { display: inline-block; margin-top: 20px; }
.f-wcc img { height: 32px; width: auto; }
.wcc-mark + div.brand { margin-left: 12px; }

/* Header title: plain weight, no mark */
.top-bar .brand { font-weight: 400; }
