:root {
  --sidebar: #173a52;
  --sidebar-line: rgba(255, 255, 255, 0.58);
  --ink: #2d3138;
  --muted: #626a76;
  --accent: #1f5877;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eef2f6;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.print-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.action-button,
.action-link {
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--accent);
  background: #ffffff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.action-button {
  color: #ffffff;
  background: var(--accent);
}

.resume-sheet {
  display: grid;
  grid-template-columns: 245px 1fr;
  width: 794px;
  min-height: 1123px;
  margin: 0 auto 32px;
  background:
    linear-gradient(to right, var(--sidebar) 0 245px, var(--paper) 245px 100%);
  box-shadow: 0 20px 60px rgba(23, 32, 51, 0.16);
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.resume-sidebar {
  min-height: 1123px;
  padding: 36px 28px;
  color: #ffffff;
  background: transparent;
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-section h2,
.main-section h2 {
  margin: 0 0 12px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.sidebar-section h2 {
  color: #ffffff;
  border-color: var(--sidebar-line);
}

.sidebar-section p {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.sidebar-section ul {
  margin: 0;
  padding-left: 16px;
}

.sidebar-section li {
  margin-bottom: 5px;
}

.sidebar-item {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.sidebar-item strong {
  font-size: 12px;
}

.sidebar-item small {
  color: rgba(255, 255, 255, 0.82);
}

.resume-main {
  padding: 42px 32px 36px;
  background: var(--paper);
}

.resume-header {
  margin-bottom: 22px;
}

.resume-header h1 {
  margin: 0;
  color: #5b6068;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.resume-header h1::after {
  display: block;
  width: 64px;
  height: 5px;
  margin-top: 10px;
  background: var(--accent);
  content: "";
}

.resume-header p {
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-section {
  margin-bottom: 22px;
}

.main-section h2 {
  color: var(--accent);
}

.main-section p {
  margin: 0 0 8px;
  color: var(--ink);
}

.experience-item {
  position: relative;
  border-left: 2px solid var(--accent);
  padding: 0 0 13px 16px;
  margin-bottom: 10px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.experience-item::before {
  position: absolute;
  top: 2px;
  left: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.experience-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.experience-heading h3 {
  margin: 0;
  font-size: 14px;
}

.experience-heading p,
.experience-heading span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.experience-item ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.experience-item li {
  margin-bottom: 3px;
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  body {
    background: #ffffff;
  }

  .print-actions {
    display: none;
  }

  .resume-sheet {
    grid-template-columns: 245px 1fr;
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    box-shadow: none;
  }

  .resume-sidebar {
    min-height: 297mm;
  }
}

@media screen and (max-width: 840px) {
  .resume-sheet {
    grid-template-columns: 1fr;
    width: min(100%, 794px);
    background: var(--paper);
  }

  .resume-sidebar {
    background: var(--sidebar);
  }
}
