/* Math is already present in the HTML. No client-side math engine required. */
.atq-math--inline {
  font-size: .98em;
}
.atq-math--display {
  display: block;
  max-width: 100%;
  margin: 1em 0;
  padding: .5em .2em;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
  font-size: 1.04em;
  font-weight: 400;
}
.atq-math--display > .katex-display {
  width: max-content;
  min-width: 100%;
  margin: .2em auto;
  text-align: center;
}
.nat__content .nat__formula:has(.atq-math--display) {
  overflow: visible;
  padding-block: 0;
}
.nat__formula > .atq-math--display {
  margin-block: 0;
}
/* The visual formula and its accessible MathML must keep KaTeX's own fonts
 * and layout even under article/legacy WordPress typography rules. */

@media (max-width: 600px) {
  .atq-math--display { font-size: .9em; padding-block: .65em; }
}

.formula{font-weight:400;overflow-wrap:normal}
.formula .atq-math--display{margin:0;padding:.35em 0;font-size:1em}
.formula-key{font-size:14px;line-height:1.75;color:var(--muted);margin-top:-8px}
.atq-math--inline{display:inline-block;max-width:100%;vertical-align:baseline;overflow-wrap:normal}
.atq-math .katex{font-weight:400}
.branch-equation{margin:20px 0}
.branch-equation .atq-math--display{margin:.35em 0 .8em;padding:.4em 0;font-size:1em}
.branch-equation .katex-display{text-align:center}
@media(max-width:600px){.formula .atq-math--display,.branch-equation .atq-math--display{font-size:.88em}}


.nat__content .table-wrap{width:100%;overflow-x:auto;margin:34px 0 40px;scrollbar-width:thin}
.nat__content .table-wrap table{min-width:610px}
.nat__content .table-wrap .sizing-example{min-width:0;table-layout:fixed}
.nat__content .sizing-example th:first-child{width:54%}
.nat__content caption{text-align:left;padding:0 0 12px;font-weight:600;color:var(--nat-ink);font-size:15px}
.nat__content .formula-key{--muted:var(--nat-muted)}
.nat__content .application-hero img{width:100%;height:auto}
.nat__content figure img{margin-inline:auto}
.nat__content #figure-03 img{max-height:340px;width:auto;max-width:100%}
.nat__content #figure-sgs-40002 img,.nat__content #figure-bulgaria img{max-height:540px;width:auto;max-width:100%}
.nat__content .sources{font-size:14px}
#image-viewer{max-width:96vw;max-height:94vh;padding:14px;border:0;border-radius:8px;background:white}
#image-viewer::backdrop{background:#101828df}
#image-viewer .viewer-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:12px;font-size:13px}
#image-viewer button{border:1px solid #d1d5db;background:#f7f7f7;border-radius:5px;padding:9px 15px;cursor:pointer}
#image-viewer .viewer-scroll{max-height:79vh;max-width:90vw;overflow:auto}
#image-viewer img{display:block;max-width:none;height:auto}
.nat__content .viewer-hint{font-size:12px;color:var(--nat-muted)}
@media(max-width:680px){.nat__content .table-wrap{margin-block:28px 32px}#image-viewer .viewer-toolbar{flex-wrap:wrap}}
