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

:root {
  --forest: #163B2E;
  --moss: #305C46;
  --sand: #E7DFC8;
  --ivory: #F8F8F5;
  --ink: #222222;
  --muted: #5f665f;
  --bronze: #B88954;
  --line: rgba(34, 34, 34, .14);
}

html,
body {
  margin: 0;
  padding: 0;
  background: #d8d8d8;
}

body.print {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.22;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.screen-actions {
  width: min(210mm, calc(100% - 28px));
  margin: 14px auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.screen-actions a,
.screen-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(22, 59, 46, .18);
  border-radius: 999px;
  color: var(--forest);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(22, 59, 46, .10);
}

.screen-actions button {
  color: #fff;
  background: var(--forest);
}

.print-container {
  width: 210mm;
  margin: 0 auto;
}

.print-page {
  width: 210mm;
  height: 297mm;
  display: grid;
  grid-template-columns: 62mm 1fr;
  overflow: hidden;
  background: var(--ivory);
}

.sidebar {
  position: relative;
  padding: 10mm 8mm;
  color: var(--ivory);
  background:
    linear-gradient(180deg, rgba(22,59,46,.94), rgba(7,9,8,.98)),
    var(--forest);
}

.sidebar::after {
  content: "";
  position: absolute;
  left: 8mm;
  right: 8mm;
  bottom: 8mm;
  height: 1px;
  background: linear-gradient(90deg, var(--bronze), transparent);
}

.avatar-mini {
  width: 25mm;
  height: 25mm;
  margin: 0 0 7mm;
  border-radius: 9mm;
  overflow: hidden;
  background: rgba(248, 248, 245, .10);
}

.avatar-mini img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.name {
  margin: 0;
  font-size: 18pt;
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 850;
}

.role {
  margin-top: 5px;
  font-size: 9.2pt;
  font-weight: 750;
  color: rgba(248, 248, 245, .90);
}

.tagline {
  margin-top: 5px;
  font-size: 8pt;
  color: rgba(248, 248, 245, .72);
}

.side-section {
  margin-top: 7mm;
}

.side-title {
  margin: 0 0 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(184, 137, 84, .58);
  color: var(--sand);
  font-size: 7.4pt;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 8pt;
  color: rgba(248, 248, 245, .84);
}

.side-list li {
  margin: 3px 0;
}

.sidebar svg {
  fill: currentColor;
}

.content {
  padding: 10mm 10mm 8mm;
  background:
    linear-gradient(90deg, rgba(184,137,84,.18) 0 1px, transparent 1px 100%),
    var(--ivory);
}

.block {
  margin-bottom: 4.5mm;
}

.h2 {
  margin: 0 0 4px;
  color: var(--forest);
  font-size: 8pt;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.p {
  margin: 0;
  color: var(--muted);
  font-size: 8.4pt;
  line-height: 1.28;
}

.hr {
  height: 1px;
  margin-top: 5px;
  background: linear-gradient(90deg, var(--bronze), transparent);
}

.item {
  margin-top: 4px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.item + .item {
  margin-top: 8px;
}

.item-title {
  margin: 0;
  color: #101713;
  font-size: 9.4pt;
  font-weight: 900;
  line-height: 1.1;
}

.item-meta {
  margin: 2px 0 0;
  color: var(--bronze);
  font-size: 7.8pt;
  font-weight: 850;
}

.bullets {
  margin: 3px 0 0 12px;
  padding: 0;
  color: var(--muted);
  font-size: 8pt;
  line-height: 1.22;
}

.bullets li {
  margin: 1.5px 0;
}

.h2,
.item-title {
  break-after: avoid;
  page-break-after: avoid;
}

@media print {
  html,
  body {
    width: 210mm;
    height: 297mm;
    background: #fff;
  }

  .print-container,
  .print-page {
    margin: 0;
  }

  .screen-actions {
    display: none;
  }
}
