/* eg-doc-sheet.css — the document SHEET: one look for every screen that shows a face.
   Carved verbatim from dashboard/vault/css/eg-vault-05-docface.css (13 Sep 2026) so the
   vault read view and the public reader at /doc/ draw the same sheet from the same rules —
   class names keep their vdf- prefix for that reason. Loads BEFORE eg-vault-05-docface.css
   on the vault (the vault still narrows the sheet at its own breakpoint) and on its own at
   /doc/. The type scale arrives as CSS vars on .vdf-sheet (EGDocType.cssVars). */
/* min-height is the OTHER half of the align-items fix. flex-start stops a long document
   overflowing its page, but it also lets a SHORT one stop wherever its text ends, leaving grey
   halfway down the screen — which reads as broken even though it is correct. 100% resolves
   against .vdf-page's content box, so the sheet fills the visible area and still grows past it.
   A page that is shorter than the screen is not a page. */
.vdf-sheet { width: 100%; max-width: var(--egdoc-sheet-w, 794px); min-height: 100%; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 10px; box-shadow: 0 8px 30px rgba(15,23,42,.07); padding: 40px 48px; }
/* EDIT composes on the same sheet as READ — a width you edit at that is not the width that
   prints is the whole wonky-PDF problem in miniature (Track B step 2). */
.vdf-wrap.is-edit .vdf-sheet { max-width: var(--egdoc-sheet-w, 794px); }
/* the cover block — the presentation rendered as the .docx will build it */
.vdf-cover { padding: 26px 46px 18px; border-bottom: 2px solid var(--eg-vault, #1E3A5F); margin-bottom: 6px;
    font-family: var(--egdoc-font, Georgia, serif); }
.vdf-cv-logo { max-width: 200px; max-height: 90px; object-fit: contain; display: block; }
.vdf-cv-org { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
    color: #2c7fa8; margin: 10px 0 4px; }
.vdf-cv-title { display: block; font-size: 1.65rem; font-weight: 700; color: var(--eg-vault, #1E3A5F); line-height: 1.2; }
.vdf-cv-above.vdf-cv-a-centre { text-align: center; }
.vdf-cv-above.vdf-cv-a-centre .vdf-cv-logo { margin: 0 auto; }
.vdf-cv-above.vdf-cv-a-right { text-align: right; }
.vdf-cv-above.vdf-cv-a-right .vdf-cv-logo { margin-left: auto; }
.vdf-cv-beside { display: flex; align-items: center; gap: 18px; }
.vdf-cv-beside .vdf-cv-text { flex: 1; min-width: 0; }
.vdf-cv-beside .vdf-cv-logo { max-width: 140px; flex: none; }
.vdf-nocover { border-bottom-width: 1px; padding: 14px 46px 10px; }
.vdf-nocover .vdf-cv-title { font-size: 1.15rem; }
/* letterhead: no cover, the logo at the top of page 1 on its placement's side (Dom, 4 Nov 2026) */
.vdf-lh { margin: 0 0 12px; }
.vdf-lh .vdf-cv-logo { max-height: 56px; }
.vdf-lh-a-centre .vdf-cv-logo { margin: 0 auto; }
.vdf-lh-a-right .vdf-cv-logo { margin-left: auto; }

/* header/footer zones — edit the page chrome in place, same grammar as the bench editor */
/* Read mode shows the same zones as edit, minus the editing. No dashed edge (nothing here
   invites a click) and no placeholder — an empty zone renders nothing at all. */
.vdf-zone-ro { border-bottom: none; color: #4b5563; }
.vdf-zone-f.vdf-zone-ro { border-top: none; }
.vdf-zone { font-size: 0.74rem; color: #6b7280; padding: 8px 14px; outline: none;
    border-bottom: 1px dashed #e2e8f0; }
.vdf-zone:empty::before { content: attr(data-ph); color: #c3c9d4; }
.vdf-zone-f { border-bottom: none; border-top: 1px dashed #e2e8f0; }
/* READ wears the presentation the way EDIT and the .docx do (30 Sep). These rules hard-coded
   Georgia, a 1.3 line and a navy heading, so a document set in Arial, relaxed, in green read
   back in Georgia, tight, in navy - in the vault AND on /doc/ - while the editor and the filed
   file both honoured the choice. Same vars as .egde-surface; the fallbacks are the old values. */
.vdf-read { font-family: var(--egdoc-font, Georgia, serif); font-size: var(--egdoc-body, 11pt);
    line-height: var(--egdoc-line, 1.3); color: #1f2430; }
.vdf-read h1, .vdf-read h2, .vdf-read h3 { font-weight: 700; color: var(--egdoc-accent, #16264c);
    margin: var(--egdoc-head-before, 10pt) 0 var(--egdoc-head-after, 4pt); line-height: 1.25; }
.vdf-read h1 { font-size: var(--egdoc-h1, 16pt); } .vdf-read h2 { font-size: var(--egdoc-h2, 13.5pt); }
.vdf-read h3 { font-size: var(--egdoc-h3, 12pt); }
.vdf-read h1:first-child, .vdf-read h2:first-child, .vdf-read h3:first-child { margin-top: 0; }
.vdf-read p { margin: 0 0 var(--egdoc-para-after, 5pt); }
.vdf-read ul, .vdf-read ol { margin: 0 0 var(--egdoc-para-after, 5pt); padding-left: 24px; }
.vdf-read li { margin: 0 0 2pt; }
.vdf-read a { color: #1155cc; }
.vdf-read table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.vdf-read th, .vdf-read td { border: 1px solid #d7dce5; padding: 6px 9px; text-align: left; font-size: var(--egdoc-body, 11pt); }
