/* FeatureHeld v20 shared chrome. Loaded BEFORE each site's own stylesheet for tokens, but rules below use
   ".fh" scoped selectors (html body ...) so the one header/nav/steps/footer look wins on every page. */
:root {
  --fh-navy: #0B1F3A; --fh-navy-mid: #16355A; --fh-bronze: #B08D57; --fh-bronze-dark: #8A6B3D; --fh-bronze-light: #C9A96E;
  --fh-cream: #F7F5F0; --fh-cream-dark: #EDE8DF; --fh-line: #D7D0C4; --fh-muted: #4F5A67; --fh-white: #FFFFFF;
  --fh-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --fh-shadow: 0 12px 30px rgba(11, 31, 58, 0.10);
}
html, body { overflow-x: hidden; }

/* ---- Header (one look everywhere) ---- */
html body .site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 240, 0.97); border-bottom: 1px solid var(--fh-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html body .sticky-stack { position: sticky; top: 0; z-index: 100; }
html body .sticky-stack .site-header { position: relative; }
html body .site-header .header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0.5rem 1.1rem; min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; position: relative;
}
html body .site-header .logo {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; text-decoration: none; color: var(--fh-navy);
  font-family: var(--fh-font); font-weight: 800; letter-spacing: -0.02em;
}
html body .site-header .logo-word { font-size: 1.15rem; line-height: 1.1; display: block; }
html body .site-header .logo-sub {
  display: block; margin-top: 2px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fh-bronze-dark);
}
html body .site-header .nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; margin: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: var(--fh-white); border: 1px solid var(--fh-line); border-radius: 10px; cursor: pointer;
}
html body .site-header .nav-toggle-bar { display: block; width: 18px; height: 2px; background: var(--fh-navy); border-radius: 1px; transition: transform .2s, opacity .2s; }
html body .site-header .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
html body .site-header .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
html body .site-header .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
html body .site-header .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; min-width: 0; }
html body .site-header .site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; align-items: center; gap: 0.2rem; flex-wrap: nowrap; }
html body .site-header .site-nav li { margin: 0; }
html body .site-header .site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.8rem; border-radius: 999px;
  font-family: var(--fh-font); font-size: 0.93rem; font-weight: 650; line-height: 1.2; color: var(--fh-navy-mid);
  text-decoration: none; background: transparent; white-space: nowrap; width: auto; border: 0;
}
html body .site-header .site-nav a:hover { background: var(--fh-cream-dark); color: var(--fh-navy); }
html body .site-header .site-nav a[aria-current="page"],
html body .site-header .site-nav a[aria-current="true"] { background: var(--fh-navy); color: var(--fh-cream); }
html body .site-header .site-nav a:focus-visible { outline: 3px solid var(--fh-bronze); outline-offset: 2px; }

@media (max-width: 1040px) {
  html body .site-header .nav-toggle { display: inline-flex; }
  html body .site-header .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--fh-cream); border-bottom: 1px solid var(--fh-line); box-shadow: var(--fh-shadow);
  }
  html body .site-header .site-nav.open,
  html body .site-header .site-nav.is-open { display: block; }
  html body .site-header .site-nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem 1rem 0.9rem; gap: 0.2rem; }
  html body .site-header .site-nav a { display: flex; width: 100%; min-height: 48px; border-radius: 12px; padding: 0.6rem 0.9rem; font-size: 1rem; }
}

/* ---- Banners ---- */
html body .demo-banner, html body .review-banner {
  background: var(--fh-navy); color: rgba(247, 245, 240, 0.94); font-family: var(--fh-font);
  font-size: 0.8rem; line-height: 1.4; text-align: center; padding: 0.42rem 0.9rem; letter-spacing: 0.01em;
}
html body .demo-banner strong { color: var(--fh-bronze-light); }

