/* Shared tokens and components for the consulting site and static archive. */
:root {
  --site-navy: #172c3f; --site-ink: #263948; --site-muted: #52616b;
  --site-accent: #235969; --site-paper: #fcfcfa; --site-surface: #f7f7f3;
  --site-line: #dce2e0; --site-radius: 6px; --site-header-height: 84px;
}
html { scroll-padding-top: calc(var(--site-header-height) + 16px); }
body.site-theme {
  --bg: var(--site-paper); --surface: var(--site-surface); --surface-solid: var(--site-paper);
  --text: var(--site-ink); --muted: var(--site-muted); --card: var(--site-paper);
  --border: var(--site-line); --accent-1: var(--site-accent); --accent-2: var(--site-accent);
  --blog-teal: var(--site-accent); --blog-orange: var(--site-accent);
  background: var(--site-paper); color: var(--site-ink);
  font-family: Arial, "Helvetica Neue", sans-serif; overflow-x: clip;
}
.site-theme *, .site-theme *::before, .site-theme *::after { box-sizing: border-box; }
.site-theme a { color: var(--site-accent); }
.site-theme a:hover { opacity: 1; }
.site-theme a:focus-visible, .site-theme button:focus-visible,
.site-theme input:focus-visible, .site-theme textarea:focus-visible, .site-theme select:focus-visible {
  outline: 3px solid var(--site-accent); outline-offset: 4px;
}
.site-theme summary:focus-visible { outline: 3px solid var(--site-accent); outline-offset: 4px; }
.site-theme [id] { scroll-margin-top: 0; } /* html owns the sticky-header offset. */
.site-container { max-width: 1160px; padding: 0 48px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 10001; padding: 12px 18px; background: white; color: var(--site-navy); border: 2px solid var(--site-accent); border-radius: var(--site-radius); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 1000; padding: 0; text-align: left; color: var(--site-ink); background: var(--site-paper); border-bottom: 1px solid var(--site-line); backdrop-filter: none; }
.site-nav-bar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--site-header-height); height: var(--site-header-height); }
.site-brand { display: flex; flex-shrink: 0; align-items: center; }
.site-brand img { width: 196px; height: 64px; object-fit: contain; }
.site-nav-links { display: flex; align-items: center; gap: 16px; }
.site-nav-links a { padding: 10px 0; font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: .01em; color: #3d4f5c; text-decoration: none; }
.site-nav-links a[aria-current="page"] { color: var(--site-accent); box-shadow: 0 2px var(--site-accent); }
.site-nav-cta { flex-shrink: 0; padding: 13px 17px; border: 1px solid #c8d2d4; border-radius: var(--site-radius); font-size: 13px; line-height: 1.4; font-weight: 600; white-space: nowrap; text-decoration: none; }
.site-phone { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.site-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-contact-icon { flex-shrink: 0; }
.site-nav-toggle[hidden] { display: none; }
.site-nav-toggle { display: none; align-items: center; justify-content: center; flex-direction: column; width: 44px; height: 44px; gap: 5px; background: var(--site-paper); border: 1px solid var(--site-line); border-radius: var(--site-radius); color: var(--site-navy); }
.site-nav-toggle span { display: block; width: 19px; height: 2px; background: currentColor; }
.site-header.is-menu-open .site-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-menu-open .site-nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-menu-open .site-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-theme .primary, .site-theme .btn-primary { background: var(--site-accent); color: #fff; border-radius: var(--site-radius); border: 1px solid var(--site-accent); box-shadow: none; text-shadow: none; }
.site-theme .primary:hover, .site-theme .btn-primary:hover { background: #183e4a; transform: none; box-shadow: none; }
.site-theme .btn-secondary { color: var(--site-accent); border-color: var(--site-line); background: transparent; }
.site-nav-links a, .site-nav-cta, .site-theme .primary, .site-theme .btn { transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease; }
.site-nav-cta:hover { background: #eef2ef; }
.site-menu-utilities { display: none; }
.site-mobile-menu { display: contents; }
.site-footer { padding: 30px 0; border-top: 1px solid var(--site-line); background: var(--site-paper); color: var(--site-muted); font-size: 12px; }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer-brand { color: var(--site-navy); font-size: 16px; font-weight: 700; text-decoration: none; }
.site-footer-links { display: flex; gap: 18px; }
.site-footer-links a { color: var(--site-muted); text-decoration: none; }

/* Archive overrides target shared chrome; legacy article content stays intact. */
.site-theme.blog-body .blog-post-container { max-width: 850px; padding: 64px 48px 80px; margin: 0 auto; }
.site-theme.blog-body .blog-post-card { background: none !important; border: 0 !important; padding: 0; box-shadow: none !important; }
.site-theme.blog-body .blog-post-card > header { background: none; border: 0; padding: 0 0 28px !important; color: var(--site-ink); text-align: left; }
.site-theme.blog-body .blog-title { font: normal 48px/1.12 Georgia, serif; letter-spacing: -.035em; color: var(--site-navy); margin: 0 0 20px; }
.site-theme.blog-body .blog-post-related-service { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.site-theme.blog-body .blog-post-related-service a { color: var(--site-accent); text-decoration: none; }
.site-theme.blog-body .blog-post-related-service a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-theme.blog-body .blog-post-meta { color: var(--site-muted); font-size: 14px; letter-spacing: 0; text-transform: none; margin: 0 0 18px; }
.site-theme.blog-body .blog-post-card > header span, .site-theme.blog-body .related-posts span { background: #eef2ef !important; border: 1px solid var(--site-line); color: #455965 !important; padding: 4px 11px !important; font-size: 12px !important; }
.site-theme.blog-body .blog-post-content { color: var(--site-ink); font-size: 17px; line-height: 1.75; }
.site-theme.blog-body .blog-post-content h2, .site-theme.blog-body .blog-post-content h3, .site-theme.blog-body .blog-post-content h4 { color: var(--site-navy); margin: 34px 0 16px; line-height: 1.3; }
.site-theme.blog-body .blog-post-content h2 { font: normal 30px/1.25 Georgia, serif; letter-spacing: -.015em; }
.site-theme.blog-body .blog-post-content h3 { font-size: 21px; }
.site-theme.blog-body .blog-post-content h4 { font-size: 19px; }
.site-theme.blog-body .blog-post-content p { margin: 0 0 19px; }
.site-theme.blog-body .blog-post-content li { margin: 10px 0; }
.site-theme.blog-body .blog-post-content .legacy-list-group { list-style: none; }
.site-theme.blog-body .blog-post-content [style*="color: cyan"],
.site-theme.blog-body .blog-post-content [style*="color: grey"],
.site-theme.blog-body .blog-post-content [style*="color: #999999"],
.site-theme.blog-body .blog-post-content [style*="color: #ff6319"] { color: inherit !important; }
.site-theme.blog-body .blog-post-content a { color: var(--site-accent); text-decoration-color: currentColor; text-underline-offset: 4px; }
.site-theme.blog-body .blog-post-content img { max-width: 100%; height: auto; }
.site-theme.blog-body .blog-post-content object,
.site-theme.blog-body .blog-post-content embed,
.site-theme.blog-body .blog-post-content iframe { max-width: 100%; }
.site-theme.blog-body .blog-post-content hr { border: 0; border-top: 1px solid var(--site-line); margin: 32px 0; }
.site-theme.blog-body .blog-post-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.site-theme.blog-body .blog-post-content th, .site-theme.blog-body .blog-post-content td { padding: 12px; border: 1px solid var(--site-line); color: var(--site-ink) !important; }
.site-theme.blog-body .blog-post-content pre { overflow-x: auto; }
.site-theme.blog-body .post-share-buttons { display: none; }
.site-theme.blog-body .svg-icon-24 { width: 24px; height: 24px; }
.site-theme.blog-body .related-posts { border-top-color: var(--site-line) !important; }
.site-theme.blog-body .related-posts h2 { font: normal 29px/1.3 Georgia, serif !important; color: var(--site-navy) !important; }
.site-theme.blog-body .related-posts article { background: var(--site-surface) !important; border-color: var(--site-line) !important; box-shadow: none !important; transform: none !important; border-radius: var(--site-radius) !important; padding: 24px !important; }
.site-theme.blog-body .related-posts h3 { font: normal 25px/1.25 Georgia, serif !important; }
.site-theme.blog-body .related-posts a { color: var(--site-accent) !important; }
.site-theme.blog-body .related-posts p, .site-theme.blog-body .blog-post-footer a, .site-theme.blog-body .blog-post-footer div { color: var(--site-muted) !important; }
.site-theme.blog-body .related-posts img { max-width: 100%; max-height: 180px; object-fit: cover; }
.site-theme.blog-body .blog-post-footer { margin-top: 38px; font-size: 14px; }
.site-theme.blog-body .blog-post-footer hr { border-top-color: var(--site-line) !important; }
.site-theme.blog-body .blog-post-footer .btn-link { background: var(--site-paper); color: var(--site-accent) !important; border: 1px solid #778b94; border-radius: var(--site-radius); min-height: 44px; box-shadow: none; }
.site-theme.blog-body .blog-post-footer .btn-link::after { content: none; }
.site-theme.blog-body .blog-index-container { max-width: 1160px; padding: 64px 48px 80px; }
.site-theme.blog-body .blog-index-header { text-align: left; }
.blog-card-layout { display: flex; gap: 1rem; align-items: flex-start; }
.blog-card-copy { flex: 1; min-width: 0; }
#blog-controls { margin-bottom: 1.5rem; }
#tag-filter, #tags-container { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
#tag-filter strong { font-size: .95rem; margin-right: .5rem; }
#clear-filter { margin-left: auto; background: transparent; border: 1px solid var(--site-line); padding: 6px 10px; border-radius: var(--site-radius); cursor: pointer; }
.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.blog-pagination button { background: transparent; border: 1px solid var(--site-line); padding: 8px 16px; border-radius: var(--site-radius); }
@media (max-width: 720px) { .blog-card-layout { display: block; } }
.site-theme.blog-body .blog-index-subtitle { font: normal 35px/1.3 Georgia, serif; color: var(--site-navy); max-width: 850px; }
.site-theme.blog-body .blog-post-card-index { background: var(--site-surface); border-color: var(--site-line); border-radius: var(--site-radius); }
.site-theme.blog-body .blog-post-card-index:hover { transform: none; box-shadow: none; border-color: var(--site-accent); }
.site-theme.blog-body .blog-post-card-index h2 { font: normal 28px/1.25 Georgia, serif; }
.site-theme.blog-body .blog-post-card-index h2 a { color: var(--site-accent); }
.site-theme.blog-body .blog-post-excerpt, .site-theme.blog-body .blog-post-date { color: var(--site-muted); }
.site-theme.blog-body .tag-chip { background: #eef2ef; border-color: var(--site-line); color: var(--site-ink); transition: color 140ms, background-color 140ms; }
.site-theme.blog-body .tag-chip.active { background: var(--site-accent); color: #fff; }
.site-theme.blog-body #pagination button, .site-theme.blog-body #clear-filter { color: var(--site-ink) !important; border-color: var(--site-line) !important; }
.site-theme.blog-body #pagination div, .site-theme.blog-body #tag-filter strong { color: var(--site-muted) !important; }

/* Existing About, legal, and Lab pages retain their copy and functions. */
.site-theme .sidebar, .site-theme .subsection h3, .site-theme .timeline h3 { color: var(--site-navy); }
.site-theme .card, .site-theme .legal-card, .site-theme .metric { background: var(--site-surface); color: var(--site-ink); border: 1px solid var(--site-line); border-radius: var(--site-radius); box-shadow: none; }
.site-theme .card h3, .site-theme .page-wrap h2 { color: var(--site-navy); }
.site-theme .hero, .site-theme .legal-header { background: var(--site-paper); color: var(--site-navy); }
.site-theme .timeline, .site-theme .timeline-item, .site-theme [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
.site-theme .timeline::before { background: var(--site-line); }
.site-theme .timeline-content { background: var(--site-surface); color: var(--site-ink); }
.site-theme .hero-logo-mini, .site-theme .hero-logo { filter: none; }
.site-theme .glow, .site-theme .corner-glow, .site-theme .cursor-glow, .site-theme .magnetic-dots { display: none; }
.site-theme .legal-subtitle, .site-theme .form-subtext, .site-theme .note, .site-theme .faq-content p, .site-theme .faq-content li { color: var(--site-muted); }
.site-theme .legal-card::after { content: none; }
.site-theme .legal-content a { text-decoration: underline; text-underline-offset: 3px; }
.site-theme.consulting-page .disclaimer { color: var(--site-muted); }
.site-theme #submit-urls textarea, .site-theme #run-mode, .site-theme .faq-item { background: var(--site-paper); color: var(--site-ink); border-color: var(--site-line); }
.site-theme .faq-summary { color: var(--site-ink); }

@media (max-width: 1100px) {
  :root { --site-header-height: 136px; }
  html { scrollbar-gutter: stable; }
  html.site-menu-active { overflow: hidden; }
  .site-nav-bar { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 64px 72px; gap: 0 16px; }
  .site-nav-bar.site-container { padding-left: 22px; padding-right: 22px; }
  .site-header.nav-enhanced .site-nav-toggle { display: flex; grid-column: 2; grid-row: 1; }
  .site-phone, .site-nav-cta { display: none; }
  .site-header.nav-enhanced .site-nav-links { display: none; flex-direction: column; align-items: stretch; gap: 0; }
  .site-header.nav-enhanced.is-menu-open .site-mobile-menu {
    display: flex; flex-direction: column; position: fixed; z-index: 2; inset: 64px 0 auto;
    height: calc(100vh - 64px); height: calc(100dvh - 64px);
    padding-left: max(22px, env(safe-area-inset-left, 0px));
    padding-right: max(22px, env(safe-area-inset-right, 0px));
    background: var(--site-paper); overflow-y: auto; overscroll-behavior: contain;
    scroll-padding-bottom: max(12px, var(--site-menu-safe-bottom, env(safe-area-inset-bottom, 0px)));
  }
  .site-header.nav-enhanced.is-menu-open .site-nav-links { display: flex; }
  .site-header.nav-enhanced.is-menu-open .site-nav-links { flex: 1 1 auto; min-height: max(44px, calc(1.3125rem + 28px)); padding: 12px 0 18px; overflow-y: auto; overscroll-behavior: contain; }
  .site-header.nav-enhanced.is-menu-open .site-menu-utilities {
    flex: 0 0 auto; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
    border-top: 1px solid var(--site-line); box-shadow: none;
    padding-bottom: max(12px, var(--site-menu-safe-bottom, env(safe-area-inset-bottom, 0px)));
  }
  .site-header.is-menu-open .site-menu-utilities a { font-size: .9375rem; white-space: normal; }
  .site-header.is-menu-open .site-menu-utilities a > span { min-width: 0; overflow-wrap: anywhere; }
  .site-nav-links a { flex-shrink: 0; padding: 14px 0; font-size: .9375rem; min-height: 44px; }
  .site-nav-links a[aria-current="page"] { box-shadow: none; text-decoration: underline; text-underline-offset: 5px; }
  .site-menu-utilities { display: grid; grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 12px 0; box-shadow: inset 0 -1px var(--site-line); }
  .site-menu-utilities a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 0; font-size: 15px; line-height: 1.4; font-weight: 600; white-space: nowrap; color: var(--site-accent); text-decoration: none; }
  .site-menu-utilities a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .site-header:not(.nav-enhanced) .site-nav-bar { height: auto; padding-bottom: 12px; }
  .site-header:not(.nav-enhanced) .site-nav-links { grid-column: 1 / -1; grid-row: 3; gap: 18px; flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .site-container { padding: 0 22px; }
  .site-brand img { width: 164px; height: 54px; }
  .site-nav-cta { display: none; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-theme.blog-body .blog-post-container, .site-theme.blog-body .blog-index-container { padding: 40px 22px 56px; }
  .site-theme.blog-body .blog-title { font-size: 35px; line-height: 1.16; }
  .site-theme.blog-body .blog-post-content { font-size: 16px; }
  .site-theme.blog-body .blog-post-content h2 { font-size: 27px; }
  .site-theme.blog-body .related-posts article { padding: 20px !important; }
  .site-theme.blog-body .blog-index-subtitle { font-size: 30px; }
}
@media (max-width: 360px) {
  :root { --site-header-height: 184px; }
  .site-nav-bar { grid-template-rows: 64px 120px; }
  .site-menu-utilities { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .site-theme *, .site-theme *::before, .site-theme *::after { transition: none !important; animation: none !important; }
}

/* Responsive supporting components. */
.site-theme .page-wrap img { max-width: 100%; height: auto; }
.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--site-line); }
.related-posts-grid { display: grid; gap: 1rem; }
.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Percentage tracks in the prototype must leave room for their grid gap. */
.consulting-page .problem-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.site-theme.consulting-page { background: var(--site-surface); }
.consulting-page .how-wrap { grid-template-columns: minmax(0, 39fr) minmax(0, 61fr); }
.consulting-page .closing-inner { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); }
.site-theme.blog-body .blog-post-content { overflow-wrap: anywhere; }
.site-theme.blog-body .blog-post-content a[imageanchor],
.site-theme.blog-body .blog-post-content .separator > a,
.site-theme.blog-body .blog-post-content a:has(img) {
  display: inline-block; max-width: 100%; margin-left: 0 !important; margin-right: 0 !important;
}
.site-theme .timeline-container {
  position: static; height: auto; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.site-theme .timeline-item {
  position: static !important; left: auto !important; top: auto !important;
  width: auto !important; max-width: 100%; min-width: 0;
  padding: 20px; border-top: 1px solid var(--site-line); color: var(--site-ink);
}
.site-theme .timeline-line, .site-theme .timeline-milestone { display: none; }
@media (max-width: 820px) {
  .consulting-page .closing-inner { grid-template-columns: 1fr; }
  .site-theme .timeline-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 610px) {
  .consulting-page .problem-row, .consulting-page .how-wrap { grid-template-columns: 1fr; }
  .site-theme .timeline-container { grid-template-columns: 1fr; }
}

/* Secondary inquiry action leaves the scheduling CTA prominent. */
.site-theme .inquiry-link { display: block; width: fit-content; margin: 6px 0 24px; padding: 10px 0; min-height: 44px; font-size: 16px; text-underline-offset: 4px; }

/* Spacious targets for the new article's compact related-reading list. */
.article-reading-links a { display: inline-block; padding-block: 8px; line-height: 1.5; }
