/* src/css/cv.css */
.cv-container {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family:
    "Arial",
    "Helvetica",
    sans-serif;
  line-height: 1;
  margin: 0 auto;
  padding: 0;
  box-shadow: 0 0 20px var(--shadow-color);
}
.cv-desktop-layout {
  display: block;
}
.cv-mobile-layout {
  display: none;
}
.cv-web-layout {
  display: block;
}
.cv-print-layout {
  display: none;
}
.cv-mobile-content {
  padding: 0.25rem;
  background: var(--bg-secondary);
}
.cv-main-info {
  flex: 1;
  text-align: left;
}
.cv-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
}
.cv-title {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 0.75rem 0;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.cv-detail-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
}
.cv-detail-row:last-child {
  margin-bottom: 0;
}
.cv-detail-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.cv-photo-personal-section {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.cv-photo {
  flex-shrink: 0;
  align-self: stretch;
}
.cv-photo-personal-section .cv-photo-image {
  width: 120px;
  height: auto;
  border: 1px solid var(--accent-orange);
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}
.cv-photo-personal-section .cv-personal-info {
  flex: 1;
  min-width: 0;
}
.cv-contact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.8rem;
  font-size: 0.75rem;
  line-height: 1.3;
}
.cv-contact-item {
  display: contents;
}
.cv-contact-label {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.cv-contact-value {
  color: var(--text-primary);
  text-decoration: none;
}
.cv-contact-value:hover {
  color: var(--text-primary);
}
.cv-contact-value:visited {
  color: var(--text-primary);
}
.cv-page {
  position: relative;
  margin-bottom: 1rem;
}
.cv-page:last-child {
  margin-bottom: 0;
}
.cv-main {
  padding: 0.5rem 0.5rem;
  background: var(--bg-secondary);
  height: 100%;
}
.cv-layout-split {
  display: grid !important;
  grid-template-columns: 33.333% 66.667% !important;
  gap: 0.5rem !important;
  align-items: start;
}
.cv-layout-left-only {
  display: grid !important;
  grid-template-columns: 33.333% 66.667% !important;
  gap: 2rem !important;
}
.cv-layout-left-only .cv-right {
  display: none !important;
}
.cv-layout-right-only {
  display: grid !important;
  grid-template-columns: 33.333% 66.667% !important;
  gap: 2rem !important;
}
.cv-layout-right-only .cv-left {
  display: none !important;
}
.cv-left {
  background: var(--bg-secondary);
  padding: 0.5rem 0.5rem;
  position: relative;
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
}
.cv-layout-full {
  display: block !important;
}
.cv-left::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      var(--accent-orange) 50%,
      transparent 100%);
}
.cv-right {
  padding: 0.5rem 0.5rem;
  background: var(--bg-secondary);
  position: relative;
  border-radius: 0 8px 8px 0;
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
}
.cv-content-full {
  padding: 0;
}
.cv-section {
  margin-bottom: 1.0rem;
}
.cv-section:last-child {
  margin-bottom: 0;
}
.cv-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0.5rem;
}
.cv-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-orange);
}
.cv-summary {
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: justify;
  margin: 0;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-orange);
  break-after: avoid;
}
.cv-job {
  margin-bottom: 1rem;
  break-inside: avoid;
  position: relative;
}
.cv-skill-group,
.cv-publication,
.cv-achievement,
.cv-competency,
.cv-cert,
.cv-education,
.cv-job,
.cv-project,
.cv-skills-container,
.cv-contact-section .cv-contact {
  margin-bottom: var(--cv-box-margin-bottom);
  padding: var(--cv-box-padding);
  background: var(--cv-box-background);
  border: var(--cv-box-border);
  border-radius: var(--cv-box-border-radius);
  border-left: var(--cv-box-border-left);
  box-shadow: var(--cv-box-shadow);
  transition: var(--cv-box-transition);
  break-inside: avoid;
}
.cv-skill-group:hover,
.cv-publication:hover,
.cv-achievement:hover,
.cv-competency:hover,
.cv-cert:hover,
.cv-education:hover,
.cv-job:hover,
.cv-project:hover,
.cv-skills-container:hover,
.cv-contact-section .cv-contact:hover {
  transform: var(--cv-box-hover-transform);
  box-shadow: var(--cv-box-shadow-hover);
}
.cv-skills-container {
  display: block;
  margin-bottom: 0.5rem;
}
.cv-layout-full .cv-skills-container,
.cv-right .cv-skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem 1rem;
}
.cv-skill-group {
  margin-bottom: 0.3rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  border-left: none;
  box-shadow: none;
  transition: none;
}
.cv-skill-group:hover {
  transform: none;
  box-shadow: none;
}
.cv-skill-category {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.cv-skill-tags {
  display: block;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}
.cv-skill-tag {
  display: inline-block;
  background: var(--bg-secondary);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.7rem;
  line-height: 1.2;
  color: var(--text-primary);
}
.cv-skill-tag em {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.65rem;
}
.cv-pub-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
  color: var(--text-accent);
  line-height: 1.3;
}
.cv-pub-details {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.cv-pub-type {
  font-weight: 600;
  color: var(--text-accent);
}
.cv-pub-extra {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
}
.cv-pub-url {
  font-size: 0.7rem;
  color: var(--link-color);
  margin: 0.2rem 0;
}
.cv-achievement-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 0.2rem 0;
  color: var(--text-accent);
}
.cv-achievement-date {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.cv-achievement-desc {
  font-size: 0.7rem;
  line-height: 1.3;
  margin: 0;
  color: var(--text-primary);
}
.cv-achievement-url {
  font-size: 0.8rem;
  color: var(--link-color);
  margin: 0.2rem 0;
}
.cv-competency-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--text-accent);
}
.cv-competency-desc {
  font-size: 0.75rem;
  line-height: 1.3;
  margin: 0;
  text-align: justify;
  color: var(--text-primary);
}
.cv-cert-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  color: var(--text-accent);
}
.cv-cert-details {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0.2rem 0;
}
.cv-cert-id {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
}
.cv-language-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cv-language-list li {
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cv-language-list li:last-child {
  border-bottom: none;
}
.cv-job {
  margin-bottom: 1rem;
  break-inside: avoid;
  position: relative;
}
.cv-job-header {
  margin-bottom: 0.75rem;
}
.cv-job-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-accent);
  line-height: 1.2;
}
.cv-job-summary {
  font-size: 0.85rem;
  margin: 0.75rem 0;
  line-height: 1.4;
  text-align: justify;
  color: var(--text-primary);
}
.cv-achievements {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}
.cv-achievements li {
  font-size: 0.8rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  padding-left: 1rem;
  position: relative;
  color: var(--text-primary);
}
.cv-achievements li::before {
  content: "\25b8";
  position: absolute;
  left: 0;
  color: var(--text-accent);
  font-weight: bold;
}
.cv-tech {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border-radius: 4px;
  border-left: 3px solid var(--accent-orange);
}
.cv-tech strong {
  color: var(--text-accent);
  font-weight: 700;
}
.cv-company-header {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--bg-accent);
}
.cv-company-title-dates {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  gap: 1rem;
}
.cv-company-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-accent);
  line-height: 1.2;
  flex: 1;
}
.cv-company-title .cv-inline-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  font-weight: normal;
}
.cv-company-dates {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}
.cv-company-summary {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
  text-align: justify;
  color: var(--text-primary);
  font-style: italic;
}
.cv-position-job {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bg-accent);
}
.cv-position-job:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.cv-job-title-dates {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  gap: 1rem;
}
.cv-job-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-accent);
  line-height: 1.2;
  flex: 1;
}
.cv-job-dates {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}
.cv-job-company-location {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.cv-job-company {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  flex: 1;
}
.cv-job-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
  white-space: nowrap;
}
.cv-edu-degree {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
  color: var(--text-accent);
}
.cv-edu-school-dates {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 0.2rem 0;
  gap: 1rem;
}
.cv-edu-school {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
  flex: 1;
}
.cv-edu-dates {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}
.cv-edu-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.2rem 0;
  font-style: italic;
}
.cv-gpa,
.cv-honors {
  font-size: 0.75rem;
  color: var(--text-primary);
  margin: 0.3rem 0;
}
.cv-honors {
  font-style: italic;
  color: var(--text-accent);
}
.cv-project-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  color: var(--text-accent);
}
.cv-project-desc {
  font-size: 0.8rem;
  margin: 0 0 0.4rem 0;
  line-height: 1.3;
  text-align: justify;
  color: var(--text-primary);
}
.cv-project-url {
  font-size: 0.8rem;
  color: var(--link-color);
  margin: 0.2rem 0;
}
@media print {
  body {
    margin: auto;
  }
  @page {
    margin: 0;
    size: A4;
  }
  html {
    zoom: 0.70;
  }
  * .site-header,
  * .site-footer,
  * #theme-toggle,
  html body .site-header,
  html body .site-footer,
  html body #theme-toggle,
  body .site-header,
  body .site-footer,
  body #theme-toggle,
  .site-header,
  .site-footer,
  #theme-toggle,
  header.site-header,
  footer.site-footer,
  nav,
  footer,
  .page-content {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  .main-content,
  .cv-container {
    box-shadow: none;
    padding: 0;
    margin: 0;
    max-width: none;
    min-height: auto;
    width: 100% !important;
  }
  .cv-web-layout {
    display: none !important;
  }
  .cv-print-layout {
    display: block !important;
  }
  .cv-page {
    break-after: page;
    break-inside: avoid;
    break-before: auto;
    padding: 0;
    margin-bottom: 0;
  }
  .cv-page:last-child {
    break-after: auto;
    min-height: auto;
  }
  .cv-main,
  .cv-section,
  .cv-job,
  .cv-education,
  .cv-project,
  .cv-achievement,
  .cv-publication,
  .cv-competency,
  .cv-skill-group,
  .cv-cert {
    break-after: avoid !important;
    break-inside: avoid !important;
    break-before: avoid !important;
  }
}
@media (max-width: 768px) {
  .cv-desktop-layout {
    display: none !important;
  }
  .cv-mobile-layout {
    display: block !important;
  }
  .cv-container {
    padding: 0;
  }
  .cv-header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .cv-main-info {
    text-align: center;
  }
  .cv-detail-row {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  .cv-contact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.75rem;
    line-height: 1.3;
  }
  .cv-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.2rem 0;
  }
  .cv-contact-label {
    flex: 0 0 auto;
  }
  .cv-contact-value {
    flex: 1 1 auto;
    text-align: right;
    word-break: break-word;
  }
  .cv-photo-personal-section .cv-photo-image {
    width: 100px;
    height: auto;
  }
  .cv-mobile-content .cv-section {
    margin-bottom: 1.0rem;
    padding: 0.5rem;
    border-radius: 8px;
    border-bottom: 3px solid var(--accent-orange);
  }
  .cv-mobile-content .cv-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  .cv-skill-tags {
    justify-content: center;
  }
}
