/* ==========================================================================
   Cover letter documents — one A4 sheet (794 × 1123 CSS px).
   Every layout is scoped under .cl-doc--{layout}; color comes from
   --cl-accent and typography from --cl-font (set inline per letter).
   ========================================================================== */

.cl-sheet {
  margin: 0;
  padding: 32px 16px;
  background: #e2e8f0;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.cl-sheet .cl-doc {
  margin: 0 auto;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
}

.cl-sheet--pdf {
  padding: 0;
  background: #fff;
}

.cl-sheet--pdf .cl-doc {
  box-shadow: none;
}

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

@media print {
  .cl-sheet {
    padding: 0;
    background: #fff;
  }

  .cl-sheet .cl-doc {
    box-shadow: none;
  }
}

.cl-doc {
  --cl-accent: #2563eb;
  --cl-font: "Plus Jakarta Sans", Arial, sans-serif;
  --cl-ink: #1f2937;
  --cl-muted: #6b7280;
  --cl-rule: #e5e7eb;
  position: relative;
  width: 794px;
  min-height: 1123px;
  background: #fff;
  color: var(--cl-ink);
  font-family: var(--cl-font);
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.cl-doc *,
.cl-doc *::before,
.cl-doc *::after {
  box-sizing: border-box;
}

.cl-doc h1,
.cl-doc p,
.cl-doc ul,
.cl-doc address {
  margin: 0;
  padding: 0;
  font-style: normal;
}

.cl-page {
  position: relative;
  padding: 64px 72px 56px;
}

.cl-name {
  font-family: var(--cl-font);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--cl-ink);
}

.cl-title {
  margin-top: 6px !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cl-accent);
}

/* Contacts ----------------------------------------------------------------- */

.cl-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px !important;
  list-style: none;
  font-size: 12.5px;
  color: var(--cl-muted);
}

.cl-contacts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  word-break: break-word;
}

.cl-contacts__icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: var(--cl-accent);
}

.cl-contacts--stacked {
  flex-direction: column;
  gap: 7px;
}

.cl-contacts--sep {
  gap: 4px 0;
}

.cl-contacts--sep li + li::before {
  margin: 0 10px;
  opacity: 0.6;
}

.cl-contacts--sep[data-sep="/"] li + li::before { content: "/"; }
.cl-contacts--sep[data-sep="•"] li + li::before { content: "•"; }
.cl-contacts--sep[data-sep="·"] li + li::before { content: "·"; }
.cl-contacts--sep[data-sep="|"] li + li::before { content: "|"; }

/* Meta + body ------------------------------------------------------------- */

.cl-meta {
  margin-top: 36px;
}

.cl-date {
  font-size: 13.5px;
  color: var(--cl-muted);
}

.cl-recipient {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.55;
}

.cl-recipient__name {
  font-weight: 700;
}

.cl-body {
  margin-top: 28px;
}

.cl-body p {
  margin: 0 0 14px;
}

.cl-body ul,
.cl-body ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.cl-body li {
  margin: 0 0 4px;
}

.cl-body a {
  color: inherit;
  text-decoration: underline;
}

.cl-subject {
  font-weight: 700;
  color: var(--cl-ink);
}

.cl-greeting {
  font-weight: 600;
}

.cl-placeholder {
  padding: 18px;
  border: 1px dashed var(--cl-rule);
  border-radius: 8px;
  color: var(--cl-muted);
  font-style: italic;
}

.cl-signoff {
  margin-top: 26px;
}

.cl-signoff p {
  margin: 0;
}

.cl-signature {
  margin-top: 30px !important;
  font-size: 16px;
  font-weight: 700;
  color: var(--cl-ink);
}

.cl-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cl-accent);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* 1. Classic --------------------------------------------------------------- */

.cl-doc--classic .cl-head {
  padding-bottom: 20px;
  border-bottom: 2px solid var(--cl-accent);
  text-align: center;
}

.cl-doc--classic .cl-name {
  color: var(--cl-accent);
  font-size: 32px;
}

.cl-doc--classic .cl-title {
  color: var(--cl-muted);
}

.cl-doc--classic .cl-contacts {
  justify-content: center;
}

