/* 0038: the notice-board sheet (assets/js/sheet.js). Printed by /manage/ and the platform console (<html data-print="sheet">
   + .sheet-host, the rest of the page hidden), and inlined by the Worker into the PDF it renders (worker/files.js), so both are
   the same A4. Always the light theme's brand colours (tokens.css light values; it gets printed). No background colours to
   rely on: browsers drop them in print unless asked, so the brand is the logo (SVG fills print) and coloured text and rules. */
.sheet {
  --sh-green: #1A3A2A; --sh-gold: #C4972A; --sh-ink: #2C2C2C; --sh-muted: #55554C; --sh-rule: #C9C3B6;
  box-sizing: border-box; color: var(--sh-ink); background: #fff; font: 12pt/1.5 'DM Sans', sans-serif;
}
.sheet *, .sheet *::before, .sheet *::after { box-sizing: inherit; }
:where(.sheet) :where(p, h1) { margin: 0; }   /* no weight: each part sets its own */
.sheet-head { display: flex; align-items: center; gap: 4mm; padding-bottom: 3mm; margin-bottom: 7mm; border-bottom: 0.8mm solid var(--sh-gold); }
.sheet-logo { inline-size: 15mm; block-size: 15mm; flex: none; }
.sheet-brand { display: flex; flex-direction: column; gap: 0.5mm; }
.sheet-brand-en { font: 600 17pt/1.1 'Cormorant Garamond', serif; color: var(--sh-green); letter-spacing: .01em; }
.sheet-brand-ar { font: 700 15pt/1.3 'Amiri', serif; color: var(--sh-green); }
.sheet-cols { position: relative; display: grid; grid-template-columns: 1fr; gap: 10mm; }
.sheet[data-cols="2"] .sheet-cols { grid-template-columns: 1fr 1fr; }
/* the line between two languages: in the middle whichever way the page reads */
.sheet[data-cols="2"] .sheet-cols::before { content: ''; position: absolute; inset-block: 0; left: 50%; border-left: 0.3mm solid var(--sh-rule); }
.sheet-col { min-inline-size: 0; overflow-wrap: anywhere; }
.sheet-masjid { font-size: 15pt; font-weight: 600; line-height: 1.35; color: var(--sh-green); }
.sheet-date { margin-block: 1mm 4mm; font-size: 10pt; color: var(--sh-muted); }
.sheet-jumuah { display: inline-block; margin-block-end: 5mm; padding: 1mm 3mm; border: 0.4mm solid var(--sh-gold); border-radius: 2mm; font-weight: 600; }
.sheet-title { margin-block-end: 6mm; font-size: 28pt; font-weight: 700; color: var(--sh-green); }
.sheet-body { margin-block-end: 6mm; font-size: 17pt; white-space: pre-line; }
.sheet-details { font-size: 14pt; white-space: pre-line; }
/* two languages side by side: smaller, so each column still reads from a step away on a notice board */
.sheet[data-cols="2"] .sheet-title { font-size: 21pt; }
.sheet[data-cols="2"] .sheet-body { font-size: 13.5pt; }
.sheet[data-cols="2"] .sheet-details { font-size: 12pt; }
.sheet-auto { margin-block-start: 4mm; font-size: 8.5pt; color: var(--sh-muted); }
.sheet-foot { margin-block-start: 12mm; padding-block-start: 3mm; border-top: 0.3mm solid var(--sh-rule); font-size: 9pt; color: var(--sh-muted); text-align: center; }
/* each script in its own face, as the pages (tokens.css) */
.sheet [lang="en"] { font-family: 'DM Sans', sans-serif; }
.sheet [lang="ur"] { font-family: 'Noto Nastaliq Urdu', serif; line-height: 2.15; }
.sheet [lang="ar"] { font-family: 'Noto Naskh Arabic', 'Amiri', serif; line-height: 1.8; }
.sheet [lang="hi"] { font-family: 'Noto Sans Devanagari', 'DM Sans', sans-serif; line-height: 1.65; }
.sheet [lang="te"] { font-family: 'Noto Sans Telugu', 'DM Sans', sans-serif; line-height: 1.7; }
.sheet .sheet-head, .sheet .sheet-brand-en { font-family: 'Cormorant Garamond', serif; }
.sheet .sheet-brand-ar { font-family: 'Amiri', serif; line-height: 1.3; }
.sheet h1.sheet-title { line-height: 1.3; }
/* Nastaliq is tall: smaller titles, more room between lines */
.sheet .sheet-col[lang="ur"] .sheet-title:not([lang]), .sheet h1.sheet-title[lang="ur"] { font-size: 23pt; line-height: 2; }
.sheet[data-cols="2"] .sheet-col[lang="ur"] .sheet-title:not([lang]), .sheet[data-cols="2"] h1.sheet-title[lang="ur"] { font-size: 17pt; }
.sheet .sheet-col[lang="ur"] .sheet-masjid { font-size: 13pt; }
.sheet-doc { margin: 0; background: #fff; }

/* The page: hidden on screen, alone in print. */
.sheet-host { display: none; }
@media print {
  :root[data-print="sheet"] { color-scheme: light; }
  :root[data-print="sheet"] body { background: none; padding: 0; margin: 0; }
  :root[data-print="sheet"] body::before, :root[data-print="sheet"] body::after { display: none; }   /* the page's noise and season overlays (landing.css) */
  :root[data-print="sheet"] body > :not(.sheet-host) { display: none; }
  :root[data-print="sheet"] .sheet-host { display: block; }
}
@page { size: A4; margin: 14mm 12mm; }
