/* The print versions, in Thread: white paper, the logo and the Hijri date at the head, the words set
   left, the address at the foot. Colours come from tokens-print.css (the light themes only). On screen the
   sheet sits on the panel colour with a few tools above it; the tools never print. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--panel); color: var(--ink); font: 400 11pt/1.6 var(--font-body); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ic { width: 1.1em; height: 1.1em; }
.pr-tools { position: sticky; top: 0; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; padding: 10px 16px; background: var(--page); border-bottom: 1px solid var(--rule); font: 500 15px/1.3 var(--font-body); z-index: 2; }
.pr-tools a { color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.pr-tools span { color: var(--muted); }
.pr-tools button { display: inline-flex; gap: 8px; align-items: center; border: 0; border-radius: var(--radius-box); padding: 10px 18px; background: var(--accent); color: var(--on-accent); font: 600 15px/1 var(--font-body); cursor: pointer; }
.pr-tools :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pr-page { background: var(--page); margin: 28px auto 60px; box-shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; }
.pr-a5 .pr-page { width: 148mm; min-height: 210mm; padding: 13mm 12mm; }
.pr-a4 .pr-page { width: 210mm; min-height: 297mm; padding: 18mm 20mm; }
.pr-head { display: flex; justify-content: space-between; align-items: center; gap: 6mm; padding-bottom: 4mm; margin-bottom: 8mm; border-bottom: 0.3mm solid var(--rule); }
.pr-logo { display: block; height: 9mm; color: var(--accent); }
.pr-a4 .pr-logo { height: 11mm; }
.pr-logo .logo { height: 100%; width: auto; display: block; }
.pr-date { font-size: 8.5pt; color: var(--muted); white-space: nowrap; }
h1 { font: 700 22pt/1.14 var(--font-head); margin: 0 0 3mm; }
.pr-a5 h1 { font-size: 17pt; }
.pr-by { font-weight: 600; margin: 0 0 6mm; }
.prose p { margin: 0 0 0.8em; orphans: 3; widows: 3; }
.prose h2 { font: 700 13pt/1.2 var(--font-head); color: var(--accent); margin: 1.2em 0 0.4em; break-after: avoid; }
.pr-a5 .prose { font-size: 10pt; }
.pr-src { color: var(--muted); }
.pr-foot { margin-top: auto; padding-top: 6mm; border-top: 0.3mm solid var(--rule); font-size: 8.5pt; color: var(--muted); }
/* An advice card: the saying in the middle of the sheet, set left like the site. */
.pr-card { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 8mm; }
.pr-card .q { font-family: var(--font-head); line-height: 1.3; margin: 0 0 7mm; }
.pr-card .q p { margin: 0 0 0.45em; }
.pr-card .q.open > p:first-child::before { content: "“"; color: var(--accent); }
.pr-a5 .q-l { font-size: 23pt; } .pr-a5 .q-m { font-size: 18pt; } .pr-a5 .q-s { font-size: 14.5pt; }
.pr-a4 .q-l { font-size: 32pt; } .pr-a4 .q-m { font-size: 25pt; } .pr-a4 .q-s { font-size: 20pt; }
.pr-card .pr-by { margin: 0 0 1mm; }
@media print {
  body { background: none; }
  .pr-tools { display: none; }
  .pr-page { margin: 0; box-shadow: none; width: auto !important; min-height: 0; padding: 0 !important; }
  body.pr-advice .pr-page { min-height: calc(100vh - 1mm); }
}
/* Arabic as on the site: Noto Naskh Arabic at 1.15×, last so it stands over the headings' own font. */
html [lang="ar"] { font-family: var(--font-arabic); font-size: 1.15em; }
html :is(p, h1, h2, li, blockquote)[lang="ar"] { line-height: 1.75; }
html :is(span, cite)[lang="ar"] { line-height: 1; }