/* 2. Modern ---------------------------------------------------------------- */

.cl-bar {
  height: 12px;
  background: var(--cl-accent);
}

.cl-doc--modern .cl-page {
  padding-top: 52px;
}

.cl-doc--modern .cl-name {
  font-size: 36px;
  font-weight: 800;
}

.cl-doc--modern .cl-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--cl-rule);
}

.cl-doc--modern .cl-greeting,
.cl-doc--modern .cl-subject {
  color: var(--cl-accent);
}

/* 3. Sidebar --------------------------------------------------------------- */

.cl-doc--sidebar {
  display: grid;
  grid-template-columns: 240px 1fr;
}

.cl-side {
  padding: 56px 28px;
  background: var(--cl-accent);
  color: #fff;
}

.cl-side .cl-monogram {
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.cl-side .cl-name {
  margin-top: 20px;
  color: #fff;
  font-size: 24px;
}

.cl-side .cl-title {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11.5px;
}

.cl-side__label {
  margin-top: 30px !important;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.cl-side .cl-contacts,
.cl-side .cl-date {
  margin-top: 12px !important;
  font-size: 12px;
  color: #fff;
}

.cl-side .cl-contacts__icon {
  color: rgba(255, 255, 255, 0.85);
}

.cl-page--main {
  padding: 56px 48px;
}

.cl-doc--sidebar .cl-meta {
  margin-top: 8px;
}

/* 4. Banner ---------------------------------------------------------------- */

.cl-banner {
  padding: 52px 72px 40px;
  background: var(--cl-accent);
  color: #fff;
}

.cl-banner .cl-name {
  color: #fff;
  font-size: 38px;
  font-weight: 800;
}

.cl-banner .cl-title {
  color: rgba(255, 255, 255, 0.85);
}

.cl-banner .cl-contacts {
  margin-top: 20px !important;
  color: rgba(255, 255, 255, 0.92);
}

.cl-banner .cl-contacts__icon {
  color: #fff;
}

.cl-doc--banner .cl-meta {
  margin-top: 0;
}

/* 5. Minimal --------------------------------------------------------------- */

.cl-doc--minimal .cl-page {
  padding: 80px 88px 64px;
}

.cl-doc--minimal .cl-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--cl-ink);
}

.cl-doc--minimal .cl-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.cl-doc--minimal .cl-title {
  color: var(--cl-muted);
  font-weight: 500;
  letter-spacing: 0.18em;
  font-size: 11px;
}

.cl-doc--minimal .cl-contacts {
  margin-top: 10px !important;
  font-size: 11.5px;
}

.cl-doc--minimal .cl-date {
  text-align: right;
}

.cl-doc--minimal .cl-signature {
  color: var(--cl-accent);
}

/* 6. Executive ------------------------------------------------------------- */

.cl-doc--executive .cl-head {
  padding: 18px 0 16px;
  border-top: 4px double var(--cl-accent);
  border-bottom: 4px double var(--cl-accent);
  text-align: center;
}

.cl-doc--executive .cl-name {
  font-size: 30px;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: var(--cl-accent);
}

.cl-doc--executive .cl-title {
  color: var(--cl-ink);
  letter-spacing: 0.24em;
  font-size: 11px;
}

.cl-doc--executive .cl-contacts {
  justify-content: center;
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

.cl-doc--executive .cl-body {
  text-align: justify;
}

/* 7. Split ----------------------------------------------------------------- */

.cl-doc--split .cl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--cl-accent);
}

.cl-doc--split .cl-name {
  font-size: 34px;
  font-weight: 800;
}

.cl-doc--split .cl-contacts {
  margin-top: 0 !important;
  align-items: flex-end;
  text-align: right;
}

.cl-doc--split .cl-contacts li {
  flex-direction: row-reverse;
}

/* 8. Monogram -------------------------------------------------------------- */

.cl-stripe {
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: var(--cl-accent);
}

.cl-doc--monogram .cl-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cl-doc--monogram .cl-contacts {
  padding: 12px 0;
  margin-top: 22px !important;
  border-top: 1px solid var(--cl-rule);
  border-bottom: 1px solid var(--cl-rule);
}

