/*
 * Generated post-page components and rich-content helpers.
 *
 * Keep site-wide typography in typography.css and reusable blog chrome in
 * blog.css. Rules here may depend on markup emitted from post Markdown.
 */

.main-content simple-model-viewer {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: min(600px, 70vh);
    margin: 1.8rem 0;
    box-sizing: border-box;
    background-color: #eeeeee;
}
.post-image-lightbox-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    line-height: 0;
    text-align: inherit;
}

.post-image-lightbox-trigger:focus-visible {
    border-radius: 6px;
    outline: 3px solid rgba(21, 156, 120, 0.42);
    outline-offset: 4px;
}

/* Preserve the established article rhythm formerly occupied by the duplicate image. */
.post-image-lightbox-layout-reserve {
    display: block;
    width: 100%;
    margin: calc(1.8rem - 0.4375rem) auto;
    aspect-ratio: 3400 / 628;
}

html.post-image-lightbox-open,
html.post-image-lightbox-open body {
    overflow: hidden;
}

.post-image-lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: clamp(0.625rem, 2.6vw, 3rem);
    border: 0;
    color: #eef5f7;
    background: transparent;
    overflow: auto;
}

.post-image-lightbox[open] {
    display: grid;
    place-items: center;
}

.post-image-lightbox::backdrop {
    background: rgba(5, 10, 15, 0.86);
    backdrop-filter: blur(8px) saturate(0.7);
}

.post-image-lightbox-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 1140px);
    min-height: 4rem;
    padding: clamp(0.35rem, 0.8vw, 0.7rem);
    border: 1px solid rgba(229, 240, 244, 0.18);
    border-radius: 12px;
    background: rgba(10, 16, 22, 0.94);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.main-content .post-image-lightbox-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100dvh - clamp(3.25rem, 8vw, 8rem));
    margin: 0 auto;
    border-radius: 7px;
    object-fit: contain;
}

