/* ============================================================
   wi.css — Working Instruction theme
   ============================================================
   Visual identity:
   - Primary color: teal #15616E (matches Governance Site design
     tokens; the "operational tier" color, deliberately separate
     from the governance green/gold). Bright variant #1D7A8C
     for hover/secondary accents.
   - Header layout: compact logo + title block, type label BELOW
     title (deliberate inversion from AP), three-line metadata
   - Signature element: pale teal summary box at top + italic
     disclaimer beneath
   - Tables get strong teal-on-white treatment ("Quick reference" pattern)

   Used by class="wi" documents (IM-, CG-, SI-, FM- series, Tier 3).
   ============================================================ */

:root {
  --accent-primary: #15616E;
  --accent-bright:  #1D7A8C;
  --accent-light:   #E4F1F4;
  --accent-dark:    #0F4955;
  --wi-summary-bg:  #E4F1F4;
  --wi-table-zebra: #F4FAFB;
}

/* ---------- Header band ------------------------------------ */
/* WIs are the operational tier — small left-aligned logo strip
   above the title, then title and metadata flow below.
   Doc ID is prefixed to the title for quick consultation by ID. */
.gov-header.wi {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent-primary);
  margin-bottom: 18px;
}

.wi-logo-strip {
  margin-bottom: 12px;
}

.wi-logo-strip img {
  height: 80px;
  width: auto;
  display: block;
}

.wi-meta-block { width: 100%; }

/* Title in BLACK (deliberate vs AP's green title) — signals
   "the work is the headline, the document type is supporting metadata".
   The "IM-008 — " prefix is part of the title for quick ID lookup. */
.wi-title {
  font-size: 18pt;
  font-weight: 600;
  color: #1F1F1F;
  line-height: 1.18;
  margin: 0 0 1px 0;
}

/* Type label sits BELOW title — the deliberate inversion from AP */
.wi-type {
  font-family: Calibri, sans-serif;
  font-style: italic;
  color: var(--accent-primary);
  font-size: 11pt;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.wi-meta-line {
  font-size: 10pt;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.wi-meta-label {
  color: var(--text-faint);
}

/* ---------- Summary box (signature element) ---------------- */
.wi-summary-box {
  background: var(--wi-summary-bg);
  border-radius: 3px;
  padding: 14px 18px;
  margin: 0 0 6px 0;
  font-size: 11pt;
  line-height: 1.55;
  color: var(--text-body);
  page-break-inside: avoid;
}

.wi-summary-box p:last-child { margin-bottom: 0; }

.wi-disclaimer {
  font-size: 9pt;
  font-style: italic;
  color: var(--text-faint);
  margin: 0 0 18px 4px;
}

/* ---------- Heading overrides for WI ----------------------- */
/* Scoped to .gov-content so header band's wi-title (which is also
   an h1) keeps its own black-text styling. */
.tier-wi .gov-content h1 {
  color: var(--accent-primary);
  font-size: 14pt;
  margin: 14px 0 10px 0;
}

.tier-wi .gov-content h2 {
  color: var(--accent-primary);
  font-size: 12.5pt;
}

.tier-wi .gov-content h3 {
  color: var(--accent-primary);
  font-size: 11pt;
}

/* ---------- Tables: WI's strong styling -------------------- */
.tier-wi .gov-content table tbody tr:nth-child(even) {
  background: var(--wi-table-zebra);
}

/* ---------- Procedure / numbered step lists ---------------- */
/* Author opt-in: <ol class="gov-procedure"> for circle-numbered steps */
ol.gov-procedure {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: 14px 0;
}

ol.gov-procedure > li {
  counter-increment: step;
  padding-left: 2.5em;
  position: relative;
  margin-bottom: 12px;
}

ol.gov-procedure > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8em;
  height: 1.8em;
  background: var(--accent-primary);
  color: #FFFFFF;
  border-radius: 50%;
  text-align: center;
  line-height: 1.8em;
  font-weight: 500;
  font-size: 10pt;
}

/* ---------- Tip / Note / Warning callouts ------------------ */
/* Author opt-in: <div class="gov-tip">...</div> etc. */
.gov-tip,
.gov-note,
.gov-warning {
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 3px;
  border-left: 3px solid;
  page-break-inside: avoid;
}

.gov-tip {
  background: var(--accent-light);
  border-left-color: var(--accent-primary);
}

.gov-tip::before {
  content: "Tip — ";
  font-weight: 500;
  color: var(--accent-dark);
}

.gov-note {
  background: #F0F4F8;
  border-left-color: #4A7BA6;
}

.gov-note::before {
  content: "Note — ";
  font-weight: 500;
  color: #2B5797;
}

.gov-warning {
  background: #FDF1E0;
  border-left-color: #C77400;
}

.gov-warning::before {
  content: "Important — ";
  font-weight: 500;
  color: #8B4F00;
}
