/* =========================================================================
   Riley McGuire Partners × House Strategies Group
   Kentucky Judicial Branch Salary Compensation Study — RFI 010 2600000015
   Design system. RMP brand: green #107818 + charcoal #383838 on white.
   Display serif (Newsreader) for judicial gravitas; Inter for body.
   ========================================================================= */

:root {
  /* HSG brand — royal (prime). Legacy token names kept; values are HSG royal. */
  --green:        #2E2FA6;
  --green-600:    #2a28a0;
  --green-700:    #23217f;
  --green-800:    #17155c;
  --green-050:    #eeeefb;
  --green-100:    #dcdcf7;
  --green-200:    #c2c2ef;
  --rmp:          #1a7f37;   /* RMP green, for the subcontractor accents */

  --ink:          #201f2b;   /* deep indigo-charcoal ink */
  --ink-2:        #4c5249;   /* secondary text */
  --muted:        #7b8178;   /* captions / meta */
  --line:         #e4e8e2;
  --line-2:       #eef1ec;

  --canvas:       #ffffff;
  --surface:      #f6f8f5;
  --surface-2:    #eef2ec;
  --surface-3:    #e7ede6;

  /* judicial / commonwealth accent — used sparingly */
  --seal:         #7a1f2b;   /* deep judicial burgundy */
  --gold:         #9a7b2e;   /* commonwealth gold hairline */

  /* market-position semantics */
  --lead:         #1a7f37;
  --at:           #b8862f;
  --lag:          #b3452f;

  --shadow-sm: 0 1px 2px rgba(20,40,20,.06), 0 1px 3px rgba(20,40,20,.05);
  --shadow-md: 0 6px 20px rgba(16,60,20,.08), 0 2px 6px rgba(16,60,20,.05);
  --shadow-lg: 0 22px 50px rgba(12,50,16,.14);

  --r-sm: 8px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --wrap: 1140px;

  --font-display: "Space Grotesk", "Inter", -apple-system, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-700); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.06rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .005em; }
