/* Shared resume sheet — live preview matches gallery styles */

.mpr-sheet {
  --sheet-ink: #111827;
  --sheet-muted: #4b5563;
  --sheet-line: #e5e7eb;
  --sheet-accent: #0d8f7b;
  --sheet-header: var(--sheet-accent);
  --sheet-bg: #ffffff;
  --sheet-side: #0f2740;
  --sheet-font: "Manrope", system-ui, sans-serif;
  --sheet-font-heading: var(--sheet-font);
  position: relative;
  background: var(--sheet-bg);
  color: var(--sheet-ink);
  min-height: 720px;
  padding: 1.75rem 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(12, 27, 42, 0.14);
  overflow: visible;
  user-select: none;
  font-family: var(--sheet-font);
  font-size: 0.92rem;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.mpr-sheet__accent { display: none; }
.mpr-sheet__badge { display: none; }
.mpr-sheet__dot { margin: 0 0.25rem; opacity: 0.55; }
.mpr-sheet__pipe { margin: 0 0.35rem; opacity: 0.7; }
.mpr-sheet__pre { white-space: pre-wrap; margin: 0; }
.mpr-sheet__text-lines {
  margin: 0;
  padding-left: 1.1rem;
}
.mpr-sheet__text-lines li {
  margin: 0.15rem 0;
}
.mpr-sheet.has-custom-size {
  font-size: var(--sheet-font-size, 0.92rem) !important;
  line-height: var(--sheet-line-height, 1.45) !important;
}
.mpr-sheet.has-custom-size .mpr-sheet__name {
  font-size: var(--sheet-name-size, 1.7rem) !important;
}
.mpr-sheet__skills { margin: 0; }
.mpr-sheet__skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.15rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mpr-sheet__skills-grid li {
  position: relative;
  padding-left: 0.85rem;
  margin: 0;
}
.mpr-sheet__skills-grid li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
}
.mpr-sheet.is-two-column .mpr-sheet__skills-grid,
.mpr-sheet.is-creative .mpr-sheet__skills-grid,
.mpr-sheet.is-nordic .mpr-sheet__skills-grid {
  grid-template-columns: 1fr;
}

.mpr-sheet__job {
  margin: 0 0 0.65rem;
  page-break-inside: avoid;
  break-inside: avoid;
}

.mpr-sheet__job-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
  min-width: 0;
}

.mpr-sheet__job-title {
  font-weight: 700;
  flex: 1 1 12rem;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.mpr-sheet__job-meta {
  font-style: italic;
  white-space: normal;
  font-size: 0.78rem;
  color: var(--sheet-muted);
  flex: 0 1 auto;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: right;
}

.mpr-sheet__job-copy {
  margin: 0.12rem 0 0.35rem;
}

.mpr-sheet__job-bullets {
  margin: 0;
  padding-left: 1.1rem;
}

.mpr-sheet__job-bullets li {
  margin: 0.12rem 0;
}

.mpr-sheet__edu-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.15rem 0;
  flex-wrap: wrap;
  min-width: 0;
}

.mpr-sheet__edu-left {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.mpr-sheet__edu-right {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  font-weight: 600;
  text-align: right;
}

.mpr-sheet__lang-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin: 0.12rem 0;
  page-break-inside: avoid;
  break-inside: avoid;
}

.mpr-sheet__lang-level {
  color: var(--sheet-muted);
  font-size: 0.88em;
  white-space: nowrap;
}
.mpr-sheet__block--certs,
.mpr-sheet__block--langs { display: none; }

.mpr-sheet__placeholder {
  margin: 0;
  color: #9aa3af;
  font-style: italic;
}

.mpr-sheet [data-preview].is-placeholder {
  color: #9aa3af;
}

