/* Isolated resume sheet styles for preview.php screenshots */
*,
*::before,
*::after { box-sizing: border-box; }

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

.rp-preview-body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  font-family: "Segoe UI", system-ui, -apple-system, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1f1a16;
}

.rv {
  width: 460px;
  min-height: 640px;
  background: #fffdf9;
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(60, 40, 20, .06),
    0 18px 40px rgba(60, 40, 20, .12);
  padding: 28px 28px 32px;
  overflow: hidden;
  position: relative;
}

.rv__header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eadfce;
}

.rv__photo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  flex: 0 0 auto;
  background:
    linear-gradient(145deg, #d9b08c, #c47a4a 55%, #8f4d2e);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}

.rv__name {
  font-family: Georgia, "Times New Roman", "Palatino Linotype", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #2a1f18;
}

.rv__role {
  margin-top: 4px;
  font-size: .95rem;
  font-weight: 600;
  color: #b45a2a;
}

.rv__contacts {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: .72rem;
  color: #6b5b4f;
}

.rv__contacts span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #c4b2a0;
}

.rv__block {
  margin-top: 14px;
}

.rv__block h2 {
  margin: 0 0 8px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a05a32;
  font-weight: 700;
}

.rv__block p {
  margin: 0;
  font-size: .78rem;
  line-height: 1.45;
  color: #3a312a;
}

.rv__item {
  margin-bottom: 10px;
}

.rv__item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  font-size: .82rem;
}

.rv__item-head strong {
  font-weight: 650;
  color: #241c17;
}

.rv__item-head span {
  flex: 0 0 auto;
  font-size: .7rem;
  color: #8a7666;
}

.rv__item-sub {
  font-size: .75rem;
  color: #7a5a42;
  margin: 2px 0 4px;
  font-weight: 600;
}

.rv__item p {
  font-size: .74rem;
}

.rv__skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rv__skills li {
  font-size: .7rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f4ebe0;
  color: #4a3a2e;
  border: 1px solid #e6d5c2;
}

/* —— style variants —— */
.rv--modern {
  background: #ffffff;
  border-radius: 16px;
}
.rv--modern .rv__header {
  border-bottom-color: #e8e8ee;
}
.rv--modern .rv__role,
.rv--modern .rv__block h2 {
  color: #c45c26;
}
.rv--modern .rv__name {
  font-size: 1.55rem;
}

.rv--elegant {
  padding: 32px 30px;
  background: linear-gradient(180deg, #fffdf8 0%, #fff 40%);
}
.rv--elegant .rv__name {
  font-size: 1.6rem;
  font-weight: 600;
}
.rv--elegant .rv__block h2 {
  letter-spacing: .18em;
  font-weight: 600;
  color: #8b5e3c;
}
.rv--elegant .rv__header {
  border-bottom: none;
  position: relative;
}
.rv--elegant .rv__header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, #c47a4a, transparent);
}

.rv--compact {
  padding: 22px 22px 26px;
}
.rv--compact .rv__name { font-size: 1.25rem; }
.rv--compact .rv__block { margin-top: 10px; }
.rv--compact .rv__block p,
.rv--compact .rv__item p { font-size: .72rem; line-height: 1.35; }
.rv--compact .rv__item { margin-bottom: 7px; }

.rv--minimal {
  box-shadow: 0 10px 30px rgba(40,30,20,.08);
  border: 1px solid #ece4d8;
}
.rv--minimal .rv__role,
.rv--minimal .rv__block h2 { color: #5c4a3a; }
.rv--minimal .rv__skills li {
  background: transparent;
  border-color: #d9cbb8;
  border-radius: 6px;
}

.rv--starter .rv__photo {
  border-radius: 50%;
}
.rv--starter .rv__block h2 {
  background: #f6ebe0;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: .08em;
}

.rv--creative {
  background:
    radial-gradient(circle at 100% 0%, rgba(212,134,74,.16), transparent 40%),
    #fffdf9;
}
.rv--creative .rv__name { color: #6b2f12; }
.rv--creative .rv__skills li {
  background: #fff1e4;
  border-color: #f0c9a4;
}

.rv--business {
  border-top: 5px solid #a85a2e;
}
.rv--business .rv__name {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.rv--business .rv__block h2 {
  color: #7a3f1c;
  border-bottom: 1px solid #ecdcc8;
  padding-bottom: 4px;
}

.rv--accent {
  padding-left: 0;
  padding-right: 0;
  display: grid;
  grid-template-columns: 132px 1fr;
  grid-template-rows: auto;
  column-gap: 0;
}
.rv--accent .rv__header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0;
  border-bottom: none;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #c47a4a, #a85a2e);
  color: #fff;
}
.rv--accent .rv__photo {
  margin: 22px auto 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0d2b4, #e0a878);
  box-shadow: 0 0 0 3px rgba(255,255,255,.35);
}
.rv--accent.rv--nophoto .rv__photo { display: none; }
.rv--accent .rv__intro {
  padding: 22px 22px 18px 8px;
}
.rv--accent .rv__name { color: #fff; }
.rv--accent .rv__role { color: #ffe3c8; }
.rv--accent .rv__contacts { color: rgba(255,255,255,.85); }
.rv--accent .rv__contacts span:not(:last-child)::after { color: rgba(255,255,255,.45); }
.rv--accent .rv__block {
  grid-column: 2;
  padding: 0 22px;
}
.rv--accent .rv__block:first-of-type { margin-top: 18px; }
.rv--accent .rv__block:last-of-type { padding-bottom: 22px; }
.rv--accent::before {
  content: "";
  grid-column: 1;
  grid-row: 2 / span 20;
  background: #f7efe6;
  width: 132px;
}

.rv--nophoto .rv__photo { display: none; }