p { margin: 0 0 1rem; }
strong { color: var(--ink); font-weight: 650; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
section { padding: 74px 0; }
section.tight { padding: 52px 0; }
.bg-surface { background: var(--surface); }
.bg-surface-2 { background: var(--surface-2); }
.bg-ink { background: var(--ink); color: #eef2ec; }
.bg-green { background: var(--green); color: #fff; }
.bg-grad { background: linear-gradient(150deg, var(--green-800), var(--green) 70%, var(--green-600)); color:#fff; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-600); margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green); display: inline-block; }
.bg-ink .eyebrow, .bg-grad .eyebrow, .bg-green .eyebrow { color: #a9d9ad; }
.bg-ink .eyebrow::before, .bg-grad .eyebrow::before { background: #7dc684; }
.lead { font-size: 1.18rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand-lockup { display: flex; align-items: center; gap: 13px; }
.brand-lockup img.hsg { height: 25px; width: auto; border-radius: 3px; }
.brand-lockup .x { color: var(--muted); font-size: .8rem; }
.brand-lockup img.rmp { height: 22px; width: auto; opacity: .95; }
.nav-links { margin-left: auto; display: flex; gap: 3px; align-items: center; }
.nav-links a {
  font-size: .9rem; font-weight: 550; color: var(--ink-2); padding: 8px 12px; border-radius: 8px;
  letter-spacing: .005em;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a.active { color: var(--green-700); background: var(--green-050); }
.nav-cta {
  margin-left: 8px; background: var(--green) !important; color: #fff !important;
  padding: 9px 15px !important; border-radius: 999px !important; font-weight: 650 !important;
}
.nav-cta:hover { background: var(--green-700) !important; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display:block; width:20px; height:2px; background: var(--ink); margin:4px 0; }

@media (max-width: 940px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); display: none; margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; border-radius: 8px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-body); font-weight: 650; font-size: .95rem;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; transition: .16s ease;
}
.btn-green { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-green:hover { background: var(--green-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: #fff; color: var(--green-700); border-color: var(--green-200); }
.btn-outline:hover { background: var(--green-050); color: var(--green-700); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.34); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn .arr { transition: transform .16s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-sm); transition: .18s ease;
}
.card.hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--green-200); }
.card .kicker { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); }
.card h3 { margin: 10px 0 8px; }
.card.pad-lg { padding: 34px; }
.card.on-surface { background: #fff; }

.numnode { display:inline-flex; align-items:center; justify-content:center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--green-050); color: var(--green-700); font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; border: 1px solid var(--green-100); }

/* ---------- stat tiles ---------- */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stats.s4 { grid-template-columns: repeat(4, 1fr); }
.stats.s3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .stats.s4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .stats.s3, .stats.s4 { grid-template-columns: 1fr 1fr; } }
.stat { background: #fff; padding: 22px 20px; }
.stat .n { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 600; color: var(--green-700); line-height: 1; letter-spacing: -.02em; }
.stat .l { font-size: .82rem; color: var(--ink-2); margin-top: 8px; font-weight: 550; }
.bg-ink .stat, .bg-grad .stat { background: transparent; }
.bg-ink .stat .n, .bg-grad .stat .n { color: #fff; }
.bg-ink .stat .l, .bg-grad .stat .l { color: #bcd3bd; }
.bg-ink .stats, .bg-grad .stats { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.2); }

/* ---------- badges / pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.pill.green { background: var(--green-050); color: var(--green-700); border-color: var(--green-100); }
.pill.seal { background: #f6ecee; color: var(--seal); border-color: #e9d4d8; }
.pill.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.tag-lead { color: var(--lead); } .tag-at { color: var(--at); } .tag-lag { color: var(--lag); }
.chip { display:inline-block; font-size:.75rem; font-weight:650; padding:4px 10px; border-radius:6px; }
.chip.lead { background:#e7f3e8; color: var(--lead);} .chip.at{ background:#f6eede; color:#8a6420;} .chip.lag{ background:#f7e6e1; color: var(--lag);}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #fbfcfa 0%, #eef4ec 100%); border-bottom: 1px solid var(--line); }
.hero::after { content:""; position:absolute; right:-160px; top:-120px; width:520px; height:520px; border-radius:50%;
  background: radial-gradient(circle at center, rgba(16,120,24,.10), transparent 66%); pointer-events:none; }
.hero-in { padding: 74px 0 66px; position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 54ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- section heading ---------- */
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head.center { margin-left: auto; margin-right: auto; }

/* ---------- portal / evaluator CTA banner ---------- */
.cta-band { background: linear-gradient(150deg, var(--green-800), var(--green-700) 60%, var(--green-600)); color: #fff; border-radius: var(--r-xl); padding: 46px; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; right:-80px; bottom:-120px; width:360px; height:360px; border-radius:50%; background: rgba(255,255,255,.06); }
.cta-band h2 { color: #fff; } .cta-band p { color: #d6e8d7; }
.cta-flex { display:flex; align-items:center; gap: 34px; flex-wrap: wrap; justify-content: space-between; position: relative; z-index: 1; }
.qr-card { background:#fff; border-radius: var(--r); padding: 14px; text-align:center; box-shadow: var(--shadow-lg); }
.qr-card img { width: 138px; height: 138px; }
.qr-card .cap { font-size: .72rem; color: var(--ink-2); font-weight: 650; margin-top: 8px; }

/* ---------- objective / task list ---------- */
.obj { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.obj:last-child { border-bottom: 1px solid var(--line); }
.obj .oh { display:flex; align-items:center; gap: 12px; margin-bottom: 6px; }

/* ---------- timeline ---------- */
.timeline { position: relative; margin-left: 8px; padding-left: 30px; }
.timeline::before { content:""; position:absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--green-100); }
.tl { position: relative; padding: 0 0 26px; }
.tl::before { content:""; position:absolute; left: -30px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
.tl.phase::before { background: var(--green); }
.tl .when { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green-600); }
.tl h4 { margin: 4px 0 4px; }

/* ---------- table ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tbl th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: none; }
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.tbl tbody tr:hover { background: var(--surface); }

/* ---------- team ---------- */
.person { display: grid; grid-template-columns: 68px 1fr; gap: 16px; align-items: start; }
.person img, .person .avatar { width: 68px; height: 68px; border-radius: 14px; object-fit: cover; background: var(--surface-2); }
.person .avatar { display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-size: 1.4rem; color: var(--green-700); font-weight: 600; border: 1px solid var(--green-100); }
.firmtag { font-size: .68rem; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 5px; }
.firmtag.hsg { background: var(--green-050); color: var(--green-700); }
.firmtag.rmp { background: #e7f3e8; color: #1a7f37; }

/* ---------- chart shells ---------- */
.chart-card { background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.chart-card h3 { margin-bottom: 4px; }
.chart-box { position: relative; width: 100%; }
.legend { display:flex; flex-wrap:wrap; gap:16px; margin-top:14px; font-size:.82rem; color: var(--ink-2); }
.legend span { display:inline-flex; align-items:center; gap:7px; }
.legend i { width:12px; height:12px; border-radius:3px; display:inline-block; }

.controls { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom: 18px; }
.controls label { font-size:.8rem; font-weight:650; color: var(--ink-2); }
.controls select { font-family: var(--font-body); font-size:.9rem; padding:9px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); }

/* ---------- disclaimer bar ---------- */
.disclaimer { background: #fbf7ec; border: 1px solid #efe4c6; color: #7a6626; font-size: .8rem; padding: 10px 16px; border-radius: 10px; display:flex; gap:10px; align-items:center; }
.disclaimer.info { background: var(--green-050); border-color: var(--green-100); color: var(--green-700); }

/* ---------- callout ---------- */
.callout { border-left: 3px solid var(--green); background: var(--surface); border-radius: 0 var(--r) var(--r) 0; padding: 20px 24px; }
.callout.seal { border-left-color: var(--seal); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #b9c6b4; padding: 54px 0 30px; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: #cdd8c9; font-size: .9rem; }
.footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 34px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
.footer .flinks { display:flex; flex-direction: column; gap: 9px; }
.foot-firms { display:flex; align-items:center; gap: 14px; margin-bottom: 16px; }
.foot-firms img.rmp { height: 28px; filter: brightness(0) invert(1); opacity:.92; }
.foot-firms img.hsg { height: 20px; border-radius: 3px; }
.foot-rule { border:none; border-top: 1px solid rgba(255,255,255,.12); margin: 34px 0 20px; }
.foot-legal { font-size: .78rem; color: #8a9885; line-height: 1.7; }

/* ---------- misc utilities ---------- */
.stack-sm > * + * { margin-top: 10px; }
.mt0{margin-top:0} .mb0{margin-bottom:0}
.flex { display:flex; gap: 12px; align-items:center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.reveal { opacity:0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }
hr.rule { border:none; border-top:1px solid var(--line); margin: 34px 0; }
.dl-row { display:flex; align-items:center; gap:14px; padding:16px 18px; border:1px solid var(--line); border-radius: var(--r); background:#fff; }
.dl-row .ic { width:42px; height:42px; border-radius:10px; background: var(--green-050); color: var(--green-700); display:flex; align-items:center; justify-content:center; font-weight:700; }
