/* IHC Workforce Strategic Plan — public destination
   Brand: IHC 2026 (Design System v2 token subset, hand-vendored for a
   self-contained public deploy). Headings Montserrat, body Lora. */

:root {
  --ihc-purple: #413494;
  --ihc-red: #E52823;
  --ihc-blue: #5EAEE0;
  --ihc-gold: #F9C20A;
  --ihc-charcoal: #495965;
  --ihc-green: #82C341;
  --ihc-pink: #CE509D;
  --ihc-purple-10: #ECEAF4;
  --ihc-blue-10: #EFF7FC;
  --ihc-gold-10: #FEF9E7;
  --ink: #1e2530;
  --paper: #ffffff;
  --rule: #e4e8ee;
  --font-head: 'Montserrat', -apple-system, sans-serif;
  --font-body: 'Lora', Georgia, serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 1.075rem;
  line-height: 1.65;
}
h1, h2, h3, h4, .kicker, .stat-value, nav, .btn { font-family: var(--font-head); }

/* ---- Skip link + a11y ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ihc-purple); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--ihc-blue); outline-offset: 2px; }

/* ---- Top nav ---- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.topnav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: .65rem 1.25rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.topnav .brand {
  font-weight: 800; font-size: .95rem; color: var(--ihc-purple);
  text-decoration: none; letter-spacing: .02em;
}
.topnav .links { display: flex; gap: .35rem; flex-wrap: wrap; margin-left: auto; }
.topnav .links a {
  font-size: .78rem; font-weight: 600; color: var(--ihc-charcoal);
  text-decoration: none; padding: .35rem .6rem; border-radius: 999px;
}
.topnav .links a:hover, .topnav .links a.active { background: var(--ihc-purple-10); color: var(--ihc-purple); }

/* ---- Hero (weave-anchored per IHC 2026 Weave Shell standard) ----
   Weave hygiene: controlled low-opacity texture layer (0.05-0.16 band),
   stronger toward the right edge, never full strength behind copy. */
