.main{
  top: 0;  
  flex: 1 0 auto;
  position:relative;           /* anchor for absolute side-nav */
  overflow: visible;           /* allow the menu to overflow into promo */
  display: grid;
  grid-template-columns: 1fr;  /* content gets full width; we’ll pad it */
  /*gap: var(--space-4);*/
  /*padding-block: var(--space-4) 0;*/
  /*background-color: #DCD8CD;*/
  margin-block: 0;


}



.resume-profile-panel {
  display: flex;
  flex-direction: column;
  align-items: center; /* “left” */
  gap: 1.25rem;
  text-align: left;
  margin: 0;
}

.resume-profile-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
  border: 1px solid #a59b9b;
  background: #fff;
  /* optional nudges */
  margin-top: 0.5rem;
}



/* Responsive repositioning */
@media (max-width: 900px) {
  .big-ellipse {
    position: static;
    margin: 1.5rem auto 0;
    transform: none;
    width: clamp(120px, 30vw, 160px);
  }
}

@media (max-width: 480px) {
  .big-ellipse {
    width: clamp(110px, 40vw, 140px);
    margin-top: 1rem;
  }
}

.pageResume {
  max-width: 1024px;
  margin: 32px auto 0;
  padding: 40px 48px;
  background: #fff;
  border: 1px solid #e8eef3;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  font-family: 'Roboto', sans-serif;
  color: #0a0a0a;
  line-height: 1.6;
  padding-top: clamp(1rem, 2vw, 2rem); /* instead of var(--header-h) */
  position: relative;          /* allows controlled offsets */
  inset: auto;                 /* resets all offsets initially */
  z-index: 1;
}
/* Then create CSS variables for responsive control */
:root {
  --page-top: clamp(0rem, 2vw, 1rem);
  --page-right: auto;
  --page-bottom: auto;
  --page-left: auto;
}

/* Apply them dynamically */
.pageResume {
  top: var(--page-top);
  right: var(--page-right);
  bottom: var(--page-bottom);
  left: var(--page-left);
}
@media (max-width: 768px) {
  :root {
    --page-top: 1rem;
  }
}
.resume-header {
  
  text-align: center;
  margin-bottom: 18px;
}

.resume-name {
  
  font-size: 30px;
  letter-spacing: 1.2px;
  margin: 0 0 6px 0;
}

.resume-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.resume-motto {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 10px;
}

.resume-meta, .resume-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
}

.resume-sep { color: #b9c2cc; }

.resume-section-title {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: .4px;
  color: #20497f;
  border-bottom: 1px solid #e8eef3;
  padding-bottom: 6px;
  margin: 18px 0 12px;
  text-transform: uppercase;
  text-align: left;
}


@media (max-width: 900px) {
  #section-one.section-one {
    padding-top: calc(clamp(1.5rem, 4vw, 3rem) + 20px);
  }
}

.resume-two-col {
  display: grid;
  grid-template-columns: 1fr;   /* mobile-first: single column stack */
  gap: 16px;
  align-items: start;
  justify-items: stretch;
  margin-top: 1.5rem;
}

.resume-col {
  display: flex;
  flex-direction: column;
}

.resume-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.resume-pill-list li {
  background: var(--pill);
  border: 1px solid #e3e8ee;
  padding: 6px 10px;
  border-radius: 999px;
}

.resume-role { margin-bottom: 14px; }

.resume-role-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  background:#f2f5f8;
}

.resume-role-title {
  font-weight: 600;
}

.resume-role-meta {
  color: var(--muted);
}

.resume-role-subtitle {
  font-weight: 600;
  margin-top: 6px;
  text-align: left;
}

.resume-bullets {
  list-style: disc inside;
  margin: 4px 0 0 0;
  padding-left: 18px;
  padding: 0;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.6;
  text-align: left;

}

.resume-bullets li { margin: 2px 0; }

.resume-bullets.tight li { 
 
  display: list-item;
  list-style-position: outside;   /* bullet stays outside */
  margin-left: 1.2rem;            /* moves bullet outward */
  padding-left: 0.4rem;           /* keeps text neatly indented */
  text-indent: 0;                 /* prevents text wrapping under bullet */

}

