/* ─────────────────────────────────────────────────────────────────────────────
   The Prosperity Coalition: brand tokens and shared patterns
   (colours from the "Prosperity Through Partnership" deck; type from the logo).

   Every colour used on the site is defined once, here, on :root. Pages, inline
   styles, the TIA chat widget and the Leaflet maps reference these variables;
   no other stylesheet or inline style should contain a hex value.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* Core palette (from the deck) */
  --pc-red:      #B91C1C;   /* primary accent: underline bars, emphasis text, key highlights */
  --pc-navy:     #1E3A8A;   /* primary brand colour: callout panels, primary buttons, links */
  --pc-ink:      #101010;   /* wordmark and headings */
  --pc-body:     #2D262A;   /* body text */
  --pc-muted:    #888888;   /* rules, dividers, large secondary text only (fails AA for small text) */
  --pc-bg:       #FFFFFF;   /* page background */
  --pc-panel:    #F2F2F2;   /* light neutral boxes */
  --pc-on-navy:  #FFFFFF;   /* text on navy panels */

  /* Derived values (same family, needed for accessibility and states) */
  --pc-muted-text: #6B6B6B; /* small grey text: 5.3:1 on white, 4.8:1 on panel */
  --pc-line:       #DDDDDD; /* hairline card borders and input outlines */
  --pc-red-hover:  #991B1B;
  --pc-navy-hover: #172E6E;
  --pc-success:    #2E7D50; /* confirmation states only */
  --pc-logo-navy:  #0D286D; /* the navy in the logo artwork: headings and the footer lockup */
  --pc-tint:       #F3F5FA; /* pale navy tint (navy at ~5% on white): alternate section backgrounds */

  /* Channel triplets for translucent tints: rgb(var(--pc-navy-rgb) / .1) */
  --pc-red-rgb:     185 28 28;
  --pc-navy-rgb:    30 58 138;
  --pc-ink-rgb:     16 16 16;
  --pc-on-navy-rgb: 255 255 255;
  --pc-success-rgb: 46 125 80;

  /* Trade Impact Map industry colours (categorical data, all ≥4.5:1 with white text) */
  --pc-cat-tourism:       #1A6FA8;
  --pc-cat-agriculture:   #2E7D50;
  --pc-cat-manufacturing: var(--pc-red);
  --pc-cat-energy:        #7B5EA7;
  --pc-cat-retail:        #A16207;
  --pc-cat-food:          #C2410C;
  --pc-cat-other:         #5A6A7E;

  /* Section rhythm: top and bottom padding of every homepage section */
  --pc-sec-pad: 128px;

  /* Type and shape */
  --pc-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --pc-radius: 6px;
}

@media (max-width: 900px) { :root { --pc-sec-pad: 104px; } }
@media (max-width: 600px) { :root { --pc-sec-pad: 72px; } }

/* ── Base type ─────────────────────────────────────────────────────────────── */
body {
  font-family: var(--pc-font);
  font-weight: 500;
  color: var(--pc-body);
  background: var(--pc-bg);
}
h1, h2, h3, h4 { font-family: var(--pc-font); font-weight: 700; color: var(--pc-logo-navy); }
h1 em, h2 em, h3 em, blockquote em { font-style: normal; }
strong, b { font-weight: 700; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pc-navy); outline-offset: 2px; }

/* ── Logo: the stacked THE / PROSPERITY / COALITION lockup ──────────────────
   The header uses the supplied logo image. The footer (on navy) uses the same
   lockup set live in Montserrat so it can be white. */
.pc-logo { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 0; }
.pc-logo img { display: block; height: 50px; width: auto; }
@media (max-width: 600px) { .pc-logo img { height: 42px; } }

.pc-lockup {
  display: inline-flex; flex-direction: column; align-items: center;
  font-family: var(--pc-font); font-weight: 700; text-transform: uppercase;
  line-height: .95; color: var(--pc-logo-navy); text-decoration: none;
}
.pc-lockup .t1 { font-size: 13px; letter-spacing: .04em; }
.pc-lockup .t2 { font-size: 32px; letter-spacing: .01em; margin: 3px 0 4px; }
.pc-lockup .t3 { font-size: 15.5px; letter-spacing: .03em; }
.pc-lockup.on-navy { color: var(--pc-on-navy); }

/* ── Type system taken from the wordmark ───────────────────────────────────
   Small, tracked capitals (like "THE" and "COALITION") introduce sections;
   headings are set in bold Montserrat in the logo navy. No rules or bars. */
.pc-kicker {
  display: block; font-family: var(--pc-font); font-weight: 700; font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--pc-red);
}
/* One heading style for the whole site (set by "Trade Impact Across America"):
   bold Montserrat, sentence/title case, logo navy, tight tracking. */
.pc-h1, .pc-h2 {
  font-family: var(--pc-font); font-weight: 700; color: var(--pc-logo-navy);
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2; letter-spacing: -.01em;
  text-transform: none;
}
.pc-h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.pc-h1 em, .pc-h2 em { color: var(--pc-red); font-style: normal; }
.pc-on-navy .pc-h2, .pc-h2.on-navy { color: var(--pc-on-navy); }
.pc-kicker.on-navy { color: var(--pc-on-navy); }
/* Card-level headings */
h3 { letter-spacing: -.005em; }

/* ── Emphasis line: the one sentence per section that matters most ─────────── */
.pc-emph { font-weight: 700; color: var(--pc-red); }

/* ── Callout / stat panel: solid navy block, white text ─────────────────────── */
.pc-panel-navy {
  background: var(--pc-navy);
  color: var(--pc-on-navy);
  border-radius: var(--pc-radius);
}
.pc-panel-navy h2, .pc-panel-navy h3, .pc-panel-navy h4 { color: var(--pc-on-navy); }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--pc-font); font-weight: 700;
  border: 2px solid transparent; cursor: pointer; border-radius: var(--pc-radius);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:disabled { opacity: .75; cursor: wait; }
.btn-primary { background: var(--pc-navy); color: var(--pc-on-navy); border-color: var(--pc-navy); }
.btn-primary:hover { background: var(--pc-navy-hover); border-color: var(--pc-navy-hover); }
.btn-secondary { background: var(--pc-bg); color: var(--pc-navy); border-color: var(--pc-navy); }
.btn-secondary:hover { background: var(--pc-navy); color: var(--pc-on-navy); }
/* For buttons that sit on a navy panel */
.btn-inverse { background: var(--pc-on-navy); color: var(--pc-navy); border-color: var(--pc-on-navy); }
.btn-inverse:hover { background: var(--pc-panel); border-color: var(--pc-panel); }
.btn-ghost { background: transparent; color: var(--pc-navy); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--pc-red); }
.btn-lg { font-size: 1rem; padding: 14px 28px; }
.btn-md { font-size: .875rem; padding: 10px 22px; }

/* ── Site header (shared by the standalone pages and the map page) ──────────── */
.pc-site-header {
  position: sticky; top: 0; z-index: 1100;
  background: var(--pc-bg);
  border-bottom: 1px solid var(--pc-line);
}
.pc-site-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.pc-site-header-links { display: flex; align-items: center; gap: 22px; }
.pc-site-header-links a { font-family: var(--pc-font); font-size: .875rem; font-weight: 500; color: var(--pc-body); text-decoration: none; }
.pc-site-header-links a:hover { color: var(--pc-logo-navy); text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 600px) {
  .pc-site-header-inner { height: 62px; padding: 0 16px; }
  .pc-site-header-links .hide-sm { display: none; }
  .pc-site-header-links { gap: 12px; }
}