.hero {
  --weave-asset: url('ihc-weave-pattern.png');
  background: linear-gradient(135deg, var(--ihc-purple) 0%, #2d2370 60%, #241c5c 100%);
  color: #fff; padding: 3.5rem 1.25rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before { /* weave texture, edge-weighted via mask */
  content: ""; position: absolute; inset: 0;
  background: var(--weave-asset) right center / auto 120% no-repeat;
  opacity: .10;
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 55%, #000 100%);
  mask-image: linear-gradient(100deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 55%, #000 100%);
  pointer-events: none;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.hero-logo { height: 44px; width: auto; display: block; margin-bottom: 2.2rem; }
.hero .insight-rule { width: 96px; height: 5px; background: var(--ihc-gold); border-radius: 3px; margin: 1.3rem 0 0; }
.kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ihc-gold); margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; line-height: 1.12; max-width: 21ch; }
.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 62ch; margin-top: 1.4rem;
  color: #e6e4f5;
}
.hero .byline { margin-top: 1.6rem; font-family: var(--font-head); font-size: .85rem; color: #b9b3e0; }

/* ---- Sections ---- */
.section { padding: 3.5rem 1.25rem; }
.section:nth-of-type(even) { background: #fafbfd; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; color: var(--ihc-purple);
  margin-bottom: .5rem; scroll-margin-top: 5rem;
}
.section .section-lede { font-size: 1.12rem; max-width: 68ch; color: #333c49; margin-bottom: 1.8rem; }
.section h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 1.5rem 0 .6rem; }
.accent-bar { width: 64px; height: 5px; background: var(--ihc-red); border-radius: 3px; margin: .9rem 0 1.4rem; }

/* ---- Stat band ---- */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stat-card {
  background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--ihc-purple);
  border-radius: 10px; padding: 1.1rem 1.2rem;
}
.stat-card .stat-value { font-size: 1.9rem; font-weight: 800; color: var(--ihc-purple); line-height: 1.1; }
.stat-card .stat-label { font-family: var(--font-head); font-size: .78rem; font-weight: 600; color: var(--ihc-charcoal); margin-top: .35rem; }
.stat-card .stat-source { font-size: .72rem; color: #8a93a0; margin-top: .5rem; font-family: var(--font-head); }
.stat-card.gold { border-top-color: var(--ihc-gold); }
.stat-card.blue { border-top-color: var(--ihc-blue); }
.stat-card.green { border-top-color: var(--ihc-green); }
.stat-card.red { border-top-color: var(--ihc-red); }

/* ---- Cards / grids ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column; gap: .55rem;
}
.card h3 { margin: 0; }
.card .card-tag {
  align-self: flex-start; font-family: var(--font-head); font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px;
  background: var(--ihc-purple-10); color: var(--ihc-purple);
}
.card p { font-size: .98rem; color: #333c49; }
.card .card-meta { font-family: var(--font-head); font-size: .75rem; color: #8a93a0; margin-top: auto; }

/* ---- Audience router cards ---- */
.audience-card .aud-q { font-size: .95rem; color: #4a5462; }
.audience-card .aud-links { font-family: var(--font-head); font-size: .82rem; font-weight: 600; }
.audience-card .aud-links a { color: var(--ihc-purple); }
.audience-card .aud-bring { margin: .4rem 0 0; padding: .8rem 1rem; }
.audience-card .aud-bring p { font-size: .92rem; }

/* ---- Pillar cards ---- */
.pillar-card { border-left: 6px solid var(--ihc-purple); }
.pillar-card.p2 { border-left-color: var(--ihc-blue); }
.pillar-card.p3 { border-left-color: var(--ihc-gold); }
.pillar-card.p4 { border-left-color: var(--ihc-green); }
.pillar-card.p5 { border-left-color: var(--ihc-pink); }

/* ---- Gap rows ---- */
.gap-row {
  background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  padding: 1.3rem 1.4rem; margin-top: 1rem;
  display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; align-items: start;
}
.gap-num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--ihc-purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
}
.gap-row h3 { margin: 0 0 .35rem; }
.gap-row .gap-why { font-size: .98rem; color: #333c49; }
.gap-pillars { margin-top: .6rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.gap-pillars span {
  font-family: var(--font-head); font-size: .68rem; font-weight: 700; padding: .22rem .55rem;
  border-radius: 999px; background: var(--ihc-blue-10); color: #2a6a94;
}
.gap-row .gap-kpi { margin-top: .6rem; font-family: var(--font-head); font-size: .8rem; color: var(--ihc-charcoal); }
.gap-row .gap-kpi strong { color: var(--ihc-purple); }

/* ---- Audience story tabs ---- */
.audience-tabs { display: flex; gap: .5rem; margin: 1.4rem 0 1rem; flex-wrap: wrap; }
.audience-tabs button {
  font-family: var(--font-head); font-weight: 700; font-size: .88rem;
  padding: .55rem 1.15rem; border-radius: 999px; border: 2px solid var(--ihc-purple);
  background: #fff; color: var(--ihc-purple); cursor: pointer;
}
.audience-tabs button[aria-selected="true"] { background: var(--ihc-purple); color: #fff; }
.story-panel[hidden] { display: none; }

/* ---- Community table ---- */
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin-top: 1.4rem; }
.community-card {
  background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 1.2rem 1.3rem;
}
.community-card h3 { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .5rem; }
.community-card .pop { font-size: .75rem; font-weight: 600; color: #8a93a0; font-family: var(--font-head); }
.community-card dl { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; font-size: .92rem; }
.community-card dt { color: #59636f; }
.community-card dd { font-family: var(--font-head); font-weight: 700; color: var(--ihc-purple); text-align: right; }
.community-card .note { font-size: .85rem; color: #59636f; margin-top: .6rem; }

/* ---- Compare table ---- */
.table-wrap { overflow-x: auto; margin-top: 1.4rem; border: 1px solid var(--rule); border-radius: 12px; }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; background: #fff; }
table.compare th, table.compare td { padding: .7rem .9rem; text-align: right; font-size: .92rem; }
table.compare th { font-family: var(--font-head); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ihc-charcoal); border-bottom: 2px solid var(--rule); }
table.compare td:first-child, table.compare th:first-child { text-align: left; }
table.compare td:first-child { font-family: var(--font-head); font-weight: 600; }
table.compare tr.hamilton { background: var(--ihc-purple-10); }
table.compare tr.hamilton td { font-weight: 700; color: var(--ihc-purple); }
table.compare tbody tr { border-bottom: 1px solid #eef1f5; }

/* ---- KPI table ---- */
.kpi-card { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 1.2rem 1.3rem; }
.kpi-card .kpi-name { font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.kpi-card .kpi-now { font-size: 1.5rem; font-weight: 800; color: var(--ihc-purple); font-family: var(--font-head); margin: .3rem 0 .1rem; }
.kpi-card .kpi-target { font-family: var(--font-head); font-size: .8rem; color: var(--ihc-charcoal); }
.kpi-card .kpi-source { font-size: .72rem; color: #8a93a0; margin-top: .5rem; font-family: var(--font-head); }

/* ---- Research library ---- */
.research-card { border-top: 4px solid var(--ihc-gold); }
.btn {
  display: inline-block; font-weight: 700; font-size: .85rem; text-decoration: none;
  padding: .55rem 1.1rem; border-radius: 8px; background: var(--ihc-purple); color: #fff;
}
.btn:hover { background: #352a7a; }
.btn.secondary { background: #fff; color: var(--ihc-purple); border: 2px solid var(--ihc-purple); }

/* ---- Plain-language callout ---- */
.plain {
  background: var(--ihc-gold-10); border-left: 5px solid var(--ihc-gold);
  border-radius: 0 10px 10px 0; padding: 1.1rem 1.3rem; margin: 1.4rem 0; max-width: 72ch;
}
.plain .plain-label { font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8a6d00; }
.plain p { margin-top: .35rem; font-size: 1rem; }

/* ---- Voice block (Mike) ---- */
.voice {
  border-left: 5px solid var(--ihc-purple); padding: .4rem 0 .4rem 1.4rem; margin: 1.6rem 0;
  max-width: 70ch;
}
.voice p { font-size: 1.12rem; font-style: italic; color: #2c3440; }
.voice .who { font-family: var(--font-head); font-style: normal; font-size: .8rem; font-weight: 700; color: var(--ihc-charcoal); margin-top: .6rem; }

/* ---- Hidden Drivers trend charts (dataviz-validated pair, 2026-07-07) ----
   Chart steps derive from the brand purple/blue ramps, snapped to pass the
   six-checks validator on the light surface (lightness band, chroma, CVD,
   contrast). Do not substitute raw brand hexes: #413494 fails lightness,
   #5EAEE0 fails contrast. */
:root {
  --chart-local: #5A4BC4;     /* Hamilton County series (brand-purple chart step) */
  --chart-national: #2B7FB8;  /* United States series (brand-blue chart step) */
}
.driver-card {
  background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  padding: 1.5rem 1.6rem 1.3rem; margin-top: 1.4rem;
}
.driver-head { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.driver-head h3 { margin: 0; font-size: 1.2rem; }
.verdict {
  font-family: var(--font-head); font-size: .7rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem;
  border-radius: 999px; white-space: nowrap;
}
.verdict.here { background: #EFE9FB; color: #3d2f96; }        /* trend present locally */
.verdict.better { background: #ECF6E2; color: #3c6b10; }      /* diverges, better here */
.verdict.worse { background: #FBE9E8; color: #a01b17; }       /* diverges, worse here */
.verdict.watch { background: var(--ihc-gold-10); color: #8a6d00; } /* partial / watch */
.driver-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.6rem; margin-top: 1rem; align-items: start; }
@media (max-width: 800px) { .driver-grid { grid-template-columns: 1fr; } }
.driver-mech { font-size: .98rem; color: #333c49; }
.driver-mech .mech-label, .driver-chartside .mech-label {
  font-family: var(--font-head); font-size: .7rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ihc-charcoal);
  display: block; margin: .9rem 0 .25rem;
}
.driver-mech .mech-label:first-child { margin-top: 0; }
.trend-svg { width: 100%; height: auto; display: block; }
.trend-svg .grid { stroke: #eef1f5; stroke-width: 1; }
.trend-svg .tick { font-family: var(--font-head); font-size: 11px; fill: #8a93a0; }
.trend-svg .series-label { font-family: var(--font-head); font-size: 12px; font-weight: 700; }
.trend-legend { display: flex; gap: 1.2rem; font-family: var(--font-head); font-size: .78rem; font-weight: 600; color: var(--ihc-charcoal); margin-top: .3rem; }
.trend-legend .swatch { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: .4rem; }
.trend-source { font-size: .72rem; color: #8a93a0; font-family: var(--font-head); margin-top: .5rem; }
.driver-card details { margin-top: .6rem; }
.driver-card summary { font-family: var(--font-head); font-size: .78rem; font-weight: 600; color: var(--ihc-purple); cursor: pointer; }
.driver-card table.data { border-collapse: collapse; margin-top: .5rem; font-size: .82rem; }
.driver-card table.data th, .driver-card table.data td { padding: .25rem .7rem; text-align: right; border-bottom: 1px solid #eef1f5; }
.driver-card table.data th:first-child, .driver-card table.data td:first-child { text-align: left; }
.driver-implication { border-left: 5px solid var(--ihc-gold); background: var(--ihc-gold-10); border-radius: 0 8px 8px 0; padding: .8rem 1rem; margin-top: 1rem; font-size: .95rem; }

/* ---- Footer ---- */
footer { background: #241c5c; color: #cfc9ec; padding: 3rem 1.25rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: .6rem; }
footer .tagline { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--ihc-gold); }
footer a { color: #fff; }
footer .fine { font-size: .8rem; color: #9d95cc; margin-top: 1rem; }

@media (max-width: 640px) {
  .gap-row { grid-template-columns: 1fr; }
  .gap-num { width: 44px; height: 44px; font-size: 1.1rem; }
}
