@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;700&family=DM+Sans:wght@400;500;700&family=JetBrains+Mono:wght@500;700&family=Lato:wght@400;700&family=Manrope:wght@500;700;800&family=Playfair+Display:wght@600;700&family=Plus+Jakarta+Sans:wght@600;700;800&family=Poppins:wght@400;500;700;800&display=swap");

/* ---------- Page and action bar ---------- */
.rz-page { margin: 0; background: #e9edf3; }
.rz-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 10px; background: #0b1b3a; }
.rz-bar a, .rz-bar button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 6px 14px; border: 0; border-radius: 10px; font: 600 13px "DM Sans", sans-serif; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .14); cursor: pointer; }
.rz-bar button { background: linear-gradient(135deg, #0b5fff, #0aa5e9); }
.rz-powered { display: block; padding: 18px; text-align: center; font: 500 13px "DM Sans", sans-serif; color: #475569; text-decoration: none; }
.ic { display: inline-block; flex: none; width: 1em; height: 1em; font-size: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* ---------- Resume structure ---------- */
.rz { --a: #0b5fff; --txt: #1b2537; --muted: #5b6678; --line: #e2e7ef; --paper: #fff; --sideb: transparent; --sidet: var(--txt); --fh: "Poppins", sans-serif; --fb: "DM Sans", sans-serif; box-sizing: border-box; width: 100%; max-width: 900px; margin: 18px auto; overflow: hidden; font: 14px/1.55 var(--fb); color: var(--txt); background: var(--paper); box-shadow: 0 12px 34px rgba(11, 27, 58, .14); }
.rz * { box-sizing: border-box; }
.rz-ribbon { padding: 5px; text-align: center; font-size: 11px; color: #fff; background: #111827; }
.rz-head { display: flex; align-items: center; gap: 20px; padding: 28px; }
.rz-photo { flex: none; width: 112px; height: 112px; object-fit: cover; border-radius: 50%; }
.rz h1 { margin: 0; font: 800 30px/1.15 var(--fh); }
.rz-headline { margin: 5px 0 0; font-size: 16px; font-weight: 500; color: var(--a); }
.rz-body { display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.rz-side { padding: 24px; color: var(--sidet); background: var(--sideb); }
.rz-main { padding: 24px 28px; }
.rz section { margin-bottom: 22px; break-inside: avoid; }
.rz section:last-child { margin-bottom: 0; }
.rz h2 { margin: 0 0 10px; font: 700 14px/1.3 var(--fh); letter-spacing: .08em; text-transform: uppercase; color: var(--a); }
.rz h3 { margin: 0; font: 700 14px/1.35 var(--fh); }
.rz p { margin: 0 0 6px; }
.rz ul { margin: 0; padding: 0; list-style: none; }
.rz a { color: inherit; }
.rz-contact li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 7px; font-size: 13px; overflow-wrap: anywhere; }
.rz-contact .ic { margin-top: 3px; color: var(--a); }
.rz-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rz-tags li { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: color-mix(in srgb, var(--a) 12%, transparent); }
.rz-plain li { margin-bottom: 4px; font-size: 13px; }
.rz-item { margin-bottom: 14px; }
.rz-item-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.rz-item-top span { font-size: 12px; font-weight: 600; color: var(--muted); }
.rz-org { font-weight: 500; color: var(--muted); }
.rz-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rz-sample { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; break-inside: avoid; }
.rz-sample img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rz-sample > div { padding: 10px 12px 12px; }
.rz-sample p { margin: 3px 0 6px; font-size: 12.5px; color: var(--muted); }
.rz-sample a { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--a); text-decoration: none; }

/* MODERN: full-colour left sidebar holding the photo and contact details */
.rz-modern { --sideb: #0b3d91; --sidet: #eaf1ff; position: relative; --fh: "Poppins", sans-serif; }
.rz-modern .rz-head { padding-left: 298px; min-height: 150px; }
.rz-modern .rz-photo { position: absolute; left: 75px; top: 34px; z-index: 2; width: 120px; height: 120px; border: 4px solid #fff; }
.rz-modern .rz-side { margin-top: -150px; padding-top: 175px; }
.rz-modern .rz-side h2 { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 5px; }
.rz-modern .rz-side .ic { color: #9ec3ff; }
.rz-modern .rz-tags li { background: rgba(255, 255, 255, .16); }

/* EXECUTIVE: dark full-width header, gold accents, details on the right */
.rz-executive { --a: #a9812f; --fh: "Manrope", sans-serif; --fb: "Lato", sans-serif; }
.rz-executive .rz-head { color: #fff; background: #111c2e; border-bottom: 5px solid #c9a24b; }
.rz-executive .rz-headline { color: #e3c26f; }
.rz-executive .rz-photo { border-radius: 8px; border: 2px solid #c9a24b; }
.rz-executive .rz-body { grid-template-columns: minmax(0, 1fr) 260px; }
.rz-executive .rz-side { order: 2; background: #f6f4ee; }
.rz-executive h2 { border-bottom: 2px solid #c9a24b; padding-bottom: 4px; color: #111c2e; }

/* CREATIVE: colourful gradient header, big photo, large work samples first */
.rz-creative { --a: #c026d3; --fh: "Plus Jakarta Sans", sans-serif; }
.rz-creative .rz-head { flex-direction: column; text-align: center; padding: 34px 28px 70px; color: #fff; background: linear-gradient(120deg, #7c3aed, #db2777 60%, #f97316); }
.rz-creative .rz-headline { color: #fff; }
.rz-creative .rz-photo { order: 0; width: 130px; height: 130px; border: 5px solid rgba(255, 255, 255, .8); border-radius: 36px; transform: rotate(-4deg); }
.rz-creative .rz-body { position: relative; margin: -40px 18px 18px; border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .1); grid-template-columns: minmax(0, 1fr) 240px; }
.rz-creative .rz-side { order: 2; border-radius: 0 20px 20px 0; background: #fdf4ff; }
.rz-creative .rz-sample { border: 0; box-shadow: 0 6px 18px rgba(124, 58, 237, .16); border-radius: 16px; }

/* MINIMAL: one calm column, thin rules, details laid out in a row */
.rz-minimal { --a: #0f766e; --fh: "Manrope", sans-serif; }
.rz-minimal .rz-head { flex-direction: row-reverse; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 34px 40px 24px; }
.rz-minimal .rz-photo { width: 90px; height: 90px; }
.rz-minimal .rz-body { display: block; padding: 0 16px; }
.rz-minimal .rz-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; border-bottom: 1px solid var(--line); }
.rz-minimal .rz-side section { margin: 0; }
.rz-minimal h2 { letter-spacing: .03em; text-transform: none; font-size: 16px; }

/* TECH: dark screen look, monospaced headings, green accents */
.rz-tech { --a: #22c55e; --txt: #e2e8f0; --muted: #94a3b8; --line: #243044; --paper: #0d1420; --fh: "JetBrains Mono", monospace; }
.rz-tech .rz-head { border-bottom: 1px solid var(--line); }
.rz-tech .rz-photo { border-radius: 12px; border: 2px solid var(--a); }
.rz-tech h1::before { content: "> "; color: var(--a); }
.rz-tech h2::before { content: "# "; }
.rz-tech .rz-side { border-right: 1px solid var(--line); background: #111a29; }
.rz-tech .rz-tags li { color: #86efac; background: #14281c; border-radius: 4px; }
.rz-tech .rz-sample { background: #111a29; }
.rz-tech .rz-bar a { color: #fff; }

/* ELEGANT: cream paper, serif type, centred header, fine double lines */
.rz-elegant { --a: #8a6d3b; --txt: #3a2e22; --muted: #76685a; --line: #e4d9c5; --paper: #fdfaf3; --fh: "Playfair Display", serif; --fb: "Cormorant Garamond", serif; font-size: 16.5px; }
.rz-elegant .rz-head { flex-direction: column; text-align: center; padding: 34px; border-bottom: 3px double #b49a6a; }
.rz-elegant .rz-photo { width: 124px; height: 124px; padding: 4px; border: 1px solid #b49a6a; }
.rz-elegant .rz-headline { font-style: italic; font-size: 19px; }
.rz-elegant h2 { text-align: center; font-weight: 600; font-size: 15px; }
.rz-elegant .rz-body { grid-template-columns: minmax(0, 1fr) 250px; }
.rz-elegant .rz-side { order: 2; border-left: 1px solid var(--line); }
.rz-elegant .rz-tags li { font-size: 14.5px; background: #f3ebda; }
.rz-elegant .rz-contact li, .rz-elegant .rz-plain li { font-size: 15px; }
.rz-elegant .rz-sample p { font-size: 14.5px; }

@media (max-width: 720px) {
  .rz { margin: 0; }
  .rz .rz-body { display: block; margin-inline: 0; }
  .rz-creative .rz-body { margin: -30px 10px 10px; }
  .rz .rz-side { border: 0; border-radius: 0; }
  .rz-head { padding: 22px; }
  .rz h1 { font-size: 25px; }
  .rz-main { padding: 22px; }
  .rz-modern .rz-head { padding: 24px 22px; flex-direction: column; text-align: center; color: #fff; background: #0b3d91; }
  .rz-modern .rz-headline { color: #cfe0ff; }
  .rz-modern .rz-photo { position: static; }
  .rz-modern .rz-side { margin: 0; padding-top: 22px; }
  .rz-minimal .rz-head { padding: 22px; }
}
@media (max-width: 460px) {
  .rz-samples { grid-template-columns: 1fr; }
}
@media print {
  @page { margin: 0; }
  .rz-page { background: none; }
  .rz-bar, .rz-powered, .rz-ribbon { display: none; }
  .rz { max-width: none; margin: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rz-body { grid-template-columns: 34% 66%; }
  .rz-executive .rz-body, .rz-creative .rz-body, .rz-elegant .rz-body { grid-template-columns: 68% 32%; }
}

/* Owner note and contact form */
.rz-note { max-width: 900px; margin: 12px auto 0; padding: 8px 12px; border-radius: 10px; text-align: center; font: 600 13px "DM Sans", sans-serif; color: #92400e; background: #fef3c7; }
.rz-contact-form form { display: grid; gap: 8px; }
.rz-contact-form input, .rz-contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--txt); background: transparent; }
.rz-contact-form button { justify-self: start; padding: 10px 18px; border: 0; border-radius: 8px; font: inherit; font-weight: 700; color: #fff; background: var(--a); cursor: pointer; }
.rz-sent { font-weight: 700; color: var(--a); }
@media print { .rz-note, .rz-contact-form { display: none; } }