/* Responsive: stack columns on smaller screens */
@media (max-width: 768px) {
  .resume-two-col {
    grid-template-columns: 1fr;
  }
}

/* Print styles */
@media print {
  body { background: #fff; }
  .page {
    margin: 0;
    padding: 24px 28px;
    box-shadow: none;
    border: none;
    max-width: 100%;
  }
  .pill-list li { background: #f5f7fa; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  
}

.resume-footnote {
  vertical-align: super;
  font-size: 0.6em;
  margin-left: 2px;
  
}

.resume-footnote-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.resume-footnote-text {
  font-size: 0.85em;
  color: #555;
  margin-top: 1rem;
  text-align: left;
}

.resume-footnote-link:focus,
.resume-footnote-link:hover {
  color: #2f5f91;  /* optional highlight color */
}

/* === Responsive Enhancements (added) === */

/* Improve long-link wrapping for narrow screens */
a, .resume-contacts, .resume-meta {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Base typography adjustments for readability on small screens */
@media (max-width: 480px) {
  html, body { font-size: 15px; } /* was ~12.5px; increase for legibility */
}

/* Tweak large screens slightly */
@media (min-width: 1200px) {
  html, body { font-size: 13.5px; }
}

/* Tablet and below: stack columns, soften spacing */
@media (max-width: 900px) {
  .page {
    margin: 16px;
    padding: 28px 24px;
  }

  .resume-role-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .resume-meta, .resume-contacts {
    justify-content: flex-start;
  }

  .resume-name { font-size: 26px; }
}
/* Mobile refinements */
@media (max-width: 600px) {
  .page {
    margin: 8px;
    padding: 20px 16px;
    border-radius: 8px;
  }

  .resume-name { font-size: 24px; letter-spacing: .8px; }
  .resume-section-title { font-size: 13px; }
  .resume-pill-list { gap: 6px; }
  .resume-pill-list li { padding: 5px 8px; }
  .resume-bullets { padding-left: 16px; }
  .resume-contacts .resume-sep, .resume-meta .resume-sep { display: none; } /* hide separators on narrow view */
}

/* Ensure media scales (future-proof) */
resume-img, video { max-width: 100%; height: auto; }

/* Accessible focus outlines */
:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* Anchor offset only for sections inside the main resume card,
   so headings aren't hidden under the fixed top bar */
.pageResume [id]::before {
  content: "";
  display: block;
  height: 80px;
  margin-top: -80px;
  visibility: hidden;
}

/* Important: disable this offset inside the slide-in drawer so
   role details always start from the very top */
.role-drawer-content [id]::before {
  content: none;
  display: inline;
  height: 0;
  margin-top: 0;
  visibility: visible;
}

/* --- Footer alignment fix (match index page) --- */
footer.footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Footer spacing parity with index.html */
.main { padding-bottom: 0 !important; }
.pageResume { margin-bottom: 15px !important; }

/* Ensure the card sits below the tab */
.pageResume { position: relative; z-index: 1; }

/* The card should sit below the tab */
.pageResume { position: relative; z-index: 1; }



/* 2) Stop pushing the resume content down */
.main { top: 10px; }

/* 3) Give the page a small top margin so it clears the avatar/nav visually */
.pageResume { 
  margin-top: 5rem; 
  /*align-items: center;*/
}  /* tweak to taste */


.pageResume { position: relative; z-index: 1; }

@media (max-width: 900px) {
  body.contact .page {
    margin: 0;              /* removes yellow border left/right/top */
    padding: 20px 0 0;      /* add some breathing room under header */
  }
}

@media (max-width: 600px) {
  body.contact .page {
    margin: 0;
    padding: 16px 0 0;      /* slightly tighter on very small phones */
    border-radius: 0;
  }
}

/* === MOBILE: pin INTERACTIVE RESUME tab to header-left === */
@media (max-width: 900px) {
  body.contact #section-one {
    position: relative;
    margin-top: 0;
    padding-top: 2.0rem;   /* space so content starts under the chip */
  }

  body.contact #section-one .section-tab {
    position: absolute;
    left: 1rem;             /* align with content left edge */
    top: 0;
    transform: translateY(-50%);  /* overlap the section/header border */
    margin: 0;
    z-index: 10;
  }
}

@media (max-width: 600px) {
  body.contact #section-one {
    padding-top: 2.5rem;    /* slightly tighter on very small phones */
  }
}

