:root {
  --bg-color: #f9fafb;
  --card-bg: #ffffff;
  --text-primary: #111827;
  --text-muted: #4b5563;
  --border-color: #e5e7eb;
  --accent-color: #1e3a8a; /* Deep Navy */
  --accent-light: #eff6ff;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --max-width: 860px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  font-size: 16px;
  padding: 0 20px;
}

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

/* Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.site-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover, nav a.active {
  color: var(--accent-color);
}

/* Typography & Headers */
h1, h2, h3 {
  color: var(--text-primary);
  line-height: 1.3;
}

h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
h2 { font-size: 1.4rem; font-weight: 700; margin: 36px 0 16px 0; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }

p { margin-bottom: 16px; color: var(--text-muted); }

/* Buttons & Links */
.btn-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn:hover { opacity: 0.9; }

a.inline-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

/* Capability Grid */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 20px;
}

.card h3 { color: var(--accent-color); }

/* Timeline */
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}

.timeline-date {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Callout Box */
.callout {
  background-color: var(--accent-light);
  border-left: 4px solid var(--accent-color);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
}

/* Tables for Recruiter matrix */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--card-bg);
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
}

th { background-color: #f3f4f6; font-weight: 600; }

footer {
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
}

/* Restrain content images */
.content img,
main img,
article img {
  max-width: 80%;       /* Prevents images from stretching full width */
  height: auto;         /* Maintains aspect ratio */
  display: block;
  margin: 1.5rem auto;  /* Centers images with vertical breathing room */
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Adjust layout on mobile devices */
@media (max-width: 768px) {
  .content img,
  main img,
  article img {
    max-width: 100%;
  }
}

/* --- Resume & Typography Formatting --- */

/* Fix bullet point AND numbered list indentation and spacing */
.content ul,
main ul,
article ul,
.content ol,
main ol,
article ol {
  padding-left: 1.5rem !important; /* Forces proper indentation for both bullets and numbers */
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.content li,
main li,
article li {
  margin-bottom: 0.5rem; /* Adds breathing room between list items */
  line-height: 1.6;
}

/* Clearer section distinction */
.content h2,
main h2,
article h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e293b;
  margin-top: 2.25rem; /* Clear separation above new section */
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #2563eb; /* Accent border for clear section definition */
}

.content h3,
main h3,
article h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.content h4,
main h4,
article h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

/* Subtitles / Role Dates styling */
.role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

/* Remove default horizontal rule clutter if heading borders are used */
.content hr,
main hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2rem 0;
}

/* --- Print Stylesheet --- */
@media print {
  /* Hide interactive site elements on print */
  header,
  footer,
  nav,
  .no-print,
  .button {
    display: none !important;
  }

  /* Reset layout margins for clean paper rendering */
  body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  main,
  .content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Ensure blue accent lines and text colors print clearly */
  h2 {
    border-bottom: 2px solid #2563eb !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}