/*
  Generated documents: letters (Courriers, MySendingBox) and contractual
  documents (attestations, chartes, avenants...).

  The typography is NOT here. It is inline on the elements, in
  templates/doc/document_body.tpl, because LibreOffice converts these
  documents to Word and OpenDocument and does not apply a <style>
  stylesheet - it ignored the rules and wrote the whole stylesheet out as
  text in the body of the .docx. Putting a font or a margin in this file
  would look right on screen and in the PDF, and be missing in Word.

  What is left here is what only the screen has: the sheet's measure and
  its padding. Both are useless to a converter, which takes its geometry
  from @page.
*/

/* Page geometry - single source of truth for margins. */
@page { margin: 25mm 20mm 25mm 20mm; }

/* On screen only: hold the sheet to the printed measure, otherwise the body
   lines run the full width of the browser and stop matching the PDF. */
.rdoc-sheet { max-width: 170mm; margin: 0 auto; }

/* The tile has no vertical padding of its own, so the text would start on the
   very edge of the sheet. On paper that space comes from @page instead, which
   is why this is screen only. */
@media screen {
	.rdoc-sheet { padding: 40px 0 48px 0; }
}