.cl-doc--monogram .cl-meta {
  margin-top: 28px;
}

.cl-doc--monogram .cl-signature {
  color: var(--cl-accent);
}

/* 9. Elegant --------------------------------------------------------------- */

.cl-doc--elegant .cl-head {
  text-align: center;
}

.cl-doc--elegant .cl-name {
  font-size: 40px;
  font-style: italic;
  font-weight: 400;
  color: var(--cl-accent);
}

.cl-doc--elegant .cl-title {
  color: var(--cl-muted);
  font-weight: 500;
  letter-spacing: 0.3em;
  font-size: 11px;
}

.cl-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px auto 0;
  width: 240px;
}

.cl-ornament span {
  flex: 1;
  height: 1px;
  background: var(--cl-accent);
}

.cl-ornament i {
  width: 8px;
  height: 8px;
  background: var(--cl-accent);
  transform: rotate(45deg);
}

.cl-doc--elegant .cl-contacts {
  justify-content: center;
}

.cl-doc--elegant .cl-signature {
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--cl-accent);
}

/* 10. Bold ----------------------------------------------------------------- */

.cl-doc--bold .cl-name {
  font-size: 50px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.cl-doc--bold .cl-name::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 16px;
  background: var(--cl-accent);
}

.cl-doc--bold .cl-title {
  margin-top: 14px !important;
}

.cl-tint {
  position: relative;
  margin-top: 30px;
  padding: 18px 22px;
  border-left: 4px solid var(--cl-accent);
}

.cl-tint::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cl-accent);
  opacity: 0.08;
}

.cl-tint .cl-meta {
  position: relative;
  margin-top: 0;
}

/* 11. ATS plain ------------------------------------------------------------ */

.cl-doc--ats {
  --cl-accent: #111827 !important;
  font-size: 13.5px;
}

.cl-doc--ats .cl-name {
  font-size: 24px;
}

.cl-doc--ats .cl-title {
  color: #111827;
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
}

.cl-doc--ats .cl-contacts {
  margin-top: 8px !important;
  color: #111827;
  font-size: 12.5px;
}

.cl-doc--ats .cl-date {
  color: #111827;
}

/* 12. Framed --------------------------------------------------------------- */

.cl-frame {
  position: absolute;
  inset: 26px;
  border: 1px solid var(--cl-accent);
  pointer-events: none;
}

.cl-frame i {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 4px solid var(--cl-accent);
}

.cl-frame i:nth-child(1) { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.cl-frame i:nth-child(2) { top: -6px; right: -6px; border-left: 0; border-bottom: 0; }
.cl-frame i:nth-child(3) { bottom: -6px; left: -6px; border-right: 0; border-top: 0; }
.cl-frame i:nth-child(4) { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }

.cl-doc--frame .cl-page {
  padding: 76px 84px 64px;
}

.cl-doc--frame .cl-head {
  text-align: center;
}

.cl-doc--frame .cl-name {
  color: var(--cl-accent);
  letter-spacing: 0.04em;
}

.cl-doc--frame .cl-title {
  color: var(--cl-muted);
}

.cl-doc--frame .cl-contacts {
  justify-content: center;
}

/* 13. Aurora gradient ------------------------------------------------------ */

.cl-aurora {
  position: relative;
  overflow: hidden;
  margin: 24px 24px 0;
  padding: 44px 48px 36px;
  border-radius: 24px;
  background-color: var(--cl-accent);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 45%, rgba(15, 23, 42, 0.38) 100%);
  color: #fff;
}

.cl-aurora__glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.cl-aurora__glow--a {
  top: -140px;
  right: -60px;
  width: 360px;
  height: 360px;
}

.cl-aurora__glow--b {
  bottom: -160px;
  left: 30%;
  width: 280px;
  height: 280px;
  opacity: 0.6;
}

