/* Reading styles are scoped to authored content, not cards or comment controls. */
.entry-content{
  --code-surface:#f1f3f7;
  --code-text:#28354a;
  font-family:var(--font-sans,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif);
  font-size:1.0625rem;
  line-height:1.85;
  color:var(--text);
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:normal;
  line-break:strict;
}
html[data-theme="dark"] .entry-content{--code-surface:#141a24;--code-text:#e1e7f0}
.is-post .article-body>#entry-content{max-width:var(--reading-measure,46rem);margin-inline:auto}
.entry-content>*{max-width:100%;min-width:0}
.entry-content>*:first-child{margin-top:0}
.entry-content>*:last-child{margin-bottom:0}

.entry-content :is(h1,h2,h3,h4,h5,h6){
  margin:2em 0 .75em;
  line-height:1.45;
  letter-spacing:0;
  font-weight:700;
  text-wrap:pretty;
  scroll-margin-top:110px;
}
.entry-content h1{font-size:1.85em}
.entry-content h2{font-size:1.5em;padding-bottom:.35em;border-bottom:1px solid var(--line)}
.entry-content h3{font-size:1.25em}
.entry-content h4{font-size:1.1em}
.entry-content h5{font-size:1em}
.entry-content h6{font-size:.95em;color:var(--text-2)}
.entry-content .has-heading-anchor{position:relative;padding-inline-end:1.3em}
.entry-content a.heading-anchor{position:absolute;inset-inline-end:0;top:.08em;display:inline-flex;align-items:center;justify-content:center;width:1.3em;min-height:1.45em;color:var(--text-2);font-size:.8em;font-weight:500;text-decoration:none;opacity:0;transition:opacity .18s ease,color .18s ease}
.entry-content .has-heading-anchor:is(:hover,:focus-within)>.heading-anchor{opacity:1}
.entry-content a.heading-anchor:hover{color:var(--brand);text-decoration:none}
.entry-content a.heading-anchor:focus-visible{opacity:1}
.entry-content :is(h1,h2,h3,h4,h5,h6)+:is(h1,h2,h3,h4,h5,h6){margin-top:1.2em}
.entry-content :is(p,ul,ol,blockquote,pre,table,figure,dl,details,.entry-table-scroll){margin:1.05em 0}
.entry-content a{color:var(--brand);text-decoration:underline;text-decoration-thickness:.06em;text-underline-offset:.22em;text-decoration-skip-ink:auto}
.entry-content a:hover{text-decoration-thickness:.1em}
.entry-content :is(a,summary):focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:3px}
.entry-content strong{font-weight:700}
.entry-content :is(small,sub,sup){font-size:.78em}
.entry-content :is(sub,sup){line-height:0;position:relative;vertical-align:baseline}
.entry-content sup{top:-.45em}
.entry-content sub{bottom:-.2em}
.entry-content mark{background:var(--brand-soft);color:inherit;padding:.05em .2em;border-radius:3px}
.entry-content abbr[title]{text-decoration:underline dotted;text-underline-offset:.2em;cursor:help}

.entry-content :is(ul,ol){padding-inline-start:1.65em;list-style-position:outside}
.entry-content ol{padding-inline-start:max(1.65em,calc(var(--list-marker-width,2ch) + .85em))}
.entry-content li{padding-inline-start:.2em;margin:.35em 0}
.entry-content li::marker{color:var(--text-2);font-variant-numeric:tabular-nums}
.entry-content li>p{margin:.45em 0}
.entry-content li>:is(ul,ol){margin:.35em 0}
.entry-content li>:first-child{margin-top:0}
.entry-content li>:last-child{margin-bottom:0}
.entry-content .task-list-item{list-style:none}
.entry-content input[type="checkbox"]{width:1em;height:1em;margin:0 .4em 0 0;vertical-align:-.08em;accent-color:var(--brand)}
.entry-content dt{font-weight:650;margin-top:.8em}
.entry-content dd{margin:.3em 0 .8em 1.5em}
.entry-content blockquote{
  margin:1.25em 0;
  padding:.85em 1.15em;
  border-inline-start:3px solid var(--brand);
  border-radius:0 12px 12px 0;
  background:var(--bg-soft);
  color:var(--text-2);
}
.entry-content blockquote>:first-child{margin-top:0}
.entry-content blockquote>:last-child{margin-bottom:0}
.entry-content blockquote blockquote{margin:.8em 0;border-color:var(--line-strong);background:transparent}