.mpr-sheet__name {
  margin: 0;
  font-family: var(--sheet-font-heading);
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.mpr-sheet__meta {
  margin: 0.55rem 0 0;
  color: var(--sheet-muted);
  font-size: 0.82rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.mpr-sheet__meta--contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0;
  max-width: 100%;
}

.mpr-sheet__meta--contact > span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.mpr-sheet__pipe {
  margin: 0 0.35rem;
  opacity: 0.7;
  flex: 0 0 auto;
}

.mpr-sheet__headline {
  margin: 0.35rem 0 0;
  color: var(--sheet-muted);
  font-weight: 600;
}

.mpr-sheet__layout {
  margin-top: 1.25rem;
  min-width: 0;
}

.mpr-sheet__side { display: none; }

.mpr-sheet__block {
  margin-top: 1rem;
  page-break-inside: avoid;
  break-inside: avoid;
}

.mpr-sheet__block h3 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sheet-accent);
  border-bottom: 1px solid var(--sheet-line);
  padding-bottom: 0.3rem;
}

.mpr-sheet__block p,
.mpr-sheet__block li,
.mpr-sheet__pre {
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
}

.mpr-sheet__block p { margin: 0; }

.mpr-sheet__lock {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  background: rgba(12, 27, 42, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
}

/* ATS — matches classic single-column ATS resumes (centered header, rules, skills grid) */
.mpr-sheet.is-ats:not(.has-custom-style),
.mpr-sheet.is-compact:not(.has-custom-style) {
  --sheet-accent: #111111;
  --sheet-ink: #111111;
  --sheet-muted: #222222;
  --sheet-line: #111111;
  --sheet-font: Arial, Helvetica, "IBM Plex Sans", sans-serif;
  --sheet-font-heading: Arial, Helvetica, "IBM Plex Sans", sans-serif;
}

.mpr-sheet.is-ats,
.mpr-sheet.is-compact {
  font-size: 0.84rem;
  line-height: 1.38;
  padding: 1.5rem 1.55rem 2rem;
}

.mpr-sheet.is-ats .mpr-sheet__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--sheet-accent);
  padding-bottom: 0.55rem;
  margin-bottom: 0.15rem;
}

.mpr-sheet.is-ats .mpr-sheet__identity,
.mpr-sheet.is-ats .mpr-sheet__name,
.mpr-sheet.is-ats .mpr-sheet__meta,
.mpr-sheet.is-ats .mpr-sheet__meta--contact {
  width: 100%;
  text-align: center;
}

.mpr-sheet.is-ats .mpr-sheet__meta--contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.mpr-sheet.is-ats .mpr-sheet__name,
.mpr-sheet.is-compact .mpr-sheet__name {
  font-family: var(--sheet-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.mpr-sheet.is-ats .mpr-sheet__headline {
  display: none;
}

.mpr-sheet.is-ats .mpr-sheet__meta {
  margin: 0.4rem 0 0;
  color: var(--sheet-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}

.mpr-sheet.is-ats .mpr-sheet__layout {
  margin-top: 0.55rem;
}

.mpr-sheet.is-ats .mpr-sheet__block {
  margin-top: 0.7rem;
}

.mpr-sheet.is-ats .mpr-sheet__block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--sheet-font-heading);
  color: var(--sheet-accent);
  border-bottom: 1px solid var(--sheet-accent);
  padding-bottom: 0.18rem;
}

.mpr-sheet.is-ats .mpr-sheet__block--certs,
.mpr-sheet.is-ats .mpr-sheet__block--langs {
  display: block;
}

.mpr-sheet.is-two-column .mpr-sheet__main .mpr-sheet__block[data-kind="skills"],
.mpr-sheet.is-two-column .mpr-sheet__main .mpr-sheet__block[data-kind="education"],
.mpr-sheet.is-creative .mpr-sheet__main .mpr-sheet__block[data-kind="skills"],
.mpr-sheet.is-creative .mpr-sheet__main .mpr-sheet__block[data-kind="education"],
.mpr-sheet.is-nordic .mpr-sheet__main .mpr-sheet__block[data-kind="skills"],
.mpr-sheet.is-nordic .mpr-sheet__main .mpr-sheet__block[data-kind="education"] {
  display: none;
}

.mpr-sheet.is-ats .mpr-sheet__skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.15rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mpr-sheet.is-ats .mpr-sheet__skills-grid li {
  position: relative;
  padding-left: 0.85rem;
  margin: 0;
}

.mpr-sheet.is-ats .mpr-sheet__skills-grid li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
}

