/* ===========================================================================
   Western Confluence Group — house style for story pages.

   Shared by every story in this repo. Stories link this file and then add only
   their own page-specific rules inline. Colors are lifted from the logo:
   #9d2123 red, near-black ink, white ground.
   ========================================================================= */

/* --- fonts --------------------------------------------------------------
   Self-hosted rather than loaded from Google Fonts. Pulling them from
   fonts.googleapis.com cost two extra DNS lookups and TLS handshakes before a
   single glyph could render, which showed up as a flash of fallback text on
   every page load. Serving them from our own origin also lets the CSP drop
   Google entirely.

   Only the weights actually used are here — Barlow 300/400/600 plus 400
   italic, DM Mono 400/500. The latin-ext files are declared but only fetched
   if a page actually uses a character in that range, so the normal cost is
   just the latin files.

   Regenerate by re-downloading from Google Fonts if a new weight is needed;
   both families are Open Font License. */

@font-face {
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400i-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400i-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/barlow-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/barlow-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --wcg-red:      #9d2123;
  --wcg-red-dk:   #7d1a1c;
  --wcg-ink:      #141414;
  --wcg-body:     #33323a;
  --wcg-muted:    #6e6d78;
  --wcg-rule:     #e2e0dd;
  --wcg-ground:   #ffffff;
  --wcg-tint:     #f7f6f4;
  --wcg-dark:     #141414;

  --wcg-sans: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wcg-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wcg-measure: 44rem;   /* prose column */
  --wcg-wide:    68rem;   /* full-bleed sections */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--wcg-ground);
  color: var(--wcg-body);
  font-family: var(--wcg-sans);
  font-size: 18px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* --- masthead ----------------------------------------------------------- */

.wcg-bar {
  background: var(--wcg-dark);
  border-bottom: 3px solid var(--wcg-red);
}
.wcg-bar-inner {
  max-width: var(--wcg-wide);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
/* Logo art is white-on-transparent, so it only reads on the dark bar — never
   place it on the white ground. Height is set generously because the lockup
   stacks a mark over "WCG" over the full wordmark. */
.wcg-bar img { height: 62px; width: auto; display: block; }
.wcg-bar-tag {
  font-family: var(--wcg-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b6b4b0;
  text-align: right;
  line-height: 1.5;
}

/* --- article shell ------------------------------------------------------ */

.wcg-wrap { max-width: var(--wcg-wide); margin: 0 auto; padding: 0 24px; }
.wcg-prose { max-width: var(--wcg-measure); }

.wcg-hero { padding: 56px 0 34px; border-bottom: 1px solid var(--wcg-rule); }

.wcg-kicker {
  font-family: var(--wcg-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--wcg-red);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: var(--wcg-ink);
  max-width: 20ch;
}

.wcg-dek {
  margin-top: 20px;
  max-width: var(--wcg-measure);
  font-size: 1.22rem;
  line-height: 1.55;
  font-weight: 300;
  color: var(--wcg-muted);
}

.wcg-byline {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--wcg-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--wcg-muted);
}
.wcg-byline strong { color: var(--wcg-ink); font-weight: 500; }

/* --- body copy ---------------------------------------------------------- */

.wcg-body { padding: 40px 0 8px; }

h2 {
  margin: 46px 0 4px;
  font-size: 1.62rem;
  line-height: 1.2;
  letter-spacing: -0.014em;
  font-weight: 600;
  color: var(--wcg-ink);
}
h2::after {
  content: '';
  display: block;
  width: 46px;
  height: 3px;
  background: var(--wcg-red);
  margin-top: 12px;
}
h2 + p { margin-top: 18px; }

h3 {
  margin: 30px 0 10px;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--wcg-ink);
}

p { margin-bottom: 20px; max-width: var(--wcg-measure); }
p strong { color: var(--wcg-ink); font-weight: 600; }

a { color: var(--wcg-red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--wcg-red-dk); }

/* --- key numbers strip -------------------------------------------------- */

.wcg-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--wcg-rule);
  border: 1px solid var(--wcg-rule);
  margin: 34px 0 42px;
}
.wcg-fact { background: var(--wcg-ground); padding: 20px 18px; }
.wcg-fact-val {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--wcg-red);
  letter-spacing: -0.01em;
}
.wcg-fact-label {
  margin-top: 7px;
  font-family: var(--wcg-mono);
  font-size: 9.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--wcg-muted);
  line-height: 1.5;
}

/* --- callout ------------------------------------------------------------ */