@media (min-width: 900px) {
  .resume-two-col {
    grid-template-columns: 1fr 1.3fr;   /* left: summary, right: achievements */
    gap: clamp(1rem, 3vw, 2rem);
  }
}

/* Ensure the resume card can position the icon */
.resume-card {
  position: relative;
}

/* Download button – mobile first */
.resume-download-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;

  /* Color + transparency so it remains visible on the white card */
  color: #20497f;               /* icon stroke via currentColor */
  background-color: rgba(255, 255, 255, 0.9);

  text-decoration: none;
  cursor: pointer;

  /* Small shadow so it floats subtly above the card */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);

  /* Smooth hover/focus transitions */
  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* Add a download button SVG icon */
.resume-download-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;           /* #20497f */
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Hover / focus states (desktop + accessibility) */
.resume-download-btn:hover,
.resume-download-btn:focus-visible {
  background-color: rgba(32, 73, 127, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
}

/* Keyboard focus outline */
.resume-download-btn:focus-visible {
  outline: 2px solid #20497f;
  outline-offset: 2px;
}

/* Slightly increase spacing on larger screens */
@media (min-width: 768px) {
  .resume-download-btn {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .resume-download-icon {
    width: 1.4rem;
    height: 1.4rem;
  }
}

/* === Resume view toggle (Full vs Compact) === */
/* Mobile-first: small capsule centred horizontally */
.resume-view-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  padding: 0.3rem;
  margin: 0.75rem auto 1rem auto;   /* centers the pill */

  border-radius: 999px;
  background-color: #f3f4f6;
  font-size: 0.875rem;

  max-width: 260px;                 /* keeps the grey pill in the “middle” */
  width: 100%;                      /* grows up to max-width, then stops */
}


/* Buttons inside the toggle */
.view-toggle-btn {
  border: none;
  background: transparent;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.view-toggle-btn:focus-visible {
  outline: 2px solid #20497f;
  outline-offset: 2px;
}

.view-toggle-btn.is-active {
  background-color: #20497f; /* your stroke blue */
  color: #ffffff;
  transform: translateY(-1px);
}

/* Ensure visual state always matches the current view,
   even if JS doesn't touch the classes */
.pageResume.resume-compact .view-toggle-btn[data-view="compact"],
.pageResume.resume-full .view-toggle-btn[data-view="full"] {
  background-color: #20497f;
  color: #ffffff;
}

/* Optional: make sure the opposite button looks inactive */
.pageResume.resume-compact .view-toggle-btn[data-view="full"],
.pageResume.resume-full .view-toggle-btn[data-view="compact"] {
  background-color: transparent;
  color: inherit;
}


/* Mobile-first: toggle sits naturally under the section tab */
/* On wider screens, gently align it to the right of the resume header area */
/* Optional: on wider screens, very slightly increase the max width so the capsule
   still feels centred and proportional on the big card */
@media (min-width: 1024px) {
  .resume-view-toggle {
    max-width: 300px;
    margin-top: 1rem;
  }
}

/* === Compact vs Full view behaviour === */

/* Default: .resume-full shows everything (inherited existing styles) */
/* Compact view: keep summary & achievements, compress the rest */

/* Compact applies ONLY to Professional Experience */
.pageResume.resume-compact #professional-experience .resume-role-subtitle,
.pageResume.resume-compact #professional-experience .resume-link {
  display: none;
}

/* Hide the fine-print footnote in compact mode */
.pageResume.resume-compact .resume-footnote-text {
  display: none;
}

/* Slightly tighten spacing between roles in compact mode */
.pageResume.resume-compact .resume-role {
  margin-bottom: 0.75rem;
}

/* Optional: de-emphasise section spacing when compact */
.pageResume.resume-compact section {
  margin-bottom: 1.25rem;
}

/* 🔥 Ensure other sections remain FULL in compact view */
.pageResume.resume-compact section:not(#professional-experience) .resume-role-subtitle,
.pageResume.resume-compact section:not(#professional-experience) .resume-link {
  display: block !important;
}

/* Hide bullets ONLY inside Professional Experience */
.pageResume.resume-compact #professional-experience .resume-bullets {
  display: none;
}

/* Keep bullets everywhere else */
.pageResume.resume-compact section:not(#professional-experience) .resume-bullets {
  display: block !important;
}


/* 03-12-2025: [START] Add floating side card helper in Resume with some links to other sections on my website from Professional experience for interactivity
/* === "What you can explore from here" – base styles === */

.resume-explore {
  margin: 1rem 0 1.5rem 0;
  padding: 0.9rem 1.1rem;
  background: #f7f7f7;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  font-size: 0.85rem;
}

.resume-explore-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #20497f;
  margin: 0 0 0.5rem 0;
}

