/* ===========================================
   TEMPLATE 3 — Executive Dark Accent
   Scoped to .resume-page.template-3
   =========================================== */

   .resume-page.template-3 .page-content {
    font-family: 'Gelasio','Georgia',serif;
    font-size: 10pt; line-height: 1.45; color: #1a1a2e;
  }
  
  /* Header — name left, contacts stacked right */
  .resume-page.template-3 .resume-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 16pt; margin-bottom: 14pt; padding-bottom: 10pt;
    border-bottom: 2.5pt solid #1a1a2e;
  }
  .resume-page.template-3 .resume-header h1 {
    font-size: 26pt; font-weight: 700; color: #1a1a2e;
    letter-spacing: -0.3pt; line-height: 1.1;
    font-family: 'Gelasio','Georgia',serif;
  }
  .resume-page.template-3 .contact-info {
    display: flex; flex-direction: column; align-items: flex-end; gap: 3pt;
  }
  .resume-page.template-3 .contact-info span {
    font-size: 9pt; color: #444;
    font-family: 'Inter',sans-serif;
    letter-spacing: 0.1pt; white-space: nowrap;
  }
  
  /* Sections — margin-top only to avoid CSS margin collapse */
  .resume-page.template-3 .section {
    margin-top: 8pt;
    margin-bottom: 0;
  }
  .resume-page.template-3 .section:last-child { margin-bottom: 0; }
  
  /* Decorative title row */
  .resume-page.template-3 .section-title-row {
    display: flex; align-items: center; gap: 8pt; margin-bottom: 5pt;
  }
  .resume-page.template-3 .section-title-row::before {
    content: ''; display: block; width: 4pt; height: 14pt;
    background: #1a1a2e; border-radius: 2pt; flex-shrink: 0;
  }
  .resume-page.template-3 .section-title-row::after {
    content: ''; flex: 1; height: 0.75pt; background: #c8c8c8; margin-left: 6pt;
  }
  .resume-page.template-3 .section-title {
    font-size: 10.5pt; font-weight: 700; color: #1a1a2e;
    text-transform: uppercase; letter-spacing: 1.2pt;
    font-family: 'Inter',sans-serif;
    border-bottom: none !important; padding-bottom: 0 !important; line-height: 1.2;
  }
  
  /* Experience */
  .resume-page.template-3 .experience-item { margin-bottom: 7pt; }
  .resume-page.template-3 .experience-item:last-child { margin-bottom: 0; }
  .resume-page.template-3 .company-name {
    font-size: 10.5pt; font-weight: 700; color: #1a1a2e;
    font-family: 'Inter',sans-serif;
  }
  .resume-page.template-3 .job-location { font-size: 8.5pt; color: #666; font-family: 'Inter',sans-serif; }
  .resume-page.template-3 .job-title {
    font-size: 10pt; font-weight: 400; color: #333;
    font-style: italic; margin-bottom: 3pt; font-family: 'Gelasio','Georgia',serif;
  }
  .resume-page.template-3 .date-range {
    font-size: 8.5pt; color: #555; white-space: nowrap;
    font-family: 'Inter',sans-serif; font-weight: 600; flex-shrink: 0;
  }
  .resume-page.template-3 .achievement-list { margin: 1pt 0 0 0; padding: 0 0 0 14pt; list-style-type: disc; }
  .resume-page.template-3 .achievement-list li {
    font-size: 9.5pt; line-height: 1.45; color: #222;
    margin-bottom: 2pt; font-family: 'Inter',sans-serif;
  }
  .resume-page.template-3 .achievement-list li:last-child { margin-bottom: 0; }
  
  /* item-header row */
  .resume-page.template-3 .item-header {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 8pt; margin-bottom: 1pt; width: 100%; box-sizing: border-box;
  }
  .resume-page.template-3 .item-header > div:first-child { flex: 1; min-width: 0; }
  
  /* Education */
  .resume-page.template-3 .education-item { margin-bottom: 8pt; }
  .resume-page.template-3 .education-item:last-child { margin-bottom: 0; }
  .resume-page.template-3 .school-name {
    font-size: 10.5pt; font-weight: 700; color: #1a1a2e;
    font-family: 'Inter',sans-serif;
  }
  .resume-page.template-3 .school-location { font-size: 8.5pt; color: #666; font-family: 'Inter',sans-serif; }
  .resume-page.template-3 .degree {
    font-size: 10pt; font-weight: 400; font-style: italic;
    color: #333; font-family: 'Gelasio','Georgia',serif; margin-top: 1pt;
  }
  
  /* Certifications */
  .resume-page.template-3 .certification-item { margin-bottom: 7pt; }
  .resume-page.template-3 .certification-item:last-child { margin-bottom: 0; }
  .resume-page.template-3 .cert-name { font-size: 10pt; font-weight: 700; color: #1a1a2e; font-family: 'Inter',sans-serif; }
  .resume-page.template-3 .cert-org  { font-size: 9.5pt; font-style: italic; color: #444; font-family: 'Gelasio','Georgia',serif; margin-top: 1pt; }
  .resume-page.template-3 .credential-id { font-size: 8.5pt; color: #777; margin-top: 1.5pt; font-family: 'Inter',sans-serif; }
  
  /* Skills — bordered tags */
  .resume-page.template-3 .skill-grid {
    display: flex; flex-wrap: wrap; gap: 5pt 8pt;
    margin-top: 4pt;
  }
  .resume-page.template-3 .skill-tag {
    font-size: 9pt; font-family: 'Inter',sans-serif; color: #1a1a2e;
    padding: 2pt 5.7pt 2pt 8pt; border: 0.75pt solid #1a1a2e; border-radius: 2pt;
    line-height: 1.5; white-space: nowrap;
  }
  /* every tag but the last ends with a no-break space (so PDF readers keep the skills apart):
     its right padding is that much narrower, so the tags look as before */
  .resume-page.template-3 .skill-tag:last-child { padding-right: 8pt; }
  /* the real "•" between tags, light and tight so the tags look as before */
  .resume-page.template-3 .tag-sep { font-size: 7pt; color: #b5b5c0; align-self: center; margin: 0 -4pt; white-space: pre; }
  
  /* Languages — 3-col grid */
  .resume-page.template-3 .languages-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8pt 0; }
  .resume-page.template-3 .lang-item  { display: flex; flex-direction: column; gap: 1pt; }
  .resume-page.template-3 .lang-name  { font-size: 9.5pt; font-weight: 700; color: #1a1a2e; font-family: 'Inter',sans-serif; }
  .resume-page.template-3 .lang-level { font-size: 8.5pt; color: #666; font-family: 'Inter',sans-serif; font-style: italic; }
  
  /* Summary */
  .resume-page.template-3 .summary-text {
    font-size: 10pt; line-height: 1.45; color: #333;
    font-family: 'Gelasio','Georgia',serif; font-style: italic;
    border-left: 2.5pt solid #c8c8c8; padding-left: 8pt;
  }
  
  /* Custom */
  .resume-page.template-3 .bullet-line {
    padding-left: 12pt; text-indent: -12pt;
    margin-bottom: 4pt; font-size: 9.5pt; line-height: 1.4;
    font-family: 'Inter',sans-serif;
  }
  
  /* Print */
  @media print {
    .resume-page.template-3 { overflow: hidden !important; page-break-after: always; break-after: page; }
    .resume-page.template-3 .skill-tag { border-color: #1a1a2e !important; }
    .resume-page.template-3 .section-title-row::before { background: #1a1a2e !important; }
  }


/* --- Inter-entry spacing (fix: last bullet of a job ran into next job) --- */
.resume-page.template-3 [data-atom="bullet"] + .experience-item { margin-top: 8pt !important; }
.resume-page.template-3 .education-item + .education-item { margin-top: 8pt !important; }
.resume-page.template-3 .certification-item + .certification-item { margin-top: 8pt !important; }
