/**
 * Tech-Noir: System Specification Aesthetic (Theme-Aware)
 * Guardian of Reasoning — Lab Console Vibe
 */


:root {
  /* Light Mode - "Clinical Lab" Aesthetic */
  --tech-bg: #ffffff;
  --tech-text-main: #111827;
  --tech-text-muted: #4b5563;
  --tech-grid: rgba(0, 143, 114, 0.05);
  --tech-card-bg: #f9fafb;
  --tech-card-border: #e5e7eb;
  --tech-accent: #00ffcc;
}

html.dark {
  /* Dark Mode - "Deep Matte" Aesthetic */
  --tech-bg: #0a0a0a;
  --tech-text-main: #fafafa;
  --tech-text-muted: #a3a3a3;
  --tech-grid: rgba(0, 255, 204, 0.03);
  --tech-card-bg: #0d0d0d;
  --tech-card-border: #1a1a1a;
}


/* Global background & text */
body,
.wg-blank,
main {
  background-color: var(--tech-bg) !important;
  color: var(--tech-text-main) !important;
}

/* Prose/text contrast */
.prose, .prose p, .prose h1, .prose h2, .prose h3, .prose strong {
  color: var(--tech-text-main) !important;
}
.prose .lead, .services-tier-meta {
  color: var(--tech-text-muted) !important;
}

/* Electric Cyan CTA (theme-aware via --tech-accent) */
.btn-primary,
a.btn-primary,
[class*="btn-primary"],
.cta-button,
a[class*="primary"]:not([class*="text"]):not([class*="bg"]) {
  background-color: var(--tech-accent) !important;
  border-color: var(--tech-accent) !important;
  color: #0a0a0a !important;
}

.btn-primary:hover,
a.btn-primary:hover,
.cta-button:hover {
  background-color: #00e6b8 !important;
  border-color: #00e6b8 !important;
  color: #0a0a0a !important;
}

/* Lab Console: subtle grid overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(var(--tech-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--tech-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Ensure content sits above overlays */
main,
.wg-blank,
article {
  position: relative;
  z-index: 1;
}

/* ----- Article/Blog page: wider content on desktop ----- */
/* Theme uses max-w-screen-xl (1280px) and main max-w-6xl (1152px). Match site container_width (1600px) on wide screens. */
@media (min-width: 1280px) {
  .page-body .mx-auto.flex.max-w-screen-xl {
    max-width: 1800px !important;
  }
  .page-body main.max-w-6xl {
    max-width: 90rem !important; /* 1440px – wider than 6xl, still readable */
  }
}
@media (min-width: 1536px) {
  .page-body main.max-w-6xl {
    max-width: 100rem !important; /* 1600px on very wide screens */
  }
}

/* ----- Services: High-End Productized Grid (Tech-Noir) ----- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ----- Services: Match Bio page layout (same max-width and horizontal margins) ----- */
/* Bio page uses theme container_width: 1600px from config/_default/params.yaml.
   Services page must use the same so it doesn't look stretched or squeezed. */

/* 0. Force entire Services page to 1600px so content never stretches past Bio width */
.page-body:has(.services-section-container) {
  max-width: 1600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--bs-gutter-x, 1.5rem) !important;
  padding-right: var(--bs-gutter-x, 1.5rem) !important;
  box-sizing: border-box !important;
}