/* ---- Employee step indicator ---- */
html body .flow-steps { background: var(--fh-white); border-bottom: 1px solid var(--fh-line); }
html body .flow-steps ol {
  max-width: 1120px; margin: 0 auto; padding: 0.5rem 0.75rem; list-style: none;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.15rem;
}
html body .flow-steps li { position: relative; min-width: 0; }
html body .flow-steps li + li::before { content: ""; position: absolute; top: 21px; left: -50%; right: 50%; height: 2px; background: var(--fh-line); z-index: 0; }
html body .flow-steps a {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; min-height: 48px;
  padding: 0.15rem 0.1rem; text-decoration: none; color: var(--fh-muted); font-family: var(--fh-font); font-weight: 700; font-size: 0.78rem; text-align: center; border-radius: 10px;
}
html body .flow-steps .flow-label { white-space: normal; line-height: 1.15; }
html body .flow-steps a[aria-current="step"] { color: var(--fh-navy); }
@media (max-width: 420px) { html body .flow-steps a { font-size: 0.7rem; } }

/* ---- Step navigation: Back left, Next right, same on every step ---- */
html body .next-step .fh-step-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
html body .next-step .fh-step-nav .btn { min-height: 48px; margin: 0; }
html body .next-step .fh-step-nav .fh-step-next { margin-left: auto; }
@media (max-width: 560px) {
  html body .next-step .fh-step-nav { flex-direction: column-reverse; align-items: stretch; }
  html body .next-step .fh-step-nav .btn { width: 100%; justify-content: center; margin-left: 0; }
}

/* ---- Footer links (quiet) ---- */
.fh-footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.fh-footer-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; opacity: 0.92; display: inline-flex; min-height: 44px; align-items: center; }

/* ---- Charts (SVG, no library) ---- */
.fh-chart { margin: 1rem 0 1.25rem; padding: 1rem; background: var(--fh-white); border: 1px solid var(--fh-line); border-radius: 14px; }
.fh-chart h3, .fh-chart .fh-chart-title { margin: 0 0 0.25rem; font-size: 1.05rem; color: var(--fh-navy); }
.fh-chart .fh-chart-sub { margin: 0 0 0.75rem; font-size: 0.88rem; color: var(--fh-muted); }
.fh-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.fh-chart svg text { font-family: var(--fh-font); fill: var(--fh-navy); }
.fh-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin: 0.6rem 0 0; padding: 0; list-style: none; font-size: 0.82rem; color: var(--fh-muted); }
.fh-legend li { display: inline-flex; align-items: center; gap: 0.35rem; }
.fh-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: 0 0 12px; }
.fh-chart .example-badge { margin-bottom: 0.4rem; }
.fh-chart-note { margin: 0.6rem 0 0; font-size: 0.82rem; color: var(--fh-muted); }
.fh-chart-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .fh-chart-grid.two { grid-template-columns: 1fr 1fr; } }

.dash-details{margin:.5rem 0 1rem}
.dash-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--navy-mid,#16355A);font-weight:600}
/* v20: charts stay readable on desktop (don't scale the SVG up past phone-ish width) */
.fh-chart svg { display: block; width: 100%; max-width: 440px; height: auto; }
.fh-chart-title { font-weight: 700; }

/* v23: glossary term links (first use on each page) */
a.fh-term { color: inherit; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.fh-term:hover, a.fh-term:focus-visible { text-decoration-style: solid; }
.glossary-item { scroll-margin-top: 120px; }
.glossary-item.is-target { outline: 3px solid #B08D57; outline-offset: 2px; transition: outline-color .3s; }

/* v30: Add to Home Screen tip (iPhone Safari only; inserted by shared-nav.js) */
.fh-a2hs { display: flex; align-items: center; gap: 0.75rem; max-width: 1100px; margin: 0.75rem auto; padding: 0.7rem 0.6rem 0.7rem 0.85rem; box-sizing: border-box; width: calc(100% - 2rem);
  background: #fff; border: 1px solid var(--fh-bronze-light); border-radius: 12px; color: var(--fh-navy); font-size: 0.9375rem; line-height: 1.4; }
.fh-a2hs img { flex: 0 0 auto; border-radius: 8px; }
.fh-a2hs p { margin: 0; flex: 1 1 auto; }
.fh-a2hs-close { flex: 0 0 auto; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--fh-navy); font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: 8px; }
.fh-a2hs-close:focus-visible { outline: 2px solid var(--fh-bronze); outline-offset: 2px; }
