/* Report rendering, shared by the web view (style.css sets the dark theme) and the PDF (app/export.py sets the print theme). */
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.md { font-family: "Plex Arabic", "Segoe UI", "DejaVu Sans", Tahoma, sans-serif; }
.md h1 { font-size: 1.45em; margin: .2em 0 .5em; }
.md h2 { font-size: 1.2em; margin: 1.3em 0 .5em; padding-bottom: .2em; border-bottom: 1px solid var(--line); }
.md h3 { font-size: 1.05em; margin: 1.1em 0 .4em; }
.md p, .md ul, .md ol { margin: .5em 0; }
.md ul, .md ol { padding-inline-start: 1.4em; }
.md a[href^="http"] { overflow-wrap: anywhere; }
.md blockquote { margin: .6em 0; padding: .3em .9em; border-inline-start: 3px solid var(--line); color: var(--muted); }
.md code { background: var(--panel-2); border-radius: 5px; padding: 0 .3em; font-size: .9em; direction: ltr; unicode-bidi: isolate; }
.md pre { background: var(--panel-2); padding: 10px; border-radius: 8px; overflow-x: auto; direction: ltr; }
.md pre code { background: none; padding: 0; }
.md .table-scroll { overflow-x: auto; margin: .6em 0; }
.md table { border-collapse: collapse; font-size: .9em; min-width: 100%; }
.md th, .md td { border: 1px solid var(--line); padding: .35em .6em; vertical-align: top; text-align: start; }
.md th { background: var(--panel-2); }

/* bidi: Latin runs (names, model numbers, units) and citations are isolated so they never reorder or flip */
.md bdi { unicode-bidi: isolate; }
.md a.cite { font-size: .72em; vertical-align: super; line-height: 0; text-decoration: none; white-space: nowrap;
  direction: ltr; unicode-bidi: isolate; margin-inline: 1px; }
.md ul.sources { list-style: none; padding-inline-start: 0; }
.md ul.sources li { direction: ltr; text-align: left; unicode-bidi: isolate; margin: .25em 0; }

/* the one-page summary ends here: a separator on screen, a new page in the PDF */
.md .page-break { border-top: 2px dashed var(--line); margin: 1.4em 0; }
@media print { .md .page-break { border: 0; margin: 0; break-after: page; } }
.md input[type="checkbox"] { margin-inline-end: .4em; vertical-align: middle; }
.md li:has(> input[type="checkbox"]) { list-style: none; }

/* paged media (PDF): keep rows, headings and short blocks together */
.md tr, .md blockquote, .md li { break-inside: avoid; }
.md thead { display: table-header-group; }
.md h1, .md h2, .md h3 { break-after: avoid; }
