.scale-post .post-deck {
    max-width: 680px;
    margin: 14px 0 0;
    color: #555;
    font-family: var(--notes-serif);
    font-size: 19px;
    font-style: italic;
    line-height: 1.45;
}

.scale-post .post-body h2[id],
.scale-post .post-body h3[id] {
    scroll-margin-top: 90px;
}

.scale-post .post-body > ul {
    margin: 0.8em 0 1.2em;
    padding-left: 1.4em;
}

.scale-post .post-body > ul > li + li {
    margin-top: 0.6em;
}

.scale-post .video-chapters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 12px 0 0;
}

.scale-post .video-chapters button {
    padding: 6px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #555;
    font-family: var(--notes-serif);
    font-size: 17px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.scale-post .video-chapters button[aria-current="step"] {
    border-bottom-color: #80534b;
    color: #222;
}

.scale-post .video-chapters button:focus-visible {
    outline: 2px solid #80534b;
    outline-offset: 3px;
}

.scale-post .post-body figure {
    --figure-display-width: 740px;
    width: min(var(--figure-display-width), 100%);
    max-width: 100%;
    margin: 32px auto;
}

.scale-post .post-body .figure-compact {
    --figure-display-width: 480px;
}

.scale-post .post-body .figure-strategy {
    --figure-display-width: 560px;
}

.scale-post .post-body .figure-mat {
    --figure-display-width: 560px;
}

.scale-post .figure-mat .figure-image {
    max-width: 200px;
    margin: 0 auto;
}

.scale-post .mat-row + .mat-row {
    margin-top: 24px;
}

.scale-post .post-body .mat-row-title {
    margin: 0 0 4px;
    font-size: 1em;
    font-weight: bold;
    text-align: left;
}

.scale-post .mat-stages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.scale-post .mat-stage {
    min-width: 0;
}

.scale-post .mat-stage a {
    display: block;
    cursor: zoom-in;
}

.scale-post .mat-stage a:focus-visible {
    outline: 2px solid #80534b;
    outline-offset: 3px;
}

.scale-post .post-body .mat-stage-label {
    margin: 4px 0 0;
    font-size: 1em;
    line-height: 1.3;
    text-align: center;
    text-indent: 0;
    hyphens: none;
}

.scale-post .post-body .figure-edit {
    --figure-display-width: 660px;
}

.scale-post .post-body .figure-overview {
    --figure-display-width: 740px;
}

.scale-post .post-body .figure-animation {
    --figure-display-width: 600px;
}

.scale-post .figure-image {
    width: 100%;
}

.scale-post .post-body .figure-image a {
    display: block;
    cursor: zoom-in;
}

.scale-post .figure-image a:focus-visible {
    outline: 2px solid #80534b;
    outline-offset: 3px;
}

.scale-post .post-body figure img,
.scale-post .post-body figure video {
    display: block;
    width: 100%;
    height: auto;
}

.scale-post .post-body figcaption {
    max-width: 740px;
    margin: 12px auto 0;
    color: #555;
    font-size: 15px;
    line-height: 1.45;
}

.scale-post .math-inline,
.scale-post .post-equation {
    font-family: var(--notes-serif);
}

.scale-post .math-inline {
    white-space: nowrap;
    font-size: 1em;
}

.scale-post .post-equation {
    margin: 18px 0;
    padding: 10px 12px;
    font-size: 1em;
    line-height: 1.8;
    text-align: center;
}

.scale-post .post-equation math {
    font-size: inherit;
}

.scale-post .post-equation sub,
.scale-post .post-equation sup {
    font-size: 65%;
}

.scale-post .post-nav {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #dfe3e7;
}

.scale-post .post-references {
    margin-top: 36px;
    padding-top: 4px;
    border-top: 1px solid #dfe3e7;
    font-size: 16px;
    line-height: 1.5;
}

.scale-post .post-reference-list {
    margin: 0;
    padding-left: 2em;
}

.scale-post .post-reference-list li {
    margin: 0 0 14px;
    padding-left: 0.3em;
    scroll-margin-top: 90px;
}

.scale-post .post-reference-list li::marker {
    content: "[" counter(list-item) "] ";
}

.scale-post .post-reference-list li:target {
    background-color: #f7f1e8;
}

.scale-post .post-ref {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .scale-post .post-deck {
        font-size: 18px;
    }
}