.wcg-callout {
  border-left: 4px solid var(--wcg-red);
  background: var(--wcg-tint);
  padding: 22px 24px;
  margin: 34px 0;
  max-width: var(--wcg-measure);
}
.wcg-callout p { margin: 0; font-size: 1.08rem; color: var(--wcg-ink); }
.wcg-callout p + p { margin-top: 12px; }
.wcg-callout .wcg-callout-label {
  font-family: var(--wcg-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wcg-red);
  margin-bottom: 10px;
}

/* --- client hub --------------------------------------------------------
   Components for a client landing page (see /oakmont/). Story pages don't use
   any of these. */

.wcg-section-label {
  font-family: var(--wcg-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wcg-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--wcg-rule);
  margin: 54px 0 26px;
}

/* the current briefing — the one thing this page exists to point at */
.wcg-featured {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--wcg-rule);
  border-top: 3px solid var(--wcg-red);
  padding: 30px 32px 28px;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.wcg-featured:hover {
  border-color: #cfcdc9;
  border-top-color: var(--wcg-red);
  box-shadow: 0 6px 22px rgba(20,20,20,0.07);
  transform: translateY(-1px);
}
.wcg-featured .wcg-feat-meta {
  font-family: var(--wcg-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wcg-red);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.wcg-featured h2 {
  margin: 14px 0 0;
  font-size: 1.72rem;
  line-height: 1.15;
  color: var(--wcg-ink);
  max-width: 24ch;
}
.wcg-featured h2::after { display: none; }   /* no red rule inside a card */
.wcg-featured p {
  margin: 14px 0 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--wcg-muted);
  max-width: 52ch;
}
.wcg-featured .wcg-go {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--wcg-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wcg-red);
}
.wcg-featured:hover .wcg-go { color: var(--wcg-red-dk); }

/* archive rows — no border-top; .wcg-section-label already draws that rule */
.wcg-archive { margin-top: -6px; }
.wcg-archive-item {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 4px 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--wcg-rule);
  text-decoration: none;
  color: inherit;
}
.wcg-archive-item:hover .wcg-arch-title { color: var(--wcg-red); }
.wcg-arch-date {
  font-family: var(--wcg-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wcg-muted);
}
.wcg-arch-title { font-size: 1.06rem; font-weight: 600; color: var(--wcg-ink); line-height: 1.35; }
.wcg-arch-sub { grid-column: 2; font-size: 0.94rem; color: var(--wcg-muted); line-height: 1.5; }
.wcg-archive-empty {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--wcg-rule);
  color: var(--wcg-muted);
  font-size: 0.98rem;
}

/* back to the client hub — sits at the top of a story, above the hero */
.wcg-back {
  display: inline-block;
  margin: 26px 0 -18px;
  font-family: var(--wcg-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wcg-muted);
  text-decoration: none;
}
.wcg-back:hover { color: var(--wcg-red); }

/* three-up explainer / contact panels */
.wcg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--wcg-rule);
  border: 1px solid var(--wcg-rule);
}
.wcg-card { background: var(--wcg-ground); padding: 24px 22px 26px; }
.wcg-card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.wcg-card p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--wcg-muted); max-width: none; }

@media (max-width: 560px) {
  .wcg-featured { padding: 24px 20px; }
  .wcg-featured h2 { font-size: 1.42rem; }
  .wcg-archive-item { grid-template-columns: 1fr; gap: 6px; }
  .wcg-arch-sub { grid-column: 1; }
}

/* --- figures ------------------------------------------------------------
   Charts and outlook graphics. The image sits on a light tint because most
   agency products (CPC outlooks, SPC charts) are drawn on white and otherwise
   dissolve into the page. */

.wcg-figure { margin: 34px 0 38px; max-width: var(--wcg-measure); }
.wcg-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--wcg-tint);
  border: 1px solid var(--wcg-rule);
}
.wcg-figure figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--wcg-muted);
}
.wcg-figure figcaption b { color: var(--wcg-ink); font-weight: 600; }
.wcg-figure .wcg-source {
  display: block;
  margin-top: 7px;
  font-family: var(--wcg-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wcg-muted);
}

/* --- plain lists -------------------------------------------------------- */

.wcg-prose ul, .wcg-prose ol { margin: 0 0 22px 1.15rem; max-width: var(--wcg-measure); }
.wcg-prose li { margin-bottom: 9px; padding-left: 4px; }
.wcg-prose li::marker { color: var(--wcg-red); }

/* --- checklist ---------------------------------------------------------- */

.wcg-checklist { margin: 30px 0 12px; max-width: var(--wcg-measure); }

