:root {
  --text: #0f172a;
  --muted: #64748b;
  --subtle: #94a3b8;
  --link: #0078d4;
  --link-hover: #004578;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-soft: #f1f5f9;
  --accent-staffing: #0078d4;
  --accent-timekeeper: #0e7490;
  --accent-supervisor: #5c2d91;
  --accent-edge: #bc6708;
  --max-width: 880px;
  --header-h: 60px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
}
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand-mark {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-staffing);
  color: white;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.brand-text {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s;
}
.site-nav a:hover {
  background: var(--bg-soft);
  color: var(--link);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.breadcrumb .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.breadcrumb a {
  color: var(--link);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep {
  color: var(--subtle);
  margin: 0 2px;
}
.breadcrumb .current {
  color: var(--text);
  font-weight: 600;
}

/* ===== Content ===== */
.content {
  padding: 40px 24px 60px;
}

.content h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.content h2 {
  font-size: 22px;
  margin: 48px 0 16px;
  font-weight: 700;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.content > h2:first-of-type,
.content > p:first-of-type + h2,
.content > blockquote + h2 {
  /* keep border on first h2 too */
}
.content h3 {
  font-size: 17px;
  margin: 28px 0 10px;
  font-weight: 700;
}
.content h4 {
  font-size: 15px;
  margin: 20px 0 6px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.content p { margin: 0 0 16px; }
.content a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.content a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

/* Persona / scenario blockquotes */
.content blockquote {
  margin: 0 0 24px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border-left: 4px solid var(--accent-staffing);
  border-radius: 0 6px 6px 0;
  color: var(--text);
}
.content blockquote p { margin: 0 0 6px; }
.content blockquote p:last-child { margin-bottom: 0; }
.content blockquote strong { color: var(--text); }

/* Tables */
.content table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 24px;
  font-size: 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.content thead { background: var(--bg-alt); }
.content th, .content td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.content tbody tr:last-child td { border-bottom: 0; }
.content th {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}
.content tbody tr:nth-child(even) { background: var(--bg-alt); }

/* Lists */
.content ul, .content ol {
  padding-left: 26px;
  margin: 0 0 16px;
}
.content li { margin-bottom: 6px; }
.content li > p { margin-bottom: 6px; }

/* Inline code */
.content code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.88em;
  color: #be123c;
}
.content pre code {
  display: block;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow-x: auto;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

/* Images / mockups */
.content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  cursor: zoom-in;
  transition: box-shadow 0.15s, transform 0.15s;
}
.content img:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}

/* ===== Full-screen image modal =====
   Triggered by JS when any .content img is clicked. SVG mockups render
   at high resolution since they're vector — the modal lets stakeholders
   read the small text on a mockup without leaving the page.
*/
.img-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 25, 0.94);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 88px;
  cursor: zoom-out;
  animation: img-modal-fade 0.12s ease-out;
}
.img-modal[hidden] { display: none; }
@keyframes img-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.img-modal-target {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  cursor: default;
  display: block;
  object-fit: contain;
}
.img-modal-caption {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  text-align: center;
  max-width: 90vw;
}
.img-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: white;
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-modal-close:hover { background: rgba(255,255,255,0.22); }
.img-modal-close:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* HR + step nav (rendered from the trailing markdown nav line) */
.content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 48px 0 24px;
}
.content hr + p {
  font-size: 14px;
  text-align: center;
  color: var(--muted);
  padding: 16px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  line-height: 2.1;
}
.content hr + p a {
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  border-bottom: 0;
}
.content hr + p a:hover {
  background: white;
  border-bottom: 0;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 28px 0;
  margin-top: 60px;
}
.site-footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.site-footer a { color: var(--link); text-decoration: none; }

/* ===== Use-case-tinted variants =====
   Body gets a class like body.uc-staffing to recolor the brand mark and
   persona blockquote per use case.
*/
body.uc-timekeeper .brand-mark { background: var(--accent-timekeeper); }
body.uc-timekeeper .content blockquote { border-left-color: var(--accent-timekeeper); }
body.uc-supervisor .brand-mark { background: var(--accent-supervisor); }
body.uc-supervisor .content blockquote { border-left-color: var(--accent-supervisor); }
body.uc-edge .brand-mark { background: var(--accent-edge); }
body.uc-edge .content blockquote { border-left-color: var(--accent-edge); }

/* ===== Home page extras ===== */
.home-cards { margin-top: 24px; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .site-header .inner { padding: 0 16px; gap: 12px; }
  .brand-sub { display: none; }
  .site-nav a { padding: 6px 6px; }
  .breadcrumb .inner { padding: 10px 16px; }
  .content { padding: 28px 16px 40px; }
  .container { padding: 0 16px; }
  .content h1 { font-size: 26px; }
  .content h2 { font-size: 19px; margin-top: 36px; padding-top: 20px; }
  .content table { font-size: 13px; }
  .content th, .content td { padding: 8px 10px; }
}