.resume-explore-list {
  list-style: none !important;   /* override any global ul styles */
  margin: 0;
  padding: 0;
}

/* Subtle chevrons */
.resume-explore-list li {
  position: relative;
  padding-left: 1rem;
}

.resume-explore-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.9rem;
  color: #20497f;
}

.resume-explore-link {
  text-decoration: none;
  color: #4d555b;
}

.resume-explore-link:hover,
.resume-explore-link:focus-visible {
  text-decoration: underline;
  color: #20497f;
  outline: none;
}

/* === Side behavior for larger screens (Option B) === */

.resume-explore-side {
  clear: both;
}

@media (min-width: 1024px) {
  .resume-explore-side {
    max-width: 320px;
    float: right;
    margin: 0 0 1.75rem 1.75rem;
    position: sticky;
    top: 140px;
  }
}

/* 03-12-2025: [END]

/* 04-12-2025: [START] */

/* === Slide-in role detail drawer (Option 3) === */

.role-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;                /* higher than header & helper card */
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  pointer-events: none;         /* disabled until opened */
  font-size: 0.95rem;
}

.role-drawer-backdrop {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.role-drawer-panel {
  width: 100%;
  max-width: 560px;             /* desktop max width */
  background: #ffffff;
  box-shadow: -16px 0 32px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  outline: none;
}

/* Open state */
.role-drawer.is-open {
  pointer-events: auto;
}

.role-drawer.is-open .role-drawer-backdrop {
  opacity: 1;
}

.role-drawer.is-open .role-drawer-panel {
  transform: translateX(0);
}

/* Header layout – sticky at top of the panel */

.role-drawer-header {
  position: sticky;             /* always visible at top of panel */
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e0e4ea;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.role-drawer-header-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.role-drawer-context {
  margin: 0 0 0.15rem 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8288;          /* soft neutral within your palette */
}

.role-drawer-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #20497f;
}

/* Scroll area – only this part scrolls */

.role-drawer-content {
  flex: 1;
  padding: 1rem 1.1rem 1.25rem;
  overflow-y: auto;
}

/* Close button */

.role-drawer-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
  color: #4d555b;
}

.role-drawer-close:hover,
.role-drawer-close:focus-visible {
  color: #20497f;
}

/* Mobile-first: full width on very small screens */

@media (max-width: 480px) {
  .role-drawer-panel {
    max-width: 100%;
  }

  .role-drawer-content {
    padding: 0.75rem 0.8rem 1rem;
  }
}

/* 04-12-2025: [END]: slide-in role detail drawer */
/* === 04-12-2025: Fix section-tab hidden behind header on mobile (EN_resume only) 
keep the global .page margin as-is and only tweak the first section
=== */

@media (max-width: 900px) {
  #section-one.section-one {
    padding-top: calc(clamp(1.5rem, 4vw, 3rem) + 20px);
  }
}
