/* Modern sidebar template – scoped to #resume.template-modern */

#resume.template-modern {
  width: 8.27in;
  min-height: 11.69in;
  margin: 0 auto;
  padding: 0.75in;
  background: #fff;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 10.5pt;
  line-height: 1.45;
  color: #111827;
}

#resume.template-modern .modern-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

#resume.template-modern .modern-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e5e7eb;
}

#resume.template-modern .modern-photo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

#resume.template-modern .modern-photo-placeholder svg {
  width: 32px;
  height: 32px;
}

#resume.template-modern .modern-name {
  font-size: 22pt;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

#resume.template-modern .modern-title {
  font-size: 11pt;
  font-weight: 400;
  color: #6b7280;
  margin: 4px 0 0;
}

#resume.template-modern .modern-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 24px;
}

#resume.template-modern .modern-main {
  min-width: 0;
  overflow: visible;
}

#resume.template-modern .modern-sidebar {
  min-width: 0;
}

#resume.template-modern .modern-section {
  margin-bottom: 18px;
}

#resume.template-modern .modern-section:last-child {
  margin-bottom: 0;
}

#resume.template-modern .modern-section-heading {
  font-size: 11pt;
  font-weight: 700;
  margin: 0 0 10px;
  color: #111827;
}

#resume.template-modern .modern-section-body {
  color: #374151;
}

#resume.template-modern .modern-section-body p {
  margin: 0 0 0.6em;
}

#resume.template-modern .modern-section-body p:last-child {
  margin-bottom: 0;
}

#resume.template-modern .modern-job {
  margin-bottom: 14px;
}

#resume.template-modern .modern-job:last-child {
  margin-bottom: 0;
}

#resume.template-modern .modern-job-header {
  font-weight: 700;
  margin-bottom: 2px;
}

#resume.template-modern .modern-job-dates {
  font-size: 9.5pt;
  color: #6b7280;
  margin-bottom: 6px;
}

#resume.template-modern .modern-job ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

#resume.template-modern .modern-job li {
  position: relative;
  margin-bottom: 0.25em;
  padding-left: 1.25em;
}

#resume.template-modern .modern-job li::before {
  content: "\2022";
  position: absolute;
  left: 0.4em;
}

#resume.template-modern .modern-edu-entry {
  margin-bottom: 12px;
}

#resume.template-modern .modern-edu-entry:last-child {
  margin-bottom: 0;
}

#resume.template-modern .modern-edu-degree {
  font-weight: 700;
}

#resume.template-modern .modern-edu-school {
  color: #374151;
}

#resume.template-modern .modern-edu-note {
  font-style: italic;
  color: #6b7280;
  font-size: 9.5pt;
}

#resume.template-modern .modern-detail-line {
  margin-bottom: 6px;
  word-break: break-word;
}

#resume.template-modern .modern-detail-line:last-child {
  margin-bottom: 0;
}

#resume.template-modern .modern-link {
  display: block;
  color: #2563eb;
  text-decoration: none;
  margin-bottom: 4px;
  word-break: break-all;
}

#resume.template-modern .modern-link:last-child {
  margin-bottom: 0;
}

#resume.template-modern .modern-link:hover {
  text-decoration: underline;
}

#resume.template-modern .modern-skill-item {
  margin-bottom: 4px;
}

#resume.template-modern .modern-skill-item:last-child {
  margin-bottom: 0;
}

#resume.template-modern .modern-lang-item {
  margin-bottom: 10px;
}

#resume.template-modern .modern-lang-item:last-child {
  margin-bottom: 0;
}

#resume.template-modern .modern-lang-label {
  font-size: 10pt;
  margin-bottom: 4px;
}

#resume.template-modern .modern-lang-bar-track {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

#resume.template-modern .modern-lang-bar-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 3px;
}

#resume.template-modern a.inline-link {
  color: #2563eb;
  text-decoration: underline;
}

#resume.template-modern strong {
  font-weight: 600;
}

@media print {
  #resume.template-modern {
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  #resume.template-modern .modern-grid {
    grid-template-columns: 1.85fr 1fr;
    gap: 20px;
  }

  #resume.template-modern .modern-lang-bar-fill {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  #resume.template-modern .modern-link {
    color: #2563eb !important;
  }

  #resume.template-modern .modern-section-heading {
    break-after: avoid;
    page-break-after: avoid;
  }

  #resume.template-modern .modern-lang-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  #resume.template-modern .modern-section:has(.modern-lang-item) {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