.mpr-sheet.is-ats .mpr-sheet__job {
  margin: 0 0 0.65rem;
}

.mpr-sheet.is-ats .mpr-sheet__job-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
  min-width: 0;
}

.mpr-sheet.is-ats .mpr-sheet__job-title {
  font-weight: 700;
  flex: 1 1 12rem;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.mpr-sheet.is-ats .mpr-sheet__job-meta {
  font-style: italic;
  white-space: normal;
  font-size: 0.78rem;
  color: #222;
  flex: 0 1 auto;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: right;
}

.mpr-sheet.is-ats .mpr-sheet__job-copy {
  margin: 0.12rem 0 0.35rem;
  color: #222;
}

.mpr-sheet.is-ats .mpr-sheet__job-bullets li {
  margin: 0.12rem 0;
}

.mpr-sheet.is-ats .mpr-sheet__edu-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.15rem 0;
  flex-wrap: wrap;
  min-width: 0;
}

.mpr-sheet.is-ats .mpr-sheet__edu-left,
.mpr-sheet.is-ats .mpr-sheet__edu-right {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.mpr-sheet.is-ats .mpr-sheet__edu-left {
  flex: 1;
}

.mpr-sheet.is-ats .mpr-sheet__edu-right {
  white-space: normal;
  font-weight: 600;
  text-align: right;
}

.mpr-sheet.is-compact .mpr-sheet__block { margin-top: 0.7rem; }
.mpr-sheet.is-compact { font-size: 0.86rem; }
.mpr-sheet.is-compact .mpr-sheet__name {
  font-family: var(--sheet-font-heading);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.45rem;
}
.mpr-sheet.is-compact .mpr-sheet__header {
  border-bottom: 2px solid var(--sheet-accent);
  padding-bottom: 0.75rem;
}

/* Classic */
.mpr-sheet.is-classic .mpr-sheet__header,
.mpr-sheet.is-elegant .mpr-sheet__header,
.mpr-sheet.is-compact .mpr-sheet__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.mpr-sheet.is-classic .mpr-sheet__meta--contact,
.mpr-sheet.is-elegant .mpr-sheet__meta--contact,
.mpr-sheet.is-compact .mpr-sheet__meta--contact {
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}
.mpr-sheet.is-classic .mpr-sheet__name,
.mpr-sheet.is-elegant .mpr-sheet__name {
  font-family: var(--sheet-font-heading);
  font-weight: 600;
}
.mpr-sheet.is-classic .mpr-sheet__block h3,
.mpr-sheet.is-elegant .mpr-sheet__block h3 {
  text-align: center;
  border-bottom: 0;
  position: relative;
}
.mpr-sheet.is-classic .mpr-sheet__block h3::after,
.mpr-sheet.is-elegant .mpr-sheet__block h3::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 1px;
  background: #c4cdd6;
  margin: 0.35rem auto 0;
}
.mpr-sheet.is-elegant:not(.has-custom-style) {
  --sheet-accent: #1f2937;
}
.mpr-sheet.is-elegant .mpr-sheet__block h3 {
  font-family: var(--sheet-font-heading);
  letter-spacing: 0.12em;
}

/* Modern */
.mpr-sheet.is-modern:not(.has-custom-style) {
  --sheet-accent: #0d8f7b;
}
.mpr-sheet.is-modern .mpr-sheet__name {
  font-size: 2rem;
  font-weight: 800;
}
.mpr-sheet.is-modern .mpr-sheet__headline {
  color: var(--sheet-accent);
}
.mpr-sheet.is-modern .mpr-sheet__accent {
  display: block;
  width: 3.5rem;
  height: 3px;
  background: var(--sheet-accent);
  margin: 0.85rem 0 0;
}

