/* Additional styles for the MAM-parsed and near-Aleppo authored docs.
   Source of truth: py/mb_misc/styles_mam_parsed.css in MAM-basics; copied verbatim
   into the docs tree by styles_mam_parsed.make_css_file_for_mam_parsed(). Edit this
   source and regenerate; do not edit deployed copies. The pages load the shared
   document.css first for English prose. */
em { font-style: normal; font-weight: bold; }
*[lang="hbo"] { direction: rtl; }
abbr[title] {
    text-decoration: none;
}
.ellipsis-title {
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-underline-offset: 0.14em;
    cursor: help;
}
th, td {
    padding-top: 0.45em;
    padding-bottom: 0.45em;
}
table tbody tr:nth-child(even) td {
    background-color: light-dark(#f5f5f5, #1f1f1f);
}
td.wide-col, th.wide-col { max-width: 20em; overflow-wrap: break-word; }
td.template-col, th.template-col { text-align: right; }

pre.json-block {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.85em;
    background: light-dark(#f8f8f8, #1e1e1e);
    border: 1px solid light-dark(#ddd, #444);
    border-radius: 4px;
    padding: 1em;
    line-height: 1.5;
    overflow-x: auto;
    direction: ltr;
    unicode-bidi: normal;
    white-space: pre;
}
.tok-key     { color: light-dark(#0033b3, #9cdcfe); }
.tok-string  { color: light-dark(#067d17, #ce9178); }
.tok-number  { color: light-dark(#1750eb, #b5cea8); }
.tok-keyword { color: light-dark(#7b0070, #569cd6); }
.tok-punct   { color: light-dark(#333333, #d4d4d4); }
.json-block .heb {
    unicode-bidi: isolate;
    direction: rtl;
}
.json-block .pointed {
    font-size: 1.2em;
    line-height: 1.8;
}
.json-block .ellipsis {
    color: light-dark(#888, #666);
    font-style: italic;
    background: light-dark(#e8e8e8, #2e2e2e);
    border-radius: 3px;
    padding: 0 0.2em;
}
.json-block .ln {
    user-select: none;
    color: light-dark(#aaa, #555);
    margin-right: 1em;
    display: inline-block;
    text-align: right;
    min-width: 2ch;
}
.json-notes {
    font-family: sans-serif;
    font-size: 0.9em;
    margin: 0.3em 0 1em 0;
    padding: 0.4em 0.6em 0.4em 0.8em;
    border-left: 3px solid light-dark(#ccc, #444);
    background: light-dark(#f5f5f5, #2a2a2a);
    overflow: hidden;
}
.json-notes dt {
    font-weight: bold;
    color: light-dark(#555, #aaa);
    float: left;
    clear: left;
    margin-right: 0.6em;
    margin-top: 0.3em;
}
.json-notes dd {
    margin-left: 5em;
    margin-top: 0.3em;
    margin-bottom: 0;
}
