  /* --- 1. Global Header Override & Base Structure --- */
  .main-header { 
    background-color: rgba(14, 114, 180, 1); 
    border-bottom: 2px solid rgba(255, 255, 255, .8); 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4); 
  }
  
/* ==========================================================================
   1. CORE RESUME SECTION WRAPPER & SAFETY BUFFER
   ========================================================================== */
.resume {
  /* Leverages background variables for toggle mechanics */ 
  background-color: var(--bg-primary); 
  color: var(--text-primary); 
  /* Layout Safety Buffer: Pushes content cleanly down below fixed headers */ 
  padding-top: clamp(6rem, 5rem + 3vw, 12rem); 
  padding-bottom: clamp(4rem, 3rem + 3vw, 10rem); 
  transition: background-color 0.3s ease, color 0.3s ease; 
}

/* ==========================================================================
   2. ASYMMETRIC HEADER INTRO
   ========================================================================== */
.page-intro { 
  margin-bottom: 5rem; 
  border-bottom: 1px solid #e7e7e7;
  padding-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: flex-end;
}

/* Handshakes with your custom navigation color register tokens */
[data-theme="dark"] .page-intro {
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

[data-theme="dark"] .ticker-text {
  color: #25c47a; /* Smoothly snaps to your preferred dark link target tint */
}

.page-intro h1 { 
  font-family: "Bebas Neue", sans-serif; 
  font-size: clamp(3rem, 5vw, 5rem); /* Matches your global H1 style guide scaling */
  margin: 0 0 1rem 0; 
  letter-spacing: 0.03rem;
  line-height: 0.95;
}

.subtitle { 
  font-size: 1.1rem; 
  line-height: 1.5; 
  color: var(--text-primary);
  opacity: 0.85; /* Softens reading density naturally across both themes */
  max-width: 750px; 
  margin: 0;
}

/* ==========================================================================
   2. ASYMMETRIC HEADER INTRO (OPTION A: GRID BALANCED)
   ========================================================================== */
.page-intro { 
  margin-bottom: 5rem; 
  border-bottom: 1px solid #e7e7e7;
  padding-bottom: 2.5rem;
  
  /* Flexbox creates a perfect 2-column layout across desktop screens */
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* Anchors the button baseline flat with the text */
  gap: 3rem;
}

[data-theme="dark"] .page-intro {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.intro-text-block {
  flex: 1; /* Allows text elements to claim all available horizontal space */
  max-width: 780px; /* Prevents text rows from stretching too wide to read easily */
}

.resume-actions {
  flex-shrink: 0; /* Guarantees the button never squeezes or warps */
}

/* Mobile Media Query Override: Stacks elements cleanly on small viewports */
@media (max-width: 1024px) {
  .page-intro {
    flex-direction: column;
    align-items: flex-start; /* Aligns button to the left margin on mobile */
    gap: 1.5rem;
    margin-bottom: 3.5rem;
  }
}


/* ==========================================================================
   3. ATS ACTION BUTTON (Pulls straight from your existing .btn framework)
   ========================================================================== */
.btn-download { 
  display: inline-flex; 
  align-items: center; 
  gap: 12px; 
  background-color: rgba(14, 114, 180, 1); /* Your exact global header brand blue */
  color: #ffffff !important; 
  padding: 15px 30px; 
  border-radius: 8px; 
  text-decoration: none; 
  font-weight: 500; 
  font-size: 1.15rem;
  border: 1px solid rgba(255, 255, 255, .8);
  transition: all 0.2s ease-in-out;
}

.btn-download:hover { 
  filter: brightness(140%);
  transform: translateY(-2px);
}

/* ==========================================================================
   4. TWO-COLUMN PORTFOLIO ARCHITECTURE LAYOUT
   ========================================================================== */
.resume-grid { 
  display: grid; 
  grid-template-columns: 320px 1fr; 
  gap: 5rem; 
  align-items: start;
}

.resume-section h2 { 
  font-family: "Bebas Neue", sans-serif; 
  font-size: clamp(2rem, 4vw, 3rem); /* Tied perfectly to your layout H2 tokens */
  letter-spacing: 0.04rem; 
  border-bottom: 4px solid rgba(14, 114, 180, 1); /* Brand color foundation accent */
  padding-bottom: 0.5rem; 
  margin: 0 0 2rem 0; 
  color: var(--text-primary);
}

.resume-sidebar {
  position: sticky;
  top: 120px; 
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* Glassmorphism Badges linking safely to your theme variables */
.credential-badge { 
  background-color: rgba(14, 114, 180, 0.04); 
  border-left: 4px solid rgba(14, 114, 180, 1); 
  padding: 1.5rem; 
  border-radius: 0 8px 8px 0; 
  margin-bottom: 1.5rem;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.2s ease;
}

.credential-badge:hover { 
  transform: translateX(4px);
  border-left: 4px solid var(--badge-label-accent-text); 
}

[data-theme="dark"] .credential-badge:hover {
  background-color: rgba(255, 255, 255, 0.02);
  border-left: 4px solid var(--badge-label-accent-text);
}

.badge-title { font-weight: 600; font-size: 1.15rem; color: var(--text-primary); }
.badge-org { color: var(--text-primary); opacity: 0.6; font-size: 0.85rem; margin: 4px 0 12px 0; text-transform: uppercase; font-weight: 500; }
.credential-badge p { font-size: 0.95rem; line-height: 1.5; color: var(--text-primary); opacity: 0.8; margin: 0; }

/* Responsive Skill Pill Lists */
.skills-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-list li { 
  background-color: rgba(14, 114, 180, 0.06);
  border: 1px solid rgba(14, 114, 180, 0.15);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: default;
  transition: all 0.2s ease;
}

[data-theme="dark"] .skills-list li {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.skills-list li:hover {
  background-color: #fff;
}

[data-theme="dark"] .skills-list li:hover {
  background-color: rgba(0, 0, 0, .2);
}

/* ==========================================================================
   5. TIMELINE LAYOUT
   ========================================================================== */
.resume-history {
  display: flex;
  flex-direction: column;
}

.job-card { 
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 4rem;
  border-left: 2px solid #e7e7e7;
}

[data-theme="dark"] .job-card {
  border-left: 2px solid rgba(255, 255, 255, .1);
}

/* Connected Interactive Node Indicator */
.job-card::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 2px solid rgba(14, 114, 180, 1);
  transition: all 0.2s ease;
}

[data-theme="dark"] .job-card::before {
  border-color: #0d94e2;
}

.job-card:hover::before {
  background-color: rgba(14, 114, 180, .8);
  transform: scale(1.2);
}

.job-header { margin-bottom: 1.5rem; }
.job-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }

.job-title-row h3 { font-size: 1.6rem; margin: 0; letter-spacing: .08rem;}
.job-dates { font-size: 0.95rem; color: var(--text-primary); opacity: .7;}

.job-company { font-size: 1.1rem; opacity: 0.8; margin-top: 4px; font-weight: 500; }
.job-company .divider { margin: 0 8px; opacity: 0.8; }

.job-bullets { padding-left: 1.5rem; margin: 0; }
.job-bullets li { margin-bottom: 12px; line-height: 1.6; color: var(--text-primary); opacity: 0.9; font-size: 1rem; }

.past-job-desc { color: var(--text-primary); opacity: 0.8; line-height: 1.6; font-size: 1rem; margin: 0; }

/* --- 8. LINKEDIN RECOMMENDATIONS MODULE LAYOUT --- */
.recommendation-card {
  position: relative;
  background-color: rgba(14, 114, 180, 0.03); /* Light tint linking to header colors */
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  margin-left: 0;
  margin-right: 0;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

[data-theme="dark"] .recommendation-card {
  background-color: rgba(255, 255, 255, 0.01);
  border-color: rgba(255, 255, 255, 0.1);
}

.profile-pic{
  border-radius: 50%;
  height: 50px;
  width: 50px;
  float: left;
  margin-right: 20px;
  border: 3px solid rgba(255, 255, 255, .6);
  transition: transform 0.2s ease,
}

.quote-icon {
  color: rgba(14, 114, 180, 0.3);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.recommendation-text {
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.recommendation-author {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(231, 231, 231, 1);
  background-color: rgba(255, 255, 255, 0);
}

.recommendation-author:hover {
  border: 1px solid rgba(231, 231, 231, 1);
  background-color: rgba(255, 255, 255, 1);
}

[data-theme="dark"] .recommendation-author {
  background-color: rgba(255, 255, 255, 0.01);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .recommendation-author:hover {
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, 0.1);
}

.recommendation-author strong {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.recommendation-author .author-title {
  font-size: 0.9rem;
  color: var(--text-primary);
  opacity: 0.6;
  margin-top: 2px;
}

/* Print Safeties for Recommendations */
@media print {
  .recommendation-card {
    page-break-inside: avoid;
    border: none !important;
    border-left: 3pt solid #cccccc !important;
    padding-left: 15pt !important;
    margin-bottom: 20pt !important;
    background: transparent !important;
  }
  .quote-icon { display: none !important; }
}


/* ==========================================================================
   6. RESPONSIVE VIEWPORT SYSTEM
   ========================================================================== */
@media (max-width: 1024px) {
  .resume-grid { grid-template-columns: 1fr; gap: 4rem; }
  .resume-sidebar { position: static; }
  .page-intro { grid-template-columns: 1fr; gap: 2rem; align-items: flex-start; }
}

@media (max-width: 600px) {
  .job-title-row { flex-direction: column; gap: 6px; }
  .job-card { padding-left: 1.5rem; }
}


/* ==========================================================================
   7. STRIEGENT WCAG PRINT STYLESHEET OVERRIDE
   ========================================================================== */
@media print {
  /* Force a clean, high-contrast black-on-white layout and reset page edges */
  *, *::before, *::after {
    background: transparent !important;
    color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
  }

  @page {
    size: letter;
    margin: 0.6in 0.8in 0.6in 0.8in; /* Perfect margin safety boundaries for standard sheets */
  }

  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
  }

  /* Completely strip out non-resume structural web artifacts */
  .main-header,
  .main-footer,
  .mobile-only-switch,
  .desktop-only-switch,
  .nav-theme-switch-container,
  .resume-actions,
  button,
  .btn-download,
  i,
  .fa-solid,
  .fa-regular {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Reset layout containers to use full printable block dimensions */
  .resume, 
  .max-width-container, 
  .inner-page-wrapper, 
  .inner-page-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Typography Optimization */
  .page-intro {
    margin-bottom: 25pt !important;
    padding-bottom: 15pt !important;
    border-bottom: 1pt solid #666666 !important;
    display: block !important; /* Flatten grid layout back to block context */
  }

  .ticker-text {
    font-size: 11pt !important;
    font-weight: bold !important;
    color: #000000 !important;
    margin-bottom: 4pt !important;
  }

  .page-intro h1 {
    font-size: 28pt !important;
    margin: 0 0 8pt 0 !important;
    color: #000000 !important;
  }

  .subtitle {
    font-size: 11pt !important;
    color: #333333 !important;
    max-width: 100% !important;
  }

  /* Append dynamic global contact fallback details inside print layouts */
  .page-intro::after {
    content: "Ogden, Utah | echymas@aol.com | www.linkedin.com/in/echymas";
    display: block;
    margin-top: 10pt;
    font-size: 10pt;
    font-weight: 600;
    font-family: monospace;
    border-top: 1px dashed #ccc;
    padding-top: 8pt;
  }

  /* Flatten the asymmetric two-column grid layout completely */
  .resume-grid {
    display: block !important;
    width: 100% !important;
  }

  .resume-sidebar {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin-bottom: 20pt !important;
  }

  .resume-section {
    margin-bottom: 20pt !important;
    page-break-inside: avoid; /* Prevents text split breaks across sheet margins */
  }

  .resume-section h2 {
    font-size: 16pt !important;
    border-bottom: 1.5pt solid #000000 !important;
    padding-bottom: 3pt !important;
    margin-bottom: 12pt !important;
    margin-top: 15pt !important;
    color: #000000 !important;
  }

  /* Standardize sidebar badges back to text lists */
  .credential-badge {
    background-color: transparent !important;
    border: none !important;
    border-left: 2pt solid #000000 !important;
    padding: 0 0 0 10pt !important;
    margin-bottom: 12pt !important;
    box-shadow: none !important;
  }

  .badge-title { font-size: 11pt !important; color: #000000 !important; }
  .badge-org { font-size: 9pt !important; color: #444444 !important; margin: 2pt 0 4pt 0 !important; }
  
  /* Transform Interactive Skill Pills back to scannable flat inline blocks */
  .skills-list {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .skills-list li {
    display: inline !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #000000 !important;
    font-size: 10pt !important;
  }

  /* Separate items using clear punctuation markers */
  .skills-list li:not(:last-child)::after {
    content: ", ";
  }

  /* Timeline Layout Restoration */
  .resume-history {
    display: block !important;
    width: 100% !important;
  }

  .job-card {
    border-left: none !important;
    padding-left: 0 !important;
    margin-bottom: 22pt !important;
    page-break-inside: avoid; /* Blocks row cut-offs across layout margins */
  }

  .job-card::before {
    display: none !important; /* Strip interactive dot anchors */
  }

  .job-header {
    margin-bottom: 8pt !important;
  }

  .job-title-row {
    display: block !important; /* Stack text paths on small sheets natively */
  }

  .job-title-row h3 {
    font-size: 13pt !important;
    color: #000000 !important;
    display: inline-block !important;
  }

  .job-dates {
    font-size: 10pt !important;
    color: #000000 !important;
    float: right; /* Elegantly push dates hard right against margins */
    font-weight: bold !important;
  }

  .job-company {
    font-size: 11pt !important;
    color: #222222 !important;
    margin-top: 2pt !important;
  }

  .job-bullets {
    padding-left: 15pt !important;
    margin-top: 5pt !important;
  }

  .job-bullets li {
    margin-bottom: 5pt !important;
    font-size: 10.5pt !important;
    line-height: 1.35 !important;
  }
}