.wcg-check-group { border-top: 1px solid var(--wcg-rule); padding-top: 22px; margin-top: 30px; }
.wcg-check-group:first-child { margin-top: 0; }
.wcg-check-group > h3 { margin-top: 0; display: flex; align-items: baseline; gap: 10px; }
.wcg-check-group > h3 .wcg-when {
  font-family: var(--wcg-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wcg-red);
}

.wcg-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  cursor: pointer;
  line-height: 1.6;
  border-bottom: 1px solid #f2f1ef;
}
.wcg-check:last-child { border-bottom: 0; }
.wcg-check input {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 auto;
  width: 19px; height: 19px;
  margin-top: 4px;
  border: 1.5px solid #c3c1bd;
  border-radius: 2px;
  background: var(--wcg-ground);
  cursor: pointer;
  position: relative;
  transition: background .13s, border-color .13s;
}
.wcg-check input:hover { border-color: var(--wcg-red); }
.wcg-check input:focus-visible { outline: 2px solid var(--wcg-red); outline-offset: 2px; }
.wcg-check input:checked { background: var(--wcg-red); border-color: var(--wcg-red); }
.wcg-check input:checked::after {
  content: '';
  position: absolute;
  left: 5.5px; top: 1.5px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}
.wcg-check input:checked ~ span { color: var(--wcg-muted); text-decoration: line-through; text-decoration-color: #c9c7c3; }
.wcg-check span b { color: var(--wcg-ink); font-weight: 600; }

.wcg-check-reset {
  margin-top: 20px;
  font-family: var(--wcg-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wcg-muted);
  background: none;
  border: 1px solid var(--wcg-rule);
  padding: 8px 14px;
  cursor: pointer;
}
.wcg-check-reset:hover { color: var(--wcg-red); border-color: var(--wcg-red); }

/* --- warning-sign table ------------------------------------------------- */

.wcg-signs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 28px 0 34px;
  max-width: var(--wcg-measure);
}
.wcg-sign { border: 1px solid var(--wcg-rule); border-top: 3px solid var(--wcg-muted); padding: 20px; }
.wcg-sign.is-critical { border-top-color: var(--wcg-red); }
.wcg-sign h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--wcg-ink);
  margin-bottom: 4px;
}
.wcg-sign .wcg-sign-do {
  font-family: var(--wcg-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wcg-red);
  margin-bottom: 12px;
}
.wcg-sign ul { margin: 0 0 0 1rem; font-size: 0.94rem; line-height: 1.55; }
.wcg-sign li { margin-bottom: 6px; }

/* --- footer ------------------------------------------------------------- */

.wcg-foot {
  margin-top: 64px;
  background: var(--wcg-dark);
  color: #a8a6a2;
  padding: 40px 0 34px;
  font-size: 0.88rem;
  line-height: 1.65;
}
.wcg-foot .wcg-wrap { display: flex; flex-wrap: wrap; gap: 30px 60px; justify-content: space-between; }
.wcg-foot strong { color: #fff; font-weight: 600; display: block; margin-bottom: 6px; letter-spacing: 0.01em; }
.wcg-foot a { color: #d6d4d0; }
.wcg-foot a:hover { color: var(--wcg-red); }
.wcg-disclaimer {
  max-width: var(--wcg-measure);
  font-family: var(--wcg-mono);
  font-size: 10.5px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: #7b7975;
}
.wcg-foot-rule { border-top: 1px solid #2a2a2a; margin: 28px 0 22px; }

/* --- responsive --------------------------------------------------------- */

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wcg-wrap { padding: 0 18px; }
  .wcg-bar-inner { padding: 12px 18px; }
  .wcg-bar img { height: 46px; }
  .wcg-bar-tag { font-size: 9px; letter-spacing: 0.16em; }
  .wcg-hero { padding: 38px 0 26px; }
  .wcg-dek { font-size: 1.1rem; }
}

/* --- print -------------------------------------------------------------- */

@media print {
  body { font-size: 11pt; color: #000; }
  .wcg-bar { background: none; border-bottom: 2px solid var(--wcg-red); }
  .wcg-bar-tag, .wcg-check-reset { display: none; }
  .wcg-foot { background: none; color: #000; margin-top: 24pt; }
  .wcg-foot strong, .wcg-foot a { color: #000; }
  .wcg-check input { border-color: #000; }
  h2, h3, .wcg-check-group, .wcg-sign { break-inside: avoid; page-break-inside: avoid; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 8pt; color: #555; }
}
