/**
 * The organization template (Brief v2 PRD §3, WP-23/24): the SECOND template axis —
 * appearance/identity per sub-organization (letterhead, footer, signature, margins).
 * Orthogonal to the case-type template (sections + placeholders); the two only meet
 * at render time, on the letter canvas. Server-owned: the FE renders it verbatim,
 * never edits it here (the admin editor is WP-26).
 */

export interface Margins {
  readonly topMm: number;
  readonly rightMm: number;
  readonly bottomMm: number;
  readonly leftMm: number;
}

export interface OrgTemplate {
  readonly subOrgId: string;
  readonly orgName: string;
  /** Multiline; rendered above the envelope window. */
  readonly returnAddress: string;
  readonly logoDocumentId?: string;
  /** Multiline contact block in the footer. */
  readonly footerContact: string;
  readonly footerLegal: string;
  readonly signatureName: string;
  readonly signatureRole: string;
  readonly signatureClosing: string;
  readonly margins: Margins;
  /** 0 = draft; n>0 = the published snapshot this letter renders with. */
  readonly version: number;
}