/* 1. Same container constraints as Bio page (1600px + theme gutter) */
.services-section-container,
.section-landing .container {
  max-width: 1600px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--bs-gutter-x, 1.5rem) !important;
  padding-right: var(--bs-gutter-x, 1.5rem) !important;
  box-sizing: border-box !important;
}
.services-section-container {
  overflow-x: hidden !important; /* prevent engagement framework from causing horizontal scroll */
}
/* Services page body: consistent vertical rhythm (avoid double spacing with theme) */
.page-body .section-landing {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}
.page-body .section-landing:last-child {
  padding-bottom: 3rem;
}
.page-body [id^="section-"] {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

/* 2. Un-squeeze internal text blocks; keep left-aligned for non-hero content */
.blox-markdown .flex.flex-col.items-center,
.blox-markdown .max-w-prose,
.prose.prose-slate.lg\:prose-xl {
  max-width: 100% !important;
  width: 100% !important;
  text-align: left !important;
  align-items: flex-start !important;
}

/* ----- Services: Hero / Intro block – align with Bio "Professional Summary" left edge ----- */
/* First section hero: left-aligned so "Engagement Tiers" matches Bio page header offset */
.page-body:has(.services-section-container) .section-landing:first-of-type .flex.flex-col.items-center.max-w-prose {
  align-items: flex-start !important;
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 42rem !important;
  padding: 2.5rem 0 !important;
}
/* Fallback for section id (when first section uses #section-markdown) */
#section-markdown .flex.flex-col.items-center.max-w-prose {
  align-items: center !important;
  text-align: center !important;
  padding: 2.5rem var(--bs-gutter-x, 1.5rem) !important;
  max-width: 42rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.page-body:has(.services-section-container) #section-markdown .flex.flex-col.items-center.max-w-prose {
  align-items: flex-start !important;
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 2.5rem 0 !important;
}
/* Cards section: no max-width so grid can use full container */
/* Hero title (Engagement Tiers) */
#section-markdown .flex.flex-col.items-center h1,
#section-markdown .flex.flex-col.items-center.max-w-prose h1,
.blox-markdown .flex.flex-col.items-center.max-w-prose h1 {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: clamp(1.75rem, 4vw, 2.25rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 0.375rem !important;
  color: var(--tech-text-main) !important;
}
/* Hero subtitle – only .lead to avoid styling body text as subtitle */
#section-markdown .flex.flex-col.items-center .lead,
.blox-markdown .flex.flex-col.items-center.max-w-prose .lead {
  font-size: 0.8125rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  opacity: 0.9 !important;
  margin-bottom: 1rem !important;
  color: var(--tech-text-muted) !important;
}
/* Hero body text */
#section-markdown .flex.flex-col.items-center.max-w-prose .prose p,
#section-markdown .flex.flex-col.items-center.max-w-prose p,
.blox-markdown .flex.flex-col.items-center.max-w-prose .prose p,
.blox-markdown .flex.flex-col.items-center.max-w-prose p {
  font-size: 1.0625rem !important;
  line-height: 1.7 !important;
  color: var(--tech-text-main) !important;
  margin-bottom: 0.75rem !important;
}
#section-markdown .flex.flex-col.items-center.max-w-prose p:last-child,
.blox-markdown .flex.flex-col.items-center.max-w-prose p:last-child {
  margin-bottom: 0 !important;
}
#section-markdown .flex.flex-col.items-center.max-w-prose strong,
.blox-markdown .flex.flex-col.items-center.max-w-prose strong {
  color: var(--tech-text-main);
  font-weight: 600;
}

/* 3. Grid Alignment: Side-by-side cards, Projects-style polish (gap, radius) */
.services-section-container {
  padding-top: 0.25rem !important;
}
.services-tier-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
  align-items: stretch !important;
  margin: 2.75rem 0 !important;
}

/* 4. Tier cards: professional elevation, theme-aware (use variables) */
.services-tier-card,
.engagement-step {
  background-color: var(--tech-card-bg) !important;
  border: 1px solid var(--tech-card-border) !important;
  color: var(--tech-text-main) !important;
  padding: 2rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
}
.services-tier-card {
  border-radius: 12px !important;
}
.services-tier-card:hover {
  border-color: var(--tech-accent) !important;
  box-shadow: 0 8px 32px rgba(0, 255, 204, 0.15) !important;
}

/* 5. Engagement Framework: 3 columns that respect container (no overflow) */
.engagement-framework-steps {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
  min-width: 0 !important; /* allow grid to shrink inside constrained container */
}

/* Responsiveness: Stack on mobile and tighten spacing */
@media (max-width: 991px) {
  .services-tier-grid,
  .engagement-framework-steps {
    grid-template-columns: 1fr !important;
  }
  .services-tier-grid {
    margin: 2.5rem 0 !important;
    gap: 1.75rem !important;
  }
  #section-markdown .flex.flex-col.items-center.max-w-prose,
  .blox-markdown .flex.flex-col.items-center.max-w-prose.mx-auto {
    padding: 2rem var(--bs-gutter-x, 1.5rem) !important;
    max-width: 100% !important;
  }
  .services-section-container,
  .section-landing .container {
    padding-left: var(--bs-gutter-x, 1.5rem) !important;
    padding-right: var(--bs-gutter-x, 1.5rem) !important;
  }
  .engagement-framework {
    margin-top: 3.5rem !important;
    padding-top: 2rem !important;
  }
}