.entry-content :is(code,kbd,samp,pre){font-family:var(--font-mono,ui-monospace,"SFMono-Regular",Menlo,Consolas,"Liberation Mono",monospace)}
.entry-content :is(code,samp){font-size:.88em;line-height:inherit;padding:.12em .35em;border-radius:5px;background:var(--code-surface);color:var(--code-text);box-decoration-break:clone;-webkit-box-decoration-break:clone}
.entry-content kbd{font-size:.82em;padding:.12em .4em;border:1px solid var(--line-strong);border-bottom-width:2px;border-radius:5px;background:var(--bg-soft);white-space:nowrap}
.entry-content pre{
  max-width:100%;
  overflow-x:auto;
  padding:1.1em 1.25em;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--code-surface);
  color:var(--code-text);
  font-size:.875em;
  line-height:1.7;
  tab-size:4;
  white-space:pre;
  overflow-wrap:normal;
  word-break:normal;
  font-variant-ligatures:none;
}
.entry-content pre :is(code,samp){font:inherit;white-space:inherit;overflow-wrap:normal;word-break:normal;padding:0;border:0;background:none;color:inherit;box-decoration-break:slice;-webkit-box-decoration-break:slice}
.entry-content :is(pre,.entry-table-scroll,mjx-container[display="true"]){scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;overscroll-behavior-x:contain}
.entry-content :is(pre,.entry-table-scroll,mjx-container)[tabindex="0"]:focus-visible{outline:2px solid var(--brand);outline-offset:3px}

/* The wrapper keeps real table semantics; without JS the table itself scrolls. */
.entry-content table{display:block;width:100%;max-width:100%;border-collapse:collapse;overflow-x:auto;font-size:.92em;line-height:1.65}
.entry-content .entry-table-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:12px}
.entry-content .entry-table-scroll>table{display:table;max-width:none;margin:0;border-style:hidden;overflow:visible}
.entry-content :is(th,td){min-width:6em;padding:.8em 1em;border:1px solid var(--line);vertical-align:top}
.entry-content :is(th,td):not([align]){text-align:start}
.entry-content th{font-weight:650;background:var(--brand-soft)}
.entry-content tbody tr:nth-child(even){background:var(--bg-soft)}
.entry-content :is(th,td)>:first-child{margin-top:0}
.entry-content :is(th,td)>:last-child{margin-bottom:0}
.entry-content caption{caption-side:top;text-align:start;color:var(--text-2);padding:.75em 1em}

.entry-content :is(figure,picture){display:block;max-width:100%}
.entry-content figure{margin-inline:0}
.entry-content img:not(.coran-emoji img){
  max-width:100% !important;
  min-width:0 !important;
  height:auto !important;
  margin-inline:auto;
  border-radius:10px;
  object-fit:contain;
}
.entry-content :is(video,iframe){max-width:100%;border-radius:10px}
.entry-content video{height:auto}
.entry-content figcaption{text-align:center;font-size:.85em;line-height:1.65;color:var(--text-2);margin-top:.65em}
.entry-content mjx-container{max-width:100%;line-break:auto}
.entry-content mjx-container[display="true"]{margin:1.25em 0;overflow-x:auto;overflow-y:hidden;padding:.5em .15em}
.entry-content mjx-container[display="true"]>*{min-width:max-content}
.entry-content hr{border:0;border-top:1px solid var(--line-strong);margin:2em 0}
.entry-content details{border:1px solid var(--line);border-radius:12px;padding:.8em 1em;background:var(--bg-soft)}
.entry-content summary{cursor:pointer;font-weight:600}
.entry-content details[open]>summary{margin-bottom:.7em}
.entry-content details>:last-child{margin-bottom:0}
.entry-content .footnotes{margin-top:2.25em;font-size:.88em;line-height:1.75;color:var(--text-2)}
.entry-content .footnotes li{scroll-margin-top:110px}
.entry-content :is(a[rev="footnote"],.footnote-backref){padding-inline:.2em;text-decoration:none}
.entry-content :target{scroll-margin-top:110px}

@media(max-width:640px){
  .entry-content{font-size:1rem;line-height:1.85}
  .entry-content h1{font-size:1.65em}
  .entry-content h2{font-size:1.4em}
  .entry-content h3{font-size:1.2em}
  .entry-content pre{padding:.9em 1em}
  .entry-content :is(th,td){padding:.7em .8em}
  .entry-content blockquote{padding:.75em .9em}
}
@media(hover:none){.entry-content a.heading-anchor{opacity:.55}}
@media(prefers-reduced-motion:reduce){.entry-content a.heading-anchor{transition:none}}
@media print{
  .entry-content{font-size:11pt;line-height:1.65;color:#111;max-width:none!important}
  .entry-content :is(h1,h2,h3,h4,h5,h6){break-after:avoid-page}
  .entry-content .has-heading-anchor{padding-inline-end:0}
  .entry-content a.heading-anchor{display:none}
  .entry-content :is(p,li){orphans:3;widows:3}
  .entry-content :is(pre,.entry-table-scroll){overflow:visible}
  .entry-content pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f6f6;color:#111}
  .entry-content .entry-table-scroll>table{max-width:100%;table-layout:fixed;font-size:.85em}
  .entry-content :is(th,td){min-width:0;overflow-wrap:anywhere}
  .entry-content tr{break-inside:avoid}
  .entry-content img{max-height:24cm;break-inside:avoid}
}