/* Two-column / Creative / Nordic */
.mpr-sheet.is-two-column,
.mpr-sheet.is-creative,
.mpr-sheet.is-nordic {
  padding: 0;
  display: grid;
}
.mpr-sheet.is-two-column .mpr-sheet__layout,
.mpr-sheet.is-creative .mpr-sheet__layout,
.mpr-sheet.is-nordic .mpr-sheet__layout {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  min-height: 720px;
  margin-top: 0;
  width: 100%;
}
.mpr-sheet.is-two-column .mpr-sheet__side,
.mpr-sheet.is-creative .mpr-sheet__side,
.mpr-sheet.is-nordic .mpr-sheet__side {
  display: block;
  background: var(--sheet-side);
  color: #e8eef5;
  padding: 1.25rem 0.85rem;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  box-sizing: border-box;
}
.mpr-sheet__side-name {
  display: none;
  margin-bottom: 1.1rem;
  min-width: 0;
}
.mpr-sheet.is-two-column .mpr-sheet__side-name,
.mpr-sheet.is-creative .mpr-sheet__side-name,
.mpr-sheet.is-nordic .mpr-sheet__side-name {
  display: grid;
  gap: 0.35rem;
}
.mpr-sheet__side-name strong {
  font-size: 1.05rem;
  line-height: 1.25;
  color: #fff;
  overflow-wrap: break-word;
  word-break: break-word;
}
.mpr-sheet.is-nordic .mpr-sheet__side-name strong { color: #0c1b2a; }
.mpr-sheet__side-name span {
  font-size: 0.78rem;
  color: #7ddecb;
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
}
.mpr-sheet.is-nordic .mpr-sheet__side-name span { color: #0d8f7b; }
.mpr-sheet.is-creative .mpr-sheet__side-name span { color: #f0c36a; }
.mpr-sheet.is-two-column .mpr-sheet__header,
.mpr-sheet.is-creative .mpr-sheet__header,
.mpr-sheet.is-nordic .mpr-sheet__header {
  display: none;
}
.mpr-sheet.is-two-column .mpr-sheet__main,
.mpr-sheet.is-creative .mpr-sheet__main,
.mpr-sheet.is-nordic .mpr-sheet__main {
  padding: 1.35rem 1.2rem;
  min-width: 0;
  overflow: visible;
}
.mpr-sheet.is-two-column .mpr-sheet__side .mpr-sheet__block,
.mpr-sheet.is-creative .mpr-sheet__side .mpr-sheet__block,
.mpr-sheet.is-nordic .mpr-sheet__side .mpr-sheet__block {
  min-width: 0;
}
.mpr-sheet.is-two-column .mpr-sheet__side .mpr-sheet__block p,
.mpr-sheet.is-creative .mpr-sheet__side .mpr-sheet__block p,
.mpr-sheet.is-nordic .mpr-sheet__side .mpr-sheet__block p,
.mpr-sheet.is-two-column .mpr-sheet__side .mpr-sheet__block li,
.mpr-sheet.is-creative .mpr-sheet__side .mpr-sheet__block li,
.mpr-sheet.is-nordic .mpr-sheet__side .mpr-sheet__block li {
  font-size: 0.72rem;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
}
.mpr-sheet.is-two-column .mpr-sheet__block--side-contact p,
.mpr-sheet.is-creative .mpr-sheet__block--side-contact p,
.mpr-sheet.is-nordic .mpr-sheet__block--side-contact p {
  margin: 0 0 0.4rem;
  overflow-wrap: break-word;
  word-break: normal;
}
.mpr-sheet.is-two-column .mpr-sheet__side .mpr-sheet__block h3,
.mpr-sheet.is-creative .mpr-sheet__side .mpr-sheet__block h3,
.mpr-sheet.is-nordic .mpr-sheet__side .mpr-sheet__block h3 {
  color: color-mix(in srgb, var(--sheet-accent) 55%, white);
  border-bottom-color: rgba(255,255,255,0.12);
}
.mpr-sheet.is-two-column .mpr-sheet__block--main-skills,
.mpr-sheet.is-two-column .mpr-sheet__block--main-edu,
.mpr-sheet.is-creative .mpr-sheet__block--main-skills,
.mpr-sheet.is-creative .mpr-sheet__block--main-edu,
.mpr-sheet.is-nordic .mpr-sheet__block--main-skills,
.mpr-sheet.is-nordic .mpr-sheet__block--main-edu {
  display: none;
}
.mpr-sheet.is-two-column .mpr-sheet__identity,
.mpr-sheet.is-creative .mpr-sheet__identity,
.mpr-sheet.is-nordic .mpr-sheet__identity {
  display: block;
}
.mpr-sheet.is-two-column .mpr-sheet__side::before,
.mpr-sheet.is-creative .mpr-sheet__side::before,
.mpr-sheet.is-nordic .mpr-sheet__side::before {
  content: attr(data-side-name);
}
/* inject name into sidebar via first contact block heading replacement using CSS content not available for dynamic - use visible name in side */
.mpr-sheet.is-two-column .mpr-sheet__block--side-contact h3,
.mpr-sheet.is-creative .mpr-sheet__block--side-contact h3,
.mpr-sheet.is-nordic .mpr-sheet__block--side-contact h3 {
  display: none;
}
.mpr-sheet.is-two-column .mpr-sheet__block--side-contact::before,
.mpr-sheet.is-creative .mpr-sheet__block--side-contact::before,
.mpr-sheet.is-nordic .mpr-sheet__block--side-contact::before {
  content: none;
}
.mpr-sheet.is-two-column .mpr-sheet__side .mpr-sheet__block--side-contact {
  padding-top: 0.2rem;
}
.mpr-sheet.is-two-column .mpr-sheet__main .mpr-sheet__block:first-child h3::before {
  content: none;
}

/* Show name in two-column via a pseudo header in main */
.mpr-sheet.is-two-column .mpr-sheet__main::before,
.mpr-sheet.is-creative .mpr-sheet__main::before,
.mpr-sheet.is-nordic .mpr-sheet__main::before {
  content: none;
}

.mpr-sheet.is-creative:not(.has-custom-style) { --sheet-side: #123a4f; --sheet-accent: #e8a838; }
.mpr-sheet.is-creative .mpr-sheet__side .mpr-sheet__block h3 { color: color-mix(in srgb, var(--sheet-accent) 70%, white); }
.mpr-sheet.is-nordic:not(.has-custom-style) { --sheet-side: #e8eef3; }
.mpr-sheet.is-nordic .mpr-sheet__side { color: #1a3148; }
.mpr-sheet.is-nordic .mpr-sheet__side .mpr-sheet__block h3 {
  color: var(--sheet-accent);
  border-bottom-color: rgba(12,27,42,0.1);
}

/* Professional / Corporate / Bold / Specialist / Executive */
.mpr-sheet.is-professional,
.mpr-sheet.is-corporate,
.mpr-sheet.is-bold {
  padding-top: 0;
}
.mpr-sheet.is-professional .mpr-sheet__header,
.mpr-sheet.is-corporate .mpr-sheet__header,
.mpr-sheet.is-bold .mpr-sheet__header {
  background: var(--sheet-header);
  color: #fff;
  margin: 0 -1.5rem 1rem;
  padding: 1.25rem 1.5rem;
}
.mpr-sheet.is-professional .mpr-sheet__headline,
.mpr-sheet.is-corporate .mpr-sheet__headline,
.mpr-sheet.is-bold .mpr-sheet__headline,
.mpr-sheet.is-professional .mpr-sheet__meta,
.mpr-sheet.is-corporate .mpr-sheet__meta,
.mpr-sheet.is-bold .mpr-sheet__meta {
  color: rgba(255,255,255,0.86);
}
.mpr-sheet.is-professional .mpr-sheet__accent {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: var(--sheet-accent);
}
.mpr-sheet.is-corporate:not(.has-custom-style) { --sheet-accent: #1a3148; --sheet-header: #1a3148; }
.mpr-sheet.is-bold:not(.has-custom-style) { --sheet-accent: #0c1b2a; --sheet-header: #0c1b2a; }
.mpr-sheet.is-bold .mpr-sheet__name { font-size: 2rem; font-weight: 800; }

.mpr-sheet.is-executive {
  padding-top: 0;
}
.mpr-sheet.is-executive:not(.has-custom-style) {
  --sheet-accent: #0c1b2a;
  --sheet-header: #0c1b2a;
}
.mpr-sheet.is-executive .mpr-sheet__header {
  background: var(--sheet-header);
  color: #fff;
  margin: 0 -1.5rem 1rem;
  padding: 1.35rem 1.5rem;
}
.mpr-sheet.is-executive .mpr-sheet__headline { color: color-mix(in srgb, var(--sheet-accent) 35%, #c4a35a); }
.mpr-sheet.is-executive .mpr-sheet__meta { color: rgba(255,255,255,0.75); }

.mpr-sheet.is-specialist .mpr-sheet__header {
  background: var(--sheet-header, #1a3148);
  color: #fff;
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.mpr-sheet.is-specialist:not(.has-custom-style) { --sheet-header: #1a3148; }
.mpr-sheet.is-specialist .mpr-sheet__headline { color: color-mix(in srgb, var(--sheet-accent) 45%, white); }
.mpr-sheet.is-specialist .mpr-sheet__meta { color: rgba(255,255,255,0.78); }
.mpr-sheet.is-specialist .mpr-sheet__badge {
  display: inline-flex;
  margin-top: 0.75rem;
  background: var(--sheet-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

/* Clean / Simple */
.mpr-sheet.is-clean .mpr-sheet__name {
  font-size: 1.9rem;
  font-weight: 800;
}
.mpr-sheet.is-clean .mpr-sheet__headline { color: var(--sheet-accent); }
.mpr-sheet.is-clean .mpr-sheet__accent {
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--sheet-accent);
  margin-top: 0.8rem;
}
.mpr-sheet.is-clean .mpr-sheet__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mpr-sheet.is-simple .mpr-sheet__header {
  border-bottom: 1px solid var(--sheet-line);
  padding-bottom: 0.85rem;
}

/* Timeline */
.mpr-sheet.is-timeline .mpr-sheet__job {
  border-left: 2px solid color-mix(in srgb, var(--sheet-accent) 28%, white);
  padding-left: 0.9rem;
  margin-left: 0.25rem;
}
.mpr-sheet.is-timeline:not(.has-custom-style) { --sheet-accent: #0d8f7b; }

/* User-chosen colors/fonts override template defaults */
.mpr-sheet.has-custom-style {
  font-family: var(--sheet-font) !important;
  color: var(--sheet-ink);
}

.mpr-sheet.has-custom-style .mpr-sheet__name,
.mpr-sheet.has-custom-style .mpr-sheet__block h3,
.mpr-sheet.has-custom-style .mpr-sheet__side-name strong {
  font-family: var(--sheet-font-heading) !important;
}

.mpr-sheet.has-custom-style .mpr-sheet__block h3 {
  color: var(--sheet-accent) !important;
  border-bottom-color: var(--sheet-accent) !important;
}

.mpr-sheet.has-custom-style .mpr-sheet__header {
  border-bottom-color: var(--sheet-accent) !important;
}

.mpr-sheet.has-custom-style.is-ats .mpr-sheet__header,
.mpr-sheet.has-custom-style.is-compact .mpr-sheet__header,
.mpr-sheet.has-custom-style.is-classic .mpr-sheet__header {
  border-bottom-color: var(--sheet-accent) !important;
}

.mpr-sheet.has-custom-style.is-professional .mpr-sheet__header,
.mpr-sheet.has-custom-style.is-corporate .mpr-sheet__header,
.mpr-sheet.has-custom-style.is-bold .mpr-sheet__header,
.mpr-sheet.has-custom-style.is-executive .mpr-sheet__header,
.mpr-sheet.has-custom-style.is-specialist .mpr-sheet__header {
  background: var(--sheet-header) !important;
}

.mpr-sheet.has-custom-style .mpr-sheet__accent {
  background: var(--sheet-accent) !important;
}

.mpr-sheet.has-custom-style.is-two-column .mpr-sheet__side,
.mpr-sheet.has-custom-style.is-creative .mpr-sheet__side,
.mpr-sheet.has-custom-style.is-nordic .mpr-sheet__side {
  background: var(--sheet-side) !important;
}

.mpr-sheet.has-custom-style .mpr-sheet__side-name span {
  color: color-mix(in srgb, var(--sheet-accent) 55%, white);
}
.mpr-sheet.has-custom-style.is-nordic .mpr-sheet__side-name span {
  color: var(--sheet-accent);
}

/* Gallery card uses same sheet scaled */
.mpr-sheet-thumb {
  pointer-events: none;
  transform-origin: top left;
}

.mpr-sheet-thumb .mpr-sheet {
  overflow: hidden;
  max-height: 720px;
}

@media print {
  .mpr-sheet {
    box-shadow: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    background-image: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .mpr-sheet__lock {
    display: none !important;
  }
  .mpr-sheet.is-two-column .mpr-sheet__layout,
  .mpr-sheet.is-creative .mpr-sheet__layout,
  .mpr-sheet.is-nordic .mpr-sheet__layout {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr) !important;
    min-height: 0 !important;
  }
  .mpr-sheet.is-two-column .mpr-sheet__side,
  .mpr-sheet.is-creative .mpr-sheet__side,
  .mpr-sheet.is-nordic .mpr-sheet__side {
    display: block !important;
    overflow: visible !important;
  }
  .mpr-sheet.is-two-column .mpr-sheet__header,
  .mpr-sheet.is-creative .mpr-sheet__header,
  .mpr-sheet.is-nordic .mpr-sheet__header {
    display: none !important;
  }
  .mpr-sheet.is-two-column .mpr-sheet__main,
  .mpr-sheet.is-creative .mpr-sheet__main,
  .mpr-sheet.is-nordic .mpr-sheet__main {
    overflow: visible !important;
  }
}

@media screen and (max-width: 760px) {
  .mpr-sheet.is-two-column .mpr-sheet__layout,
  .mpr-sheet.is-creative .mpr-sheet__layout,
  .mpr-sheet.is-nordic .mpr-sheet__layout {
    grid-template-columns: 1fr;
  }
  .mpr-sheet.is-two-column .mpr-sheet__side,
  .mpr-sheet.is-creative .mpr-sheet__side,
  .mpr-sheet.is-nordic .mpr-sheet__side {
    display: none;
  }
  .mpr-sheet.is-two-column .mpr-sheet__header,
  .mpr-sheet.is-creative .mpr-sheet__header,
  .mpr-sheet.is-nordic .mpr-sheet__header {
    display: block;
    padding: 1.25rem 1.2rem 0;
  }
  .mpr-sheet.is-two-column .mpr-sheet__block--main-skills,
  .mpr-sheet.is-two-column .mpr-sheet__block--main-edu,
  .mpr-sheet.is-creative .mpr-sheet__block--main-skills,
  .mpr-sheet.is-creative .mpr-sheet__block--main-edu,
  .mpr-sheet.is-nordic .mpr-sheet__block--main-skills,
  .mpr-sheet.is-nordic .mpr-sheet__block--main-edu {
    display: block;
  }
}

[data-pdf-capture-host] {
  position: fixed;
  left: 0;
  top: 0;
  width: 210mm;
  background: #fff;
  z-index: 2147483000;
  pointer-events: none;
}
[data-pdf-capture-host] .mpr-sheet {
  width: 210mm !important;
  max-width: 210mm !important;
  box-shadow: none !important;
  overflow: visible !important;
  border-radius: 0 !important;
  min-height: 0;
}
[data-pdf-capture-host] .mpr-sheet.is-two-column .mpr-sheet__layout,
[data-pdf-capture-host] .mpr-sheet.is-creative .mpr-sheet__layout,
[data-pdf-capture-host] .mpr-sheet.is-nordic .mpr-sheet__layout {
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr) !important;
}
[data-pdf-capture-host] .mpr-sheet.is-two-column .mpr-sheet__side,
[data-pdf-capture-host] .mpr-sheet.is-creative .mpr-sheet__side,
[data-pdf-capture-host] .mpr-sheet.is-nordic .mpr-sheet__side {
  display: block !important;
  overflow: visible !important;
}
[data-pdf-capture-host] .mpr-sheet.is-two-column .mpr-sheet__header,
[data-pdf-capture-host] .mpr-sheet.is-creative .mpr-sheet__header,
[data-pdf-capture-host] .mpr-sheet.is-nordic .mpr-sheet__header {
  display: none !important;
}
.html2pdf__overlay {
  overflow: visible !important;
  height: auto !important;
  bottom: auto !important;
}
.html2pdf__container {
  overflow: visible !important;
  height: auto !important;
}