.services-tier-card {
  display: flex;
  flex-direction: column;
  font-family: var(--bs-body-font-family);
}
.services-tier-card .btn-ghost {
  margin-top: auto;
  align-self: flex-start;
}
.services-tier-card .services-tier-icon {
  color: #00ffcc;
  margin-bottom: 1.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.services-tier-card .services-tier-icon svg {
  width: 28px;
  height: 28px;
}



.services-tier-card .services-tier-title,
.services-tier-card .services-tier-price,
.services-tier-card .services-tier-meta,
.services-tier-outcomes-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
}
.services-tier-card .services-tier-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--tech-text-main) !important;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.services-tier-card .services-tier-price {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 1.75rem;
  font-weight: 700;
  color: #00ffcc;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.services-tier-price-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
  margin-bottom: 0.15rem;
}
.services-tier-price-unit {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}
a.services-term-link {
  color: #00ffcc;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
a.services-term-link:hover {
  border-bottom-color: #00ffcc;
  opacity: 1;
}
.services-tier-card .services-tier-meta {
  font-size: 0.875rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}
.services-tier-card .services-tier-desc {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  max-width: 42em;
  color: var(--tech-text-main) !important;
}
.services-tier-outcomes-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}
.services-tier-outcomes {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}
.services-tier-outcomes li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--tech-text-muted) !important;
}
.services-tier-outcomes li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #00ffcc;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* Ghost button: transparent + cyan border, hover = solid + glow */
a.btn-ghost {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.65rem 1.35rem;
  border: 1px solid #00ffcc;
  background: transparent;
  color: #00ffcc;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.02em;
}
a.btn-ghost:hover {
  background: #00ffcc;
  color: #0a0a0a;
  box-shadow: 0 0 14px rgba(0, 255, 204, 0.35);
  border-color: #00ffcc;
}

/* Ensure ghost buttons are readable in Light Mode */
html:not(.dark) a.btn-ghost {
  color: #008f72 !important; /* A darker "Lab Teal" for better contrast on white */
  border-color: #008f72 !important;
}
html:not(.dark) a.btn-ghost:hover {
  background: #008f72 !important;
  color: #ffffff !important;
  border-color: #008f72 !important;
}

/* Engagement Framework: 3-step horizontal on desktop, terminal-style accent */
.engagement-framework {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid #1a1a1a;
}
.engagement-framework-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2rem;
  color: var(--tech-text-muted) !important;
}
.engagement-framework-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}



.engagement-step {
  display: flex;
  flex-direction: column;
  border-left: 3px solid #00ffcc;
  padding: 2rem 1.25rem;
  padding-left: 1.25rem;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0; /* allow step to shrink inside grid */
}



.engagement-step:hover {
  border-left-color: #00e6b8;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.engagement-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0a0a0a;
  background-color: #00ffcc;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
.engagement-step-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--tech-text-main) !important;
  letter-spacing: -0.01em;
}
.engagement-step-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
  color: var(--tech-text-muted) !important;
}



.powered-by.text-sm.opacity-80 {
  display: none !important;
}


.footer-license-icons {
  display: none !important;
}






/* ========================================= */
/* BLOG POST FOOTER ALIGNMENT FIX            */
/* ========================================= */

/* 1. Force the 'Tags' (Applied Math, Calculus, etc.) to align Left */
.prose .flex.justify-center {
  justify-content: flex-start !important;
}


/* 3. Reduce the large vertical gap above the Author Bio */
/* The default theme adds 'pt-12' (approx 3rem), this cuts it in half */
.prose .flex.pt-12 {
  padding-top: 1.5rem !important;
}



/* ========================================= */
/* FIX: Force Blog Footer to Full Width      */
/* ========================================= */

/* 1. Target the div with "max-w-prose print:hidden" explicitly */
/* We must escape the colon in 'print:hidden' with a backslash */
.prose .max-w-prose.print\:hidden {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important; /* Optional: remove padding if you want it flush */
}

/* 2. Ensure the internal Author Bio card also expands */
.prose .max-w-prose.print\:hidden .flex.pt-12 {
  max-width: 100% !important;
  width: 100% !important;
}


/* Hide 'Powered by Hugo Blox' in the Search Modal */
a[href*="hugoblox.com"] {
  display: none !important;
}

/* ========================================= */
/* Match Project footer spacing with Posts  */
/* ========================================= */
.project-body + .container,
.project-body + div[class*="container"],
.page-body:has(.project-body) .flex.justify-between {
  margin-top: 1.5rem !important;
  padding-top: 0 !important;
}
.page-body:has(.project-body) hr {
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
}

/* ========================================= */
/* FOOTER POSITIONING FIX                    */
/* ========================================= */

/* Reduce the 6rem gap above the footer to something more professional */
.page-footer footer {
  margin-top: 1.5rem !important; /* Overrides mt-24 */
  padding-top: 0 !important;
}

/* Ensure the main page content doesn't push the footer further than needed */
.page-body {
  padding-bottom: 1rem !important;
}

/* Center and dim the copyright for a subtle "status bar" look */
.page-footer .powered-by.text-center {
  margin-bottom: 1rem !important;
  opacity: 0.6;
}



.experience,
.education {
  background-color: var(--tech-card-bg) !important;
  border: 1px solid var(--tech-card-border) !important;
  color: var(--tech-text-main) !important;
}