.post-image-lightbox-close {
    position: absolute;
    top: clamp(0.65rem, 1.3vw, 1rem);
    right: clamp(0.65rem, 1.3vw, 1rem);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    padding: 0;
    border: 1px solid rgba(238, 245, 247, 0.32);
    border-radius: 50%;
    color: #f7fbfc;
    background: rgba(8, 14, 19, 0.74);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.post-image-lightbox-close:hover {
    border-color: rgba(77, 215, 180, 0.72);
    color: #8debd3;
    background: rgba(8, 14, 19, 0.92);
    transform: translateY(-1px);
}

.post-image-lightbox-close:focus-visible {
    outline: 3px solid rgba(77, 215, 180, 0.5);
    outline-offset: 3px;
}

@media (min-width: 1920px) {
    .post-image-lightbox-frame {
        width: min(100%, 1600px);
    }
}

@media (min-width: 2560px) {
    .post-image-lightbox-frame {
        width: min(100%, 1920px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .post-image-lightbox-close {
        transition: none;
    }
}
#threeCanvas {
width: 50%;
height: 50%;
margin-bottom: 20px;
}
.main-content h2,
.main-content h3 {
    scroll-margin-top: 6.5rem;
}

.post-end-matter {
    margin-top: clamp(3.8rem, 7vw, 5.8rem);
}

.post-author-note {
    --post-author-portrait-matte: #d9d9d9;
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 1.3rem;
    align-items: center;
    padding-top: 1.4rem;
    border-top: 1px solid var(--blog-color-line);
}

.post-author-portrait {
    display: block;
    width: 5.25rem;
    height: 5.25rem;
    margin: 0;
    border: 1px solid var(--blog-color-line-soft);
    border-radius: 50%;
    background: var(--post-author-portrait-matte);
    object-fit: cover;
}

.post-author-copy {
    min-width: 0;
}

.post-author-kicker {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--blog-color-accent-strong);
    font-family: var(--blog-mono);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.post-author-copy h2 {
    margin: 0;
    color: var(--blog-color-heading);
    font-family: var(--blog-heading);
    font-size: 1.22rem;
    font-weight: 720;
    letter-spacing: -0.028em;
    line-height: 1.25;
}

.post-author-copy p {
    max-width: 60ch;
    margin: 0.42rem 0 0;
    color: var(--blog-color-text);
    font-size: 0.84rem;
    line-height: 1.58;
}

.post-author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-top: 0.72rem;
}

.post-author-links a {
    color: var(--blog-color-muted);
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration-line: underline;
    text-decoration-color: var(--blog-color-line);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.24em;
}

.post-author-links a:hover,
.post-author-links a:focus-visible {
    color: var(--blog-color-accent-strong);
    text-decoration-color: currentColor;
}

.breadcrumbs {
    margin: 0.85rem 0 0.8rem;
    color: var(--blog-color-muted);
    font-family: var(--blog-sans);
    font-size: 0.76rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.breadcrumbs li + li::before {
    content: "/";
    color: #a2acb6;
}

.breadcrumbs a {
    color: #52616f;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #159c78;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 1rem;
}

.post-tags .post-tag {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.76);
    background: transparent;
    font-family: var(--blog-sans);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.post-tags .post-tag-separator {
    display: inline-flex;
    align-items: center;
    margin: 0 0.55rem;
    color: rgba(255, 255, 255, 0.42);
    text-decoration: none;
}

.post-tags a.post-tag:hover {
    color: #fff;
}

.series-card {
    border: 0;
    border-top: 1px solid var(--blog-color-line);
    border-bottom: 1px solid var(--blog-color-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.series-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 0.72rem;
    align-items: center;
    padding: 0.88rem 0;
    cursor: pointer;
    list-style: none;
}

.series-summary::-webkit-details-marker {
    display: none;
}

.series-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--blog-color-accent);
    font-size: 0.95rem;
}

.series-summary-copy {
    display: grid;
    min-width: 0;
    gap: 0.14rem;
}

.series-kicker {
    color: var(--blog-color-accent-strong);
    font-family: var(--blog-mono);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.series-summary-copy strong {
    overflow: hidden;
    color: var(--blog-color-heading);
    font-family: var(--blog-heading);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.026em;
    line-height: 1.32;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.series-meta,
.series-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.4rem;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.series-meta {
    padding: 0;
    border: 0;
    background: transparent;
    color: #127e61;
}

.series-toggle {
    gap: 0.35rem;
    color: #697783;
}

.series-toggle .site-icon {
    font-size: 0.82rem;
    transition: transform 0.2s ease;
}

.series-card[open] .series-toggle .site-icon {
    transform: rotate(180deg);
}

.series-body {
    border-top: 1px solid var(--blog-color-line-soft);
    padding: 0.18rem 0 0.34rem;
}

.series-list {
    display: grid;
    gap: 0;
    max-height: min(42vh, 22rem);
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(94, 107, 118, 0.24) transparent;
}

.series-post {
    margin: 0;
    border-bottom: 1px solid var(--blog-color-line-soft);
}

.series-post:last-child {
    border-bottom: 0;
}

.series-post > a,
.series-post.is-current {
    display: grid;
    grid-template-columns: 2.15rem minmax(0, 1fr);
    gap: 0.68rem;
    align-items: center;
    min-height: 2.7rem;
    padding: 0.54rem 0;
    border-radius: 0;
    color: var(--blog-color-text);
    text-decoration: none;
    transition: color 0.24s cubic-bezier(0.2, 0, 0, 1);
}

.series-post > a:hover {
    background: transparent;
    color: var(--blog-color-accent-strong);
}

.series-summary:focus-visible,
.series-post > a:focus-visible,
.related-post-card a:focus-visible,
.post-nav-card:focus-visible {
    outline: 2px solid var(--blog-focus-ring);
    outline-offset: 3px;
}

.series-post.is-current {
    background: transparent;
    color: #1d2d38;
}

.series-post.is-current .series-post-index,
.series-post.is-current .series-post-copy strong {
    color: var(--blog-color-accent-strong);
}

.series-post.is-current .series-post-copy strong {
    text-decoration-line: underline;
    text-decoration-color: rgba(13, 111, 90, 0.38);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.24em;
}

.series-post-index {
    color: #95a1ac;
    font-family: var(--blog-mono);
    font-size: 0.72rem;
    font-weight: 500;
}

.series-post-copy {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
}

.series-post-copy strong {
    overflow: hidden;
    color: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.34;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.series-post-copy span {
    color: var(--blog-color-subtle);
    font-family: var(--blog-mono);
    font-size: 0.68rem;
    line-height: 1.2;
}

html[lang="ko"] .series-summary-copy strong {
    font-family: var(--blog-korean);
    letter-spacing: -0.035em;
}

.post-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 2.15rem 0 0.4rem;
    border-top: 1px solid var(--blog-color-line);
    border-bottom: 1px solid var(--blog-color-line);
}

.related-posts {
    margin: 2.35rem 0 0.4rem;
    padding-top: 0;
    border-top: 0;
}

.related-posts h2 {
    margin: 0 0 0.5rem;
    color: var(--blog-color-accent-strong);
    font-family: var(--blog-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.related-post-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.related-post-card a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: baseline;
    min-height: 0;
    padding: 0.78rem 0;
    border: 0;
    border-bottom: 1px solid var(--blog-color-line-soft);
    border-radius: 0;
    color: var(--blog-color-ink);
    background: transparent;
    text-decoration: none;
    transition: color 0.24s cubic-bezier(0.2, 0, 0, 1);
}

.related-post-card a:hover {
    border-color: var(--blog-color-line-soft);
    color: var(--blog-color-accent-strong);
}

.related-post-card:last-child a {
    border-bottom: 0;
}

.related-post-card span,
.related-post-card time {
    flex: 0 0 auto;
    color: var(--blog-color-muted);
    font-family: var(--blog-mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.related-post-card strong {
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.34;
}

.post-nav-card,
.post-nav-card:hover {
    display: flex;
    min-height: 6.75rem;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 1.2rem 0;
    border: 0;
    border-radius: 0;
    color: var(--blog-color-ink);
    background: transparent;
    box-shadow: none;
    text-decoration: none;
    transition: color 0.24s cubic-bezier(0.2, 0, 0, 1);
}

.post-nav-card:hover {
    color: var(--blog-color-accent-strong);
}

.post-nav-card.is-older {
    padding-right: 2rem;
}

.post-nav-card.is-next,
.post-nav-card.is-explore {
    align-items: flex-end;
    padding-left: 2rem;
    border-left: 1px solid var(--blog-color-line);
    text-align: right;
}

.post-nav-kicker {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    margin-bottom: 0.4rem;
    color: var(--blog-color-muted);
    font-family: var(--blog-mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.post-nav-kicker .site-icon {
    flex: 0 0 auto;
    font-size: 0.82em;
}

.post-nav-card strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: inherit;
    font-family: var(--blog-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.018em;
    line-height: 1.34;
}

.post-nav-spacer {
    min-height: 1px;
}

@media (max-width: 575.98px) {
    .breadcrumbs {
        margin: 0.72rem 0 0.68rem;
    }

    .breadcrumbs li[aria-current="page"] {
        display: none;
    }

    .breadcrumbs li:first-child::before {
        display: none;
    }

    .series-summary {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        gap: 0.5rem;
        padding: 0.82rem 0;
    }

    .post-end-matter {
        margin-top: 3.4rem;
    }

    .post-author-note {
        grid-template-columns: 4rem minmax(0, 1fr);
        gap: 0.95rem;
        align-items: start;
        padding-top: 1.15rem;
    }

    .post-author-portrait {
        width: 4rem;
        height: 4rem;
    }

    .post-author-copy h2 {
        font-size: 1.08rem;
    }

    .post-author-copy p {
        font-size: 0.8rem;
    }

    .series-toggle {
        grid-column: auto;
        justify-content: flex-end;
    }

    .series-post > a,
    .series-post.is-current {
        grid-template-columns: 1.9rem minmax(0, 1fr);
    }

    .series-post-copy strong {
        white-space: normal;
    }

    .post-nav-grid {
        grid-template-columns: 1fr;
    }

    .related-post-grid {
        grid-template-columns: 1fr;
    }

    .post-nav-card,
    .post-nav-card.is-next,
    .post-nav-card.is-explore {
        min-height: 5.875rem;
        align-items: flex-start;
        padding: 1rem 0;
        border-left: 0;
        text-align: left;
    }

    .post-nav-card.is-older {
        padding-right: 0;
    }

    .post-nav-grid > :nth-child(2) {
        border-top: 1px solid var(--blog-color-line);
    }

    .post-nav-spacer {
        display: none;
    }
}

.toc {
    position: fixed;
    top: 50%;
    right: auto;
    left: min(
        calc(50% + var(--blog-reading-rail-offset)),
        calc(100vw - var(--blog-reading-rail-width) - 0.25rem)
    );
    width: clamp(13.75rem, 18vw, var(--blog-reading-rail-width));
    max-height: min(72vh, 40rem);
    display: block;
    padding: 0.1rem 0 0.35rem 0.95rem;
    transform: translateY(-50%);
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--blog-color-muted);
    font-family: var(--blog-sans);
    font-size: 0.75rem;
    line-height: 1.35;
    letter-spacing: 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(94, 107, 118, 0.28) transparent;
}

.toc.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.toc::before {
    content: "";
    position: absolute;
    top: 0.2rem;
    bottom: 0.2rem;
    left: 0.42rem;
    width: 1px;
    background: var(--blog-color-line);
}

.toc-title {
    margin: 0 0 0.58rem;
    color: var(--blog-color-muted);
    font-family: var(--blog-mono);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.toc ol,
.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc .toc-list,
.toc > ul {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.toc .toc-item,
.toc li {
    position: relative;
    margin: 0;
    min-width: 0;
}

.toc .toc-item::before,
.toc li::before {
    content: "";
    position: absolute;
    top: 0.64rem;
    left: -0.83rem;
    width: 2px;
    height: 1rem;
    border-radius: 0;
    background: var(--blog-color-accent);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.16s ease;
}

.toc > ol > .toc-item::before,
.toc > ol > li::before,
.toc > ul > .toc-item::before,
.toc > ul > li::before {
    left: -0.53rem;
}

.toc a,
.toc .toc-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    padding: 0.18rem 0 0.18rem 0.08rem;
    overflow: hidden;
    color: var(--blog-color-muted);
    font-weight: 400;
    line-height: 1.38;
    text-decoration: none;
    white-space: normal;
    transition: color 0.16s ease, transform 0.16s ease;
}

.toc .toc-link-text {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-overflow: ellipsis;
    white-space: normal;
}

.toc a:hover,
.toc .toc-link:hover {
    color: var(--blog-color-heading);
}

.toc .toc-item-level-2 > .toc-link,
.toc > ul > li > a {
    color: var(--blog-color-text);
    font-weight: 500;
}

.toc .toc-sublist,
.toc ul ul {
    max-height: 0;
    margin: 0;
    padding-left: 0.62rem;
    overflow: hidden;
    border-left: 1px solid var(--blog-color-line-soft);
    opacity: 0;
    transform: translateY(-0.2rem);
    will-change: max-height, opacity, transform;
    transition:
        max-height 0.68s cubic-bezier(0.18, 0.82, 0.22, 1),
        opacity 0.44s ease,
        margin 0.54s ease,
        transform 0.54s ease;
}

.toc .toc-item.is-expanded > .toc-sublist,
.toc li.is-expanded > ul {
    max-height: calc(var(--toc-sublist-height, 9rem) + 0.6rem);
    margin: 0.08rem 0 0.2rem;
    opacity: 1;
    transform: translateY(0);
}

.toc .toc-item-level-3 > .toc-link,
.toc ul ul a {
    padding-top: 0.13rem;
    padding-bottom: 0.13rem;
    color: var(--blog-color-subtle);
    font-size: 0.71rem;
    font-weight: 500;
}

.toc li.active a {
    color: inherit;
    font-weight: inherit;
}

.toc .toc-item.is-parent > .toc-link,
.toc li.is-parent > a {
    color: var(--blog-color-text);
    font-weight: 500;
}

.toc .toc-item.is-current > .toc-link,
.toc li.active > a,
.toc li.is-current > a {
    color: var(--blog-color-heading);
    font-weight: 600;
}

.toc .toc-item.is-current::before,
.toc li.active::before,
.toc li.is-current::before {
    opacity: 1;
}

html[lang="ko"] .toc {
    font-family: var(--blog-korean);
}

@media (max-width: 1199px) {
    .toc {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    html:not(.sidebar-collapsed) .blog-post-page .toc {
        left: min(
            calc(50% + 150px + var(--blog-reading-rail-offset)),
            calc(100vw - var(--blog-reading-rail-width) - 0.25rem)
        );
    }

    html.sidebar-collapsed .blog-post-page .toc {
        left: min(
            calc(50% + 36px + var(--blog-reading-rail-offset)),
            calc(100vw - var(--blog-reading-rail-width) - 0.25rem)
        );
    }

    html:not(.sidebar-collapsed) .blog-post-page #copyButton {
        left: calc(50% + 150px - var(--blog-reading-rail-offset) - var(--blog-share-control-size));
    }

    html.sidebar-collapsed .blog-post-page #copyButton {
        left: calc(50% + 36px - var(--blog-reading-rail-offset) - var(--blog-share-control-size));
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .blog-post-page .toc {
        top: var(--post-rail-flyout-top, 12rem);
        right: auto;
        left: calc(var(--site-sidebar-rail-width, 72px) + 10px);
        z-index: 1080;
        width: min(17rem, calc(100vw - var(--site-sidebar-rail-width, 72px) - 32px));
        max-height: min(72vh, calc(100vh - var(--post-rail-flyout-top, 12rem) - 12px));
        padding: 0.76rem 0.72rem 0.78rem 1.18rem;
        border: 1px solid var(--site-sidebar-line, rgba(203, 220, 235, 0.11));
        border-radius: 8px;
        color: var(--site-sidebar-muted, rgba(190, 203, 216, 0.68));
        background: rgba(8, 12, 18, 0.98);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
        transform: translateX(-4px);
        transition:
            opacity 180ms cubic-bezier(0.2, 0, 0, 1),
            transform 180ms cubic-bezier(0.2, 0, 0, 1),
            visibility 180ms cubic-bezier(0.2, 0, 0, 1);
        scrollbar-color: rgba(190, 203, 216, 0.26) transparent;
    }

    .blog-post-page .toc.is-visible {
        transform: translateX(0);
    }

    .blog-post-page .toc::before {
        background: var(--site-sidebar-line, rgba(203, 220, 235, 0.11));
    }

    .blog-post-page .toc-title,
    .blog-post-page .toc a,
    .blog-post-page .toc .toc-link {
        color: var(--site-sidebar-muted, rgba(190, 203, 216, 0.68));
    }

    .blog-post-page .toc .toc-item-level-2 > .toc-link,
    .blog-post-page .toc > ul > li > a,
    .blog-post-page .toc .toc-item.is-parent > .toc-link,
    .blog-post-page .toc li.is-parent > a {
        color: color-mix(in srgb, var(--site-sidebar-ink, #f4f8fc), transparent 18%);
    }

    .blog-post-page .toc .toc-item-level-3 > .toc-link,
    .blog-post-page .toc ul ul a {
        color: color-mix(in srgb, var(--site-sidebar-muted, #becbd8), transparent 8%);
    }

    .blog-post-page .toc a:hover,
    .blog-post-page .toc .toc-link:hover,
    .blog-post-page .toc .toc-item.is-current > .toc-link,
    .blog-post-page .toc li.active > a,
    .blog-post-page .toc li.is-current > a {
        color: var(--site-sidebar-ink, #f4f8fc);
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-post-page .toc {
        transition: none;
    }
}

html[data-theme="dark"] .series-card {
    border-color: #263241;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .post-author-portrait {
    border-color: rgba(216, 226, 239, 0.12);
    background: var(--post-author-portrait-matte);
}

html[data-theme="dark"] .breadcrumbs {
    color: #93a2b3;
}

html[data-theme="dark"] .breadcrumbs a {
    color: #c7d2df;
}

html[data-theme="dark"] .breadcrumbs a:hover {
    color: #4dd7b4;
}

html[data-theme="dark"] .breadcrumbs li + li::before {
    color: #586678;
}

html[data-theme="dark"] .related-posts h2 {
    color: #8debd3;
}

html[data-theme="dark"] .related-post-card a {
    border-color: rgba(216, 226, 239, 0.1);
    color: #d6e0ea;
    background: transparent;
}

html[data-theme="dark"] .related-post-card a:hover {
    border-color: rgba(216, 226, 239, 0.1);
    color: #8debd3;
    background: transparent;
}

html[data-theme="dark"] .related-post-card span,
html[data-theme="dark"] .related-post-card time {
    color: #93a2b3;
}

html[data-theme="dark"] .series-icon {
    color: #4dd7b4;
}

html[data-theme="dark"] .series-toggle,
html[data-theme="dark"] .series-post-index,
html[data-theme="dark"] .series-post-copy span {
    color: #93a2b3;
}

html[data-theme="dark"] .series-kicker {
    color: #8debd3;
}

html[data-theme="dark"] .series-summary-copy strong,
html[data-theme="dark"] .series-post.is-current,
html[data-theme="dark"] .series-post > a:hover {
    color: #e8eef6;
}

html[data-theme="dark"] .series-meta {
    border-color: transparent;
    background: transparent;
    color: #8debd3;
}

html[data-theme="dark"] .series-body {
    border-top-color: rgba(216, 226, 239, 0.1);
}

html[data-theme="dark"] .series-post > a {
    color: #c9d3df;
}

html[data-theme="dark"] .series-post {
    border-bottom-color: rgba(216, 226, 239, 0.1);
}

html[data-theme="dark"] .series-post > a:hover,
html[data-theme="dark"] .series-post.is-current {
    background: transparent;
}

html[data-theme="dark"] .series-post > a:hover {
    color: #8debd3;
}

html[data-theme="dark"] .series-post.is-current .series-post-index,
html[data-theme="dark"] .series-post.is-current .series-post-copy strong {
    color: #8debd3;
}

html[data-theme="dark"] .series-post.is-current .series-post-copy strong {
    text-decoration-color: rgba(141, 235, 211, 0.42);
}

html[data-theme="dark"] .post-nav-grid {
    border-color: rgba(216, 226, 239, 0.1);
}

html[data-theme="dark"] .post-nav-card,
html[data-theme="dark"] .post-nav-card:hover {
    color: #d6e0ea;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .post-nav-card:hover {
    color: #8debd3;
    background: transparent;
}

html[data-theme="dark"] .post-nav-card.is-next,
html[data-theme="dark"] .post-nav-card.is-explore {
    border-left-color: rgba(216, 226, 239, 0.1);
}

html[data-theme="dark"] .post-nav-kicker {
    color: #93a2b3;
}

@media (max-width: 575.98px) {
    html[data-theme="dark"] .post-nav-grid > :nth-child(2) {
        border-top-color: rgba(216, 226, 239, 0.1);
    }
}

html[data-theme="dark"] .toc {
    color: #93a2b3;
    scrollbar-color: rgba(147, 162, 179, 0.34) transparent;
}

html[data-theme="dark"] .toc::before {
    background: rgba(216, 226, 239, 0.14);
}

html[data-theme="dark"] .toc-title {
    color: #93a2b3;
}

html[data-theme="dark"] .toc a,
html[data-theme="dark"] .toc .toc-link {
    color: #9aa8b8;
}

html[data-theme="dark"] .toc a:hover,
html[data-theme="dark"] .toc .toc-link:hover {
    color: #e8eef6;
}

html[data-theme="dark"] .toc .toc-item-level-2 > .toc-link,
html[data-theme="dark"] .toc > ul > li > a {
    color: #c7d2df;
}

html[data-theme="dark"] .toc .toc-sublist,
html[data-theme="dark"] .toc ul ul {
    border-left-color: rgba(216, 226, 239, 0.14);
}

html[data-theme="dark"] .toc .toc-item-level-3 > .toc-link,
html[data-theme="dark"] .toc ul ul a {
    color: #8291a3;
}

html[data-theme="dark"] .toc .toc-item.is-parent > .toc-link,
html[data-theme="dark"] .toc li.is-parent > a {
    color: #b7c3d0;
}

html[data-theme="dark"] .toc .toc-item.is-current > .toc-link,
html[data-theme="dark"] .toc li.active > a,
html[data-theme="dark"] .toc li.is-current > a {
    color: #f4f8fc;
}

html[data-theme="dark"] .toc .toc-item.is-current::before,
html[data-theme="dark"] .toc li.active::before,
html[data-theme="dark"] .toc li.is-current::before {
    background: #4dd7b4;
}
