.math-contents { border: 1px solid #bae6fd; border-radius: .75rem; padding: 2rem; background: #ffffffed; color: #334155; box-shadow: 0 10px 25px #0c4a6e12; }
.math-contents-header { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.math-eyebrow { color: #075985; font: 600 .75rem/1.6 system-ui, sans-serif; letter-spacing: .08em; margin: 0 0 .45rem; }
.math-contents h2 { font-size: 1.65rem; font-weight: 700; color: #0c4a6e; margin: 0; }
.math-intro { font-size: .95rem; color: #475569; margin-top: .6rem; }
.math-pdf-link { color: #075985; font-size: .85rem; text-decoration: underline; text-underline-offset: .2em; }
.math-note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.math-note-card { border: 1px solid #cbe8f6; border-radius: .65rem; padding: 1.5rem; background: #f3faff; display: flex; flex-direction: column; }
.math-note-card h3 { font: 700 1.35rem/1.5 Georgia, serif; color: #0c4a6e; margin: .3rem 0 .7rem; }
.math-note-card h3 a { text-decoration: none; }
.math-note-card h3 a:hover { text-decoration: underline; text-underline-offset: .15em; }
.math-note-description { color: #475569; font-size: .95rem; line-height: 1.8; margin: 0 0 1rem; }
.math-note-status { color: #155e75; font-size: .8rem; margin: auto 0 1rem; }
.math-note-links { display: flex; flex-wrap: wrap; gap: .75rem 1rem; font-size: .85rem; color: #075985; }
.math-note-links a { text-decoration: underline; text-underline-offset: .2em; }
.math-contents a:focus-visible, .math-reader a:focus-visible, .math-reader summary:focus-visible { outline: 3px solid #0284c7; outline-offset: 4px; }
.math-reader { margin: 0; background: #edf6fc; color: #334155; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.math-reader *, .math-reader *::before, .math-reader *::after { box-sizing: border-box; }
.math-reader::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(#ffffff66,#ffffff99), url('/assets/images/laputa-bg.jpg') center / cover no-repeat; }
.math-reader a { color: #075985; text-underline-offset: .2em; }
.math-reader .site-header { background: #fffffff2; border-bottom: 1px solid #bae6fd; }
.math-reader .site-nav { max-width: 1060px; padding: 1.25rem 1rem; margin: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; }
.math-reader .site-brand { font: bold 1.5rem Georgia, serif; text-decoration: none; }
.math-reader .layout { max-width: 1060px; margin: 0 auto; padding: 2.5rem 1rem; display: grid; grid-template-columns: minmax(0,1fr) 200px; gap: 1.5rem; align-items: start; }
.math-reader article { min-width: 0; background: #fffffff7; border: 1px solid #cbe8f6; border-radius: .85rem; padding: clamp(1.5rem,4vw,3rem); box-shadow: 0 10px 30px #0c4a6e12; }
.math-reader h1 { color: #0c4a6e; font: 700 clamp(2rem,5vw,2.7rem)/1.2 Georgia, serif; margin: .6rem 0 1rem; }
.math-reader .subtitle { font-size: 1.08rem; line-height: 1.7; color: #475569; }
.math-reader .byline { font-size: .85rem; line-height: 1.9; color: #64748b; margin: 1.25rem 0 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid #dbeaf3; }
.math-reader .body { font-size: 1rem; line-height: 1.85; }
.math-reader .body h2 { color: #0c4a6e; font-size: 1.4rem; margin: 2.3rem 0 .9rem; line-height: 1.5; scroll-margin-top: 1rem; }
.math-reader .body h3 { color: #0c4a6e; font-size: 1.05rem; margin: 1.6rem 0 .6rem; }
.math-reader .body p { margin: .8rem 0 1rem; }
.math-reader .body li + li { margin-top: .65rem; }
.math-reader .verdict { padding: 1.15rem 1.3rem; border-left: 3px solid #0284c7; background: #f0f9ff; border-radius: 0 .5rem .5rem 0; }
.math-reader .verdict p { margin: 0; }
.math-reader .equation { font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif; font-size: 1.1rem; line-height: 1.9; padding: .85rem 1rem; margin: 1rem 0; overflow-x: auto; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: .5rem; }
.math-reader .equation > div { white-space: nowrap; }
.math-reader .equation sub, .math-reader .equation sup { font-size: .7em; }
.math-reader .sum { display: inline-grid; grid-template-rows: .8rem 1.3rem .85rem; justify-items: center; vertical-align: middle; line-height: 1; margin: 0 .25rem; }
.math-reader .sum .limit { font-size: .65em; }
.math-reader .sum .symbol { font-size: 1.4em; }
.math-reader .toc { position: sticky; top: 1.5rem; padding: 1.25rem; background: #fffffff2; border: 1px solid #cbe8f6; border-radius: .75rem; font-size: .85rem; }
.math-reader .toc h2 { margin: 0 0 .8rem; font-size: .9rem; color: #0c4a6e; }
.math-reader .toc ol { margin: 0; padding-left: 1.1rem; line-height: 1.7; }
.math-reader .toc li + li { margin-top: .6rem; }
.math-reader .source-links { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.math-reader .button-link { padding: .55rem .9rem; border: 1px solid #7dd3fc; border-radius: .4rem; background: #f0f9ff; font-size: .85rem; }
.math-reader details { border: 1px solid #cbe8f6; border-radius: .5rem; margin: 1rem 0; padding: .8rem; }
.math-reader summary { cursor: pointer; color: #075985; font-weight: 600; }
.math-reader iframe { width: 100%; height: 720px; border: 1px solid #dbeaf3; margin-top: 1rem; background: white; }
.math-reader .table-wrap { overflow-x: auto; }
.math-reader table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.math-reader th, .math-reader td { padding: .7rem; text-align: center; border-bottom: 1px solid #dbeaf3; }
.math-reader th { color: #0c4a6e; background: #f0f9ff; }
.math-reader .article-footer { border-top: 1px solid #dbeaf3; margin-top: 2rem; padding-top: 1rem; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.math-reader .site-footer { padding: 1.5rem; text-align: center; font-size: .8rem; color: #64748b; background: #fffffff0; }
.math-reader .skip { position: absolute; left: 1rem; top: -100px; background: white; padding: .7rem; z-index: 5; }
.math-reader .skip:focus { top: .5rem; }
@media (max-width: 760px) {
 .math-contents { padding: 1.5rem; } .math-note-grid { grid-template-columns: 1fr; }
 .math-reader .layout { grid-template-columns: minmax(0,1fr); padding-top: 1.5rem; }
 .math-reader .toc { position: static; grid-row: 1; }
 .math-reader .toc ol { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
 .math-reader .toc li + li { margin-top: 0; }
 .math-reader iframe { height: 540px; }
}
@media print {
 .math-reader::before, .site-header, .toc, .site-footer, .article-footer, .skip, .math-reader details { display: none; }
 .math-reader .layout { display: block; padding: 0; }
 .math-reader article { box-shadow: none; border: 0; padding: 0; }
}

/* Author's original manuscript: equations and source figures. */
.manuscript-reader .layout { max-width: 1200px; grid-template-columns: minmax(0,1fr) 215px; }
.manuscript-reader .body { line-height: 1.95; }
.manuscript-reader .body mjx-container { display: inline-block; line-height: 0; text-indent: 0; direction: ltr; }
.manuscript-reader .body mjx-container svg { overflow: visible; }
.manuscript-reader .manuscript-equation { display: flex; align-items: center; gap: .7rem; margin: 1.5rem 0; padding: .7rem .25rem; border-bottom: 1px solid #eef3f7; }
.manuscript-reader .formula-scroll { min-width: 0; flex: 1; overflow-x: auto; overflow-y: hidden; padding: .65rem .4rem; color: #172b42; }
.manuscript-reader .formula-scroll > svg { display: block; margin: 0 auto; max-width: none; height: auto; }
.manuscript-reader .equation-number { flex: none; color: #64748b; font: .85rem Georgia,serif; text-decoration: none; }
.manuscript-reader .original-figure { margin: 2rem 0 2.5rem; padding: 1rem; border: 1px solid #dbeaf3; border-radius: .7rem; background: #fff; }
.manuscript-reader .original-figure img { width: 100%; max-width: 620px; height: auto; display: block; margin: 0 auto; }
.manuscript-reader .original-figure figcaption { margin-top: 1.2rem; font-size: .9rem; color: #475569; line-height: 1.8; }
.manuscript-reader .original-figure figcaption strong { color: #0c4a6e; }
.manuscript-reader .original-matrix { overflow-x: auto; margin: 1.5rem 0; padding: .75rem 0; }
.manuscript-reader .original-matrix img { display: block; width: 100%; min-width: 640px; height: auto; }
.manuscript-reader .angle-convention, .manuscript-reader .edition-note { font-size: .88rem; background: #f8fbfd; }
.manuscript-reader .angle-convention p, .manuscript-reader .edition-note p { margin-bottom: .25rem; }
@media (max-width: 820px) {
 .manuscript-reader .layout { grid-template-columns: minmax(0,1fr); }
 .manuscript-reader .toc { position: static; grid-row: 1; }
 .manuscript-reader .toc ol { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
 .manuscript-reader .toc li + li { margin-top: 0; }
 .manuscript-reader .original-figure { padding: .65rem; }
 .manuscript-reader .formula-scroll { font-size: .92rem; }
}
@media print { .manuscript-reader .original-figure { break-inside: avoid; } .manuscript-reader .manuscript-equation { break-inside: avoid; } }

.manuscript-reader .body p mjx-container, .manuscript-reader figcaption mjx-container { max-width: 100%; overflow-x: auto; overflow-y: hidden; vertical-align: middle; padding: .15em 0; }
