/* Moroccan Public Competition Cover Letter Template Styling */
/* Lettre de Motivation Concours Public Maroc / طلب خطي لترشيح مباراة العمومية */

.tpl-cl-morocco {
  padding: 3rem;
  box-sizing: border-box;
  color: #0f172a;
  font-family: var(--doc-font-family);
  line-height: 1.75;
  font-size: 0.95rem;
}

.tpl-cl-morocco .morocco-header-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.tpl-cl-morocco .applicant-box {
  max-width: 45%;
  font-size: 0.875rem;
  line-height: 1.6;
}

.tpl-cl-morocco .applicant-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.tpl-cl-morocco .applicant-cin {
  font-weight: 700;
  color: var(--doc-accent);
}

.tpl-cl-morocco .recipient-box {
  max-width: 50%;
  text-align: right;
  font-size: 0.925rem;
}

html[dir="rtl"] .tpl-cl-morocco .recipient-box {
  text-align: left;
}

.tpl-cl-morocco .location-date-row {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #475569;
}

html[dir="rtl"] .tpl-cl-morocco .location-date-row {
  text-align: left;
}

.tpl-cl-morocco .destinataire-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.tpl-cl-morocco .administrative-object {
  margin-bottom: 1.5rem;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 700;
}

.tpl-cl-morocco .administrative-reference {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.tpl-cl-morocco .morocco-salutation {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.tpl-cl-morocco .morocco-body p {
  margin-bottom: 1.2rem;
  text-indent: 1.5rem;
  text-align: justify;
}

html[dir="rtl"] .tpl-cl-morocco .morocco-body p {
  text-indent: 1.5rem;
}

.tpl-cl-morocco .attachments-section {
  margin-top: 2rem;
  padding: 1rem;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 0.85rem;
}

.tpl-cl-morocco .attachments-title {
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.tpl-cl-morocco .signature-box {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-end;
}

html[dir="rtl"] .tpl-cl-morocco .signature-box {
  justify-content: flex-start;
}

.tpl-cl-morocco .signature-content {
  text-align: center;
  min-width: 200px;
}

.tpl-cl-morocco .signature-content .sig-title {
  font-weight: 600;
  margin-bottom: 3rem;
}

.tpl-cl-morocco .signature-content .sig-name {
  font-weight: 800;
  font-size: 1.05rem;
}