.cl-aurora__id {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cl-aurora .cl-monogram {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cl-aurora .cl-name {
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cl-aurora .cl-title {
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.12em;
}

.cl-aurora .cl-contacts {
  position: relative;
  gap: 8px;
  margin-top: 26px !important;
  color: #fff;
  font-size: 12px;
}

.cl-aurora .cl-contacts li {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.cl-aurora .cl-contacts__icon {
  color: #fff;
}

.cl-doc--aurora .cl-page {
  padding-top: 40px;
}

.cl-doc--aurora .cl-meta {
  margin-top: 0;
}

.cl-doc--aurora .cl-greeting,
.cl-doc--aurora .cl-subject {
  color: var(--cl-accent);
}

/* 14. Editorial ------------------------------------------------------------ */

.cl-doc--editorial .cl-page {
  padding: 56px 76px 60px;
}

.cl-kicker {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cl-ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.cl-doc--editorial .cl-head {
  margin-top: 34px;
}

.cl-doc--editorial .cl-name {
  font-size: 60px;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.cl-doc--editorial .cl-title {
  margin-top: 14px !important;
  color: var(--cl-muted);
  font-weight: 500;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.cl-doc--editorial .cl-contacts {
  margin-top: 26px !important;
  padding: 10px 0;
  border-top: 1px solid var(--cl-rule);
  border-bottom: 1px solid var(--cl-rule);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.cl-doc--editorial .cl-meta {
  margin-top: 28px;
}

.cl-doc--editorial .cl-recipient {
  margin-top: 0;
}

.cl-doc--editorial .cl-subject {
  font-style: italic;
  color: var(--cl-accent);
}

.cl-doc--editorial .cl-greeting + p:not(.cl-placeholder)::first-letter {
  float: left;
  margin: 4px 10px 0 0;
  font-size: 58px;
  font-weight: 700;
  line-height: 0.85;
  color: var(--cl-accent);
}

/* 15. Floating card -------------------------------------------------------- */

.cl-doc--card {
  box-sizing: border-box;
  padding: 36px;
}

.cl-floatcard-bg {
  position: absolute;
  inset: 0;
  background: var(--cl-accent);
  opacity: 0.09;
}

.cl-floatcard {
  position: relative;
  min-height: 1051px;
  padding: 48px 54px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05), 0 14px 36px rgba(15, 23, 42, 0.09);
}

.cl-doc--card .cl-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cl-doc--card .cl-monogram {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 20px;
}

.cl-doc--card .cl-name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cl-doc--card .cl-title {
  margin-top: 4px !important;
}

.cl-doc--card .cl-contacts {
  gap: 8px;
  margin-top: 24px !important;
  font-size: 12px;
}

.cl-doc--card .cl-contacts li {
  padding: 6px 12px;
  border: 1px solid var(--cl-rule);
  border-radius: 999px;
  background: #f8fafc;
}

.cl-doc--card .cl-meta {
  margin-top: 32px;
}

.cl-doc--card .cl-signature {
  color: var(--cl-accent);
}

/* 16. Swiss grid ----------------------------------------------------------- */

.cl-doc--swiss .cl-page {
  padding: 60px 64px 56px;
}

.cl-swiss__mark {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 30px;
  background: var(--cl-accent);
}

.cl-doc--swiss .cl-name {
  font-size: 62px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.cl-doc--swiss .cl-title {
  margin-top: 14px !important;
  color: var(--cl-ink);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 16px;
  font-weight: 500;
}

.cl-swiss {
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 28px;
  row-gap: 20px;
  margin-top: 44px;
}

.cl-swiss > * {
  margin-top: 0 !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--cl-ink);
}

.cl-swiss__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cl-accent);
}

.cl-doc--swiss .cl-contacts {
  gap: 3px;
  font-size: 13px;
  color: var(--cl-ink);
}

.cl-doc--swiss .cl-meta,
.cl-doc--swiss .cl-recipient,
.cl-doc--swiss .cl-body {
  margin-top: 0;
}

.cl-doc--swiss .cl-date {
  color: var(--cl-ink);
}

/* 17. Geometric ------------------------------------------------------------ */

.cl-geo {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 230px;
  overflow: hidden;
  pointer-events: none;
}

.cl-geo i {
  position: absolute;
  inset: 0;
  background: var(--cl-accent);
}

.cl-geo i:nth-child(1) {
  opacity: 0.16;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.cl-geo i:nth-child(2) {
  opacity: 0.45;
  -webkit-clip-path: polygon(35% 0, 100% 0, 100% 80%);
  clip-path: polygon(35% 0, 100% 0, 100% 80%);
}

.cl-geo i:nth-child(3) {
  -webkit-clip-path: polygon(65% 0, 100% 0, 100% 48%);
  clip-path: polygon(65% 0, 100% 0, 100% 48%);
}

.cl-geo-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 110px;
  background: var(--cl-accent);
  opacity: 0.9;
  -webkit-clip-path: polygon(0 20%, 100% 100%, 0 100%);
  clip-path: polygon(0 20%, 100% 100%, 0 100%);
  pointer-events: none;
}

.cl-doc--geometric .cl-page {
  padding: 72px 72px 120px;
}

.cl-doc--geometric .cl-head {
  padding-right: 200px;
}

.cl-doc--geometric .cl-name {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.cl-doc--geometric .cl-contacts {
  margin-top: 20px !important;
}

.cl-doc--geometric .cl-meta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--cl-rule);
}

.cl-doc--geometric .cl-subject {
  color: var(--cl-accent);
}

/* 18. Spotlight ------------------------------------------------------------ */

.cl-spot {
  padding: 52px 72px 42px;
  border-bottom: 6px solid var(--cl-accent);
  background: #0f172a;
  color: #fff;
}

.cl-spot__kicker {
  display: inline-block;
  margin-bottom: 18px !important;
  padding: 5px 12px;
  border: 1px solid var(--cl-accent);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.cl-spot .cl-name {
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cl-spot .cl-name span {
  padding: 0 4px;
  background: linear-gradient(transparent 64%, var(--cl-accent) 64%, var(--cl-accent) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.cl-spot .cl-title {
  margin-top: 12px !important;
  color: rgba(255, 255, 255, 0.72);
}

.cl-spot .cl-contacts {
  margin-top: 22px !important;
  color: rgba(255, 255, 255, 0.86);
}

.cl-doc--spotlight .cl-page {
  padding-top: 44px;
}

.cl-doc--spotlight .cl-meta {
  margin-top: 0;
}

.cl-doc--spotlight .cl-signature {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--cl-accent);
}

/* 19. Ribbon rail ---------------------------------------------------------- */

.cl-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  padding: 44px 0;
  background: var(--cl-accent);
  color: #fff;
}

.cl-rail__initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cl-rail__text {
  margin-top: auto;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.cl-doc--ribbon .cl-page {
  padding: 60px 68px 56px 124px;
}

.cl-doc--ribbon .cl-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--cl-rule);
}

.cl-doc--ribbon .cl-name {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.cl-doc--ribbon .cl-greeting,
.cl-doc--ribbon .cl-signature {
  color: var(--cl-accent);
}

/* 20. Letterhead ----------------------------------------------------------- */

.cl-doc--letterhead .cl-page {
  padding: 72px 80px 150px;
}

.cl-doc--letterhead .cl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--cl-rule);
}

.cl-doc--letterhead .cl-name {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cl-doc--letterhead .cl-title {
  margin-top: 8px !important;
  color: var(--cl-muted);
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 11.5px;
}

.cl-doc--letterhead .cl-monogram {
  flex: 0 0 auto;
  background: transparent;
  border: 1.5px solid var(--cl-accent);
  color: var(--cl-accent);
  font-size: 20px;
  font-weight: 600;
}

.cl-foot {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px 80px 30px;
  border-top: 3px solid var(--cl-accent);
}

.cl-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cl-accent);
  opacity: 0.06;
}

.cl-foot .cl-contacts {
  position: relative;
  justify-content: center;
  margin-top: 0 !important;
  font-size: 11.5px;
}

.cl-doc--letterhead .cl-signature {
  font-style: italic;
  font-weight: 600;
  color: var(--cl-accent);
}

/* Scaled thumbnails (gallery, list cards, live preview) ------------------- */

.cl-fit {
  --cl-scale: 0.3;
  position: relative;
  overflow: hidden;
  aspect-ratio: 794 / 1123;
  width: 100%;
  background: #fff;
}

.cl-fit > .cl-doc {
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(var(--cl-scale));
  transform-origin: top left;
  pointer-events: none;
}
