/* 阅读版式。一条左边线：1008 壳层里的 720 正文。强调色只有 #111111。间距为 4 的倍数。 */

:root {
    --font-sans: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

html {
    scrollbar-gutter: stable;
}

body {
    color: #111111;
    background: #ffffff;
}

.gh-viewport {
    min-height: 100dvh;
}

.gh-navigation {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 64px;
    border-bottom: 1px solid #e6e6e6;
    background: var(--background-color, #ffffff);
    color: #111111;
    font-size: 14px;
}

@media (min-width: 768px) {
    .gh-navigation.is-left-logo .gh-navigation-logo:not(:has(img)) {
        top: 0;
        display: inline-flex;
        align-items: center;
        height: 32px;
        font-size: 20px;
        line-height: 32px;
        letter-spacing: normal;
    }

    .gh-navigation-menu a,
    .gh-navigation-actions > a,
    .gh-navigation-members a:not(.gh-button) {
        display: inline-flex;
        align-items: center;
        height: 32px;
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
    }

    .gh-navigation.is-left-logo .gh-navigation-menu {
        margin-left: 0;
    }

    .gh-navigation-members {
        gap: 24px;
    }
}

.gh-navigation .nav {
    gap: 24px;
}

.gh-navigation .gh-search {
    margin-right: 0;
    margin-left: 0;
}

.gh-button {
    height: 32px;
    padding: 0 16px;
    border-radius: 4px;
    gap: 8px;
    font-size: 14px;
    line-height: 32px;
    letter-spacing: normal;
}

.gh-footer,
.page-template .gh-footer {
    margin-top: auto;
    padding-top: 48px;
    color: #5c5c5c;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: normal;
}

.gh-footer-signup {
    display: none;
}

.gh-footer .gh-footer-menu .nav,
.gh-footer .gh-footer-menu li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 24px;
    margin: 0;
    padding: 0;
}

.gh-footer .gh-footer-menu a {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: 24px;
    color: #111111;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
}

.gh-footer-logo {
    width: fit-content;
    color: #111111;
    font-size: 16px;
    font-weight: 650;
    line-height: 24px;
    letter-spacing: normal;
}

.gh-footer-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    min-height: 48px;
    margin-bottom: 0;
    padding-block: 16px;
    border-bottom: 0;
    border-top: 1px solid #e6e6e6;
}

.gh-footer-copyright {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-left: auto;
    font-weight: 400;
}

.gh-footer-copyright .gh-social-links {
    margin: 0;
    gap: 16px;
}

.gh-footer-copyright .gh-social-links a {
    color: #5c5c5c;
    text-decoration: none;
}

.gh-footer-copyright .gh-social-links svg {
    display: block;
    width: 16px;
    height: 16px;
}

.gh-footer .gh-footer-copyright > span a {
    color: #111111;
    text-underline-offset: 4px;
}

.home-template .reading-index-inner,
.home-template .gh-container .gh-inner,
:is(.tag-template, .author-template) .gh-archive,
:is(.tag-template, .author-template) .gh-container .gh-inner {
    width: min(1008px, 100%);
    margin-inline: auto;
}

.home-template .reading-index {
    margin-top: 48px;
}

.home-template .reading-index-inner {
    padding-bottom: 24px;
    border-bottom: 1px solid #e6e6e6;
}

.home-template .reading-index-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #5c5c5c;
}

.home-template .reading-index-desc {
    margin-top: 8px;
    max-width: 720px;
    color: #111111;
    font-size: 24px;
    line-height: 32px;
}

.reading-index-title,
:is(.tag-template, .author-template) .gh-article-title,
.page-template .gh-article-title,
.reading-article .gh-article-title,
.reading-error .gh-article-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 44px;
    letter-spacing: normal;
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.reading-index-desc {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 24px;
    color: #5c5c5c;
}

.home-template .gh-container,
:is(.tag-template, .author-template) .gh-archive {
    display: block;
    margin-top: 0;
}

:is(.tag-template, .author-template) .gh-archive {
    margin-top: 32px;
    margin-bottom: 0;
}

:is(.tag-template, .author-template) .gh-archive-inner {
    display: block;
    grid-column: auto;
    padding-bottom: 16px;
    border-bottom: 0;
}

.author-template .gh-author-meta {
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: normal;
}

.author-template .gh-author-meta:not(:has(a, .gh-author-location)) {
    display: none;
    margin: 0;
}

.author-template .gh-author-social {
    padding-left: 0;
}

.home-template .gh-container-inner,
:is(.tag-template, .author-template) .gh-container-inner,
.post-template .gh-container-inner {
    display: block;
}

.home-template .gh-card-image,
:is(.tag-template, .author-template) .gh-card-image,
.post-template .gh-feed .gh-card-image {
    display: none;
}

.home-template .gh-container.is-list .gh-card-link,
:is(.tag-template, .author-template) .gh-container.is-list .gh-card-link,
.post-template .gh-feed .gh-card-link {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 24px 0;
}

.home-template .gh-container.is-list .gh-card:first-child .gh-card-link {
    padding-top: 32px;
    padding-bottom: 32px;
}

.home-template .gh-card-tag,
:is(.tag-template, .author-template) .gh-card-tag,
.post-template .gh-feed .gh-card-tag {
    display: block;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: normal;
    text-transform: none;
    color: #111111;
}

.home-template .gh-container.is-list .gh-card-title,
:is(.tag-template, .author-template) .gh-container.is-list .gh-card-title,
.post-template .gh-feed .gh-card-title {
    margin: 0;
    color: #111111;
    font-size: 24px;
    font-weight: 650;
    line-height: 32px;
    letter-spacing: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.home-template .gh-container.is-list .gh-card:first-child .gh-card-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 44px;
}

.home-template .gh-container.is-list .gh-card:first-child .gh-card-excerpt {
    max-width: 720px;
    font-size: 18px;
    line-height: 28px;
}

.home-template .gh-container.is-list .gh-card-tag + .gh-card-title,
:is(.tag-template, .author-template) .gh-container.is-list .gh-card-tag + .gh-card-title,
.post-template .gh-feed .gh-card-tag + .gh-card-title {
    margin-top: 8px;
}

.home-template .gh-container.is-list .gh-card-excerpt,
:is(.tag-template, .author-template) .gh-container.is-list .gh-card-excerpt,
.post-template .gh-feed .gh-card-excerpt {
    margin-top: 8px;
    font-size: 16px;
    line-height: 24px;
    color: #5c5c5c;
    word-break: keep-all;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-template .gh-container .gh-card-meta:not(:empty),
:is(.tag-template, .author-template) .gh-container .gh-card-meta:not(:empty),
.post-template .gh-feed .gh-card-meta:not(:empty) {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-bottom: 0;
    color: #5c5c5c;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: normal;
    font-variant-numeric: tabular-nums;
}

.home-template .gh-card-author + .gh-card-date::before,
:is(.tag-template, .author-template) .gh-card-author + .gh-card-date::before,
.post-template .gh-feed .gh-card-author + .gh-card-date::before {
    margin-left: 0;
    margin-right: 8px;
}

.home-template .gh-card-author,
:is(.tag-template, .author-template) .gh-card-author,
.post-template .gh-feed .gh-card-author,
.home-template .gh-card-date,
:is(.tag-template, .author-template) .gh-card-date,
.post-template .gh-feed .gh-card-date {
    display: inline-block;
    height: 20px;
    line-height: 20px;
    vertical-align: top;
}

.home-template .gh-container.is-list .gh-card + .gh-card::before,
:is(.tag-template, .author-template) .gh-container.is-list .gh-card + .gh-card::before,
.post-template .gh-feed .gh-card + .gh-card::before {
    display: none;
}

.home-template .gh-container .gh-feed,
:is(.tag-template, .author-template) .gh-container .gh-feed,
.post-template .gh-container.is-grid .gh-feed {
    gap: 0;
}

.home-template .gh-card + .gh-card,
:is(.tag-template, .author-template) .gh-card + .gh-card,
.post-template .gh-feed .gh-card + .gh-card {
    border-top: 1px solid #e6e6e6;
}

.reading-frame {
    display: grid;
    grid-template-columns: minmax(0, 720px) 240px;
    grid-template-areas:
        "head rail"
        "body rail";
    column-gap: 48px;
    justify-content: start;
    width: min(1008px, calc(100% - 48px));
    margin: 32px auto 0;
}

.reading-head {
    grid-area: head;
    min-width: 0;
}

.reading-copy-col {
    grid-area: body;
    min-width: 0;
}

.reading-frame:not(:has(.reading-toc a)) {
    grid-template-columns: minmax(0, 720px);
    grid-template-areas:
        "head"
        "body";
}

.reading-head.gh-article-header {
    margin: 0 0 24px;
}

.reading-series {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.reading-series a {
    color: #111111;
    text-decoration: none;
}

.reading-head .gh-article-excerpt {
    margin: 16px 0 0;
    max-width: none;
    color: #5c5c5c;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.reading-head .gh-article-image {
    margin: 24px 0 0;
}

.reading-head .gh-article-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.reading-error {
    width: min(1008px, calc(100% - 48px));
    margin: 32px auto 0;
}

.reading-error-code {
    margin: 0 0 8px;
    color: #111111;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: normal;
    font-variant-numeric: tabular-nums;
}

.reading-error-text {
    max-width: 640px;
    margin: 16px 0 0;
    color: #5c5c5c;
    font-size: 16px;
    line-height: 24px;
}

.reading-error-home {
    margin-top: 24px;
    letter-spacing: normal;
    text-decoration: none;
}

.post-template .gh-meta-share {
    align-items: center;
    margin-top: 16px;
}

.post-template .gh-article-meta {
    margin-left: 0;
    gap: 8px;
}

.post-template .gh-article-author-image {
    margin-right: 0;
}

.post-template .gh-article-author-image a {
    width: 32px;
    height: 32px;
    margin: 0;
    border: 0;
}

.post-template .reading-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
}

.post-template .reading-avatar-fallback svg {
    width: 16px;
    height: 16px;
}

.post-template .gh-article-meta-wrapper {
    gap: 0;
    width: auto;
    min-width: 0;
    height: 32px;
}

.post-template .gh-article-author-name,
.post-template .gh-article-meta-content {
    height: 16px;
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: normal;
}

.post-template .gh-article-author-name {
    display: block;
}

.post-template .gh-article-meta-content {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.post-template .gh-article-author-name,
.post-template .gh-article-author-name a {
    display: block;
    height: 16px;
    color: #111111;
    font-weight: 600;
    line-height: 16px;
}

.post-template .gh-article-meta-content {
    color: #5c5c5c;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.post-template .gh-article-meta-content time,
.post-template .gh-article-meta-length {
    display: block;
    height: 16px;
    line-height: 16px;
}

.post-template .reading-meta-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.post-template .reading-site-link {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 4px;
    background: #111111;
    color: #ffffff;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.post-template .reading-site-link:hover {
    background: #111111;
    color: #ffffff;
}

.post-template .reading-md-link {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.post-template .gh-button-share {
    box-sizing: border-box;
    height: 32px;
    padding: 0 16px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: transparent;
    color: #111111;
    font-size: 14px;
    line-height: 32px;
    transition: none;
}

@media (max-width: 767px) {
    .post-template .gh-meta-share {
        flex-wrap: wrap;
        gap: 8px;
    }

    .post-template .reading-meta-actions {
        margin-left: 0;
    }
}

.reading-copy-col .gh-canvas,
.page-template .gh-canvas {
    display: block;
    width: min(720px, 100%);
}

.page-template .gh-main {
    width: min(1008px, calc(100% - 48px));
    margin: 32px auto 0;
}

.page-template .gh-article-header {
    margin: 0 0 24px;
}

.reading-copy-col .gh-canvas > *,
.page-template .gh-canvas > * {
    grid-column: auto;
    max-width: 100%;
}

.reading-copy-col .gh-content,
.page-template .gh-content {
    font-size: 16px;
    line-height: 28px;
    letter-spacing: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.reading-copy-col .gh-content > * + *,
.page-template .gh-content > * + * {
    margin-top: 16px;
}

.reading-copy-col .gh-content > h2[id],
.reading-copy-col .gh-content > h3[id] {
    margin-bottom: 0;
    line-height: 32px;
    letter-spacing: normal;
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: break-word;
    scroll-margin-top: 80px;
}

.reading-copy-col .gh-content > h2[id] {
    margin-top: 32px;
    font-size: 24px;
}

.reading-copy-col .gh-content > h3[id] {
    margin-top: 24px;
    font-size: 20px;
    line-height: 28px;
}

.reading-copy-col .gh-content > [id] + p,
.page-template .gh-content > [id] + p {
    margin-top: 8px;
}

.page-template .gh-content > :is(h2, h3)[id] {
    margin-top: 32px;
    margin-bottom: 0;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: normal;
}

.page-template .gh-content > *:last-child:not(.kg-width-full) {
    margin-bottom: 0;
}

.reading-copy-col .gh-content > hr,
.page-template .gh-content > hr {
    height: 1px;
    background: #e6e6e6;
    border: 0;
}

.reading-copy-col .gh-content a,
.page-template .gh-content a {
    color: #111111;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.reading-copy-col .gh-content > .reading-source,
.reading-copy-col .gh-content > p:has(> a[href*="pixren.com/cases"]) {
    margin-top: 32px;
    padding: 24px;
    border: 1px solid #e6e6e6;
    border-left: 4px solid #111111;
    border-radius: 4px;
    color: #111111;
    font-size: 20px;
    font-weight: 600;
    line-height: 32px;
}

.reading-copy-col .gh-content > .reading-source p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.reading-copy-col .gh-content > .reading-praise {
    margin-top: 32px;
    padding: 24px;
    border: 1px solid #e6e6e6;
    border-left: 4px solid #111111;
    border-radius: 4px;
}

.reading-copy-col .gh-content > .reading-praise h2 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 32px;
    font-weight: 650;
}

.reading-copy-col .gh-content > .reading-praise p {
    margin: 0;
    color: #111111;
    font-size: 18px;
    line-height: 32px;
}

.reading-code {
    margin-top: 16px;
    border-radius: 4px;
    background: #1a1a1a;
}

.reading-codebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
    padding: 0 4px 0 16px;
    border-radius: 4px 4px 0 0;
    color: #a3a3a3;
    font-family: ui-monospace, "Sarasa Mono", Consolas, monospace;
    font-size: 12px;
    line-height: 16px;
}

.reading-copy-col .gh-content .reading-code pre,
.reading-copy-col .gh-content .reading-code pre[class*="language-"] {
    position: static;
    margin: 0;
    padding: 8px 16px 16px;
    overflow: auto;
    border-radius: 0 0 4px 4px;
    background: #1a1a1a;
    color: #d4d4d4;
}

.reading-copy-col .gh-content pre code {
    font-family: ui-monospace, "Sarasa Mono", Consolas, monospace;
    font-size: 14px;
    line-height: 24px;
    font-variant-numeric: tabular-nums;
}

.reading-copy-col .gh-content :not(pre) > code {
    padding: 0 4px;
    background: #f4f4f5;
    color: #111111;
    font-size: 14px;
}

.reading-copy {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f5f5f5;
    cursor: pointer;
}

.reading-copy svg {
    width: 16px;
    height: 16px;
}

.reading-copy:focus-visible,
.reading-toc a:focus-visible,
.reading-series a:focus-visible,
.reading-tags a:focus-visible,
.gh-button:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

a:hover,
.gh-button:hover,
.gh-card-link:hover {
    opacity: 1;
}

.gh-card-link:hover .gh-card-title {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.reading-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.reading-tags a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    color: #111111;
    font-size: 14px;
    line-height: 32px;
    text-decoration: none;
}

.reading-rail {
    position: sticky;
    top: 80px;
    grid-area: rail;
    align-self: start;
    max-height: calc(100dvh - 96px);
    overflow: auto;
}

.reading-rail:not(:has(a)) {
    display: none;
}

.reading-toc-panel > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    list-style: none;
}

.reading-toc-panel > summary::-webkit-details-marker {
    display: none;
}

.reading-toc-icon,
.reading-toc-icon svg {
    width: 16px;
    height: 16px;
}

.reading-toc-icon {
    display: inline-flex;
}

.reading-toc-list {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.reading-toc-list a {
    display: block;
    overflow: hidden;
    padding: 4px 0 4px 24px;
    border-left: 0;
    box-shadow: inset 2px 0 0 #e6e6e6;
    color: #5c5c5c;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.reading-toc-list .is-sub a {
    padding-left: 40px;
}

.reading-toc-list a:hover,
.reading-toc-list a[aria-current="true"] {
    color: #111111;
}

.reading-toc-list a[aria-current="true"] {
    box-shadow: inset 2px 0 0 #111111;
}

.post-template .gh-comments.gh-canvas {
    display: block;
    width: min(1008px, calc(100% - 48px));
    margin: 48px auto 0;
}

.post-template .gh-comments.gh-canvas > div {
    width: min(720px, 100%);
    max-width: 720px;
    margin-right: auto;
    margin-left: 0;
}

.post-template .gh-container.is-grid {
    width: min(1008px, calc(100% - 48px));
    margin: 48px auto 0;
    padding-right: 0;
    padding-left: 0;
}

.post-template .gh-container-title {
    max-width: 720px;
    margin: 0 0 8px;
    padding: 0;
    border-bottom: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-transform: none;
}

.post-template .gh-container.is-grid .gh-feed {
    display: flex;
    flex-direction: column;
    max-width: 720px;
    overflow: visible;
}

@media (max-width: 767px) {
    .gh-burger {
        margin-right: 0;
        margin-left: 8px;
    }

    .gh-burger svg {
        width: 20px;
        height: 20px;
    }

    .is-open#gh-navigation {
        border-bottom: 0;
    }

    .is-open#gh-navigation .gh-navigation-inner {
        grid-template-rows: 64px auto auto;
        align-content: start;
        gap: 8px;
    }

    .is-open#gh-navigation .gh-navigation-menu,
    .is-open#gh-navigation .gh-navigation-actions {
        justify-content: flex-start;
        align-items: stretch;
        padding: 8px 0 0;
        text-align: left;
    }

    .is-open#gh-navigation .nav {
        align-items: flex-start;
        gap: 16px;
    }

    .is-open#gh-navigation a[data-portal="signin"] {
        align-self: flex-start;
        text-align: left;
    }

    #gh-navigation .nav a,
    #gh-navigation a[data-portal="signin"] {
        font-size: 16px;
        line-height: 24px;
    }

    .is-open#gh-navigation .gh-button {
        width: 100%;
        height: 40px;
        font-size: 16px;
        line-height: 40px;
    }
}

@media (max-width: 960px) {
    .page-template .gh-main,
    .reading-error,
    .reading-frame,
    .reading-frame:not(:has(.reading-toc a)),
    .post-template .gh-comments.gh-canvas,
    .post-template .gh-container.is-grid {
        width: min(720px, calc(100% - 40px));
    }

    .reading-frame,
    .reading-frame:not(:has(.reading-toc a)) {
        grid-template-columns: minmax(0, 720px);
        grid-template-areas:
            "head"
            "rail"
            "body";
        row-gap: 16px;
    }

    .reading-rail {
        position: static;
        max-height: none;
    }
}

@media (max-width: 991px) {
    .gh-footer-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .gh-footer-copyright {
        justify-content: flex-start;
        width: 100%;
        margin-left: 0;
    }
}

.gh-navigation,
.gh-footer {
    background: #ffffff;
}

.portal-search-label {
    display: none;
}

@media (min-width: 961px) {
    .gh-navigation-menu {
        display: none;
    }

    .gh-navigation-actions {
        display: contents;
    }

    .gh-navigation.is-left-logo .gh-navigation-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .gh-navigation .gh-search {
        box-sizing: border-box;
        justify-self: center;
        justify-content: flex-start;
        gap: 8px;
        width: min(560px, 100%);
        height: 32px;
        padding: 0 16px;
        border: 1px solid #e6e6e6;
        border-radius: 16px;
        background: #f4f5f7;
        color: #5c5c5c;
    }

    .gh-navigation .portal-search-label {
        display: block;
        overflow: hidden;
        font-size: 14px;
        line-height: 20px;
        white-space: nowrap;
    }

    .gh-navigation .gh-search svg {
        width: 16px;
        height: 16px;
        margin-left: auto;
    }

    .gh-navigation .gh-search:hover,
    .gh-navigation .gh-search:hover :is(svg, span) {
        opacity: 1;
    }
}

.portal-shell {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    margin: 0;
    min-height: calc(100dvh - 64px);
}

.portal-sider {
    min-height: calc(100dvh - 64px);
    border-right: 1px solid #e6e6e6;
    background: #ffffff;
}

.portal-sider-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.portal-sider-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 64px;
    padding: 0 4px;
    color: #5c5c5c;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    text-decoration: none;
}

.portal-sider-nav a span:last-child {
    max-width: 64px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.portal-sider-icon,
.portal-sider-icon svg {
    width: 20px;
    height: 20px;
}

.portal-sider-nav a[aria-current="page"] {
    background: #f4f5f7;
    color: #111111;
    font-weight: 650;
}

.portal-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: stretch;
    min-width: 0;
}

.post-template .portal-stage {
    grid-template-columns: minmax(0, 1fr);
}

.portal-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid #e6e6e6;
    overflow-x: auto;
}

.portal-tabs a {
    display: inline-flex;
    align-items: center;
    flex: none;
    height: 32px;
    padding: 0 12px;
    border-radius: 4px;
    color: #111111;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.portal-tabs a[aria-current="page"] {
    background: #111111;
    color: #ffffff;
    font-weight: 650;
}

.portal-aside {
    position: sticky;
    top: 64px;
    min-height: calc(100dvh - 64px);
    padding: 16px;
    border-left: 1px solid #e6e6e6;
    background: #ffffff;
}

.portal-aside-title {
    margin: 0 0 8px;
    color: #111111;
    font-size: 14px;
    font-weight: 650;
    line-height: 20px;
}

.portal-aside-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.portal-aside-list a {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 8px 0;
    color: #111111;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.portal-aside-list a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.portal-aside-index {
    flex: none;
    width: 16px;
    color: #5c5c5c;
    font-variant-numeric: tabular-nums;
}

.portal-aside-desc {
    margin: 24px 0 0;
    color: #5c5c5c;
    font-size: 14px;
    line-height: 20px;
}

.portal-board {
    background: transparent;
    border: 0;
    border-radius: 0;
}

.portal-board-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.portal-shell .gh-outer {
    padding: 0;
}

.home-template .portal-shell .gh-container .gh-inner,
.tag-template .portal-shell .gh-archive,
.tag-template .portal-shell .gh-container .gh-inner,
.author-template .portal-shell .gh-archive,
.author-template .portal-shell .gh-container .gh-inner {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.tag-template .portal-shell .gh-main,
.author-template .portal-shell .gh-main,
.page-template .portal-shell .gh-main,
.portal-shell .reading-error,
.portal-shell .reading-frame,
.portal-shell .gh-comments.gh-canvas,
.post-template .portal-shell .gh-container.is-grid {
    background: transparent;
    border: 0;
    border-radius: 0;
}

.tag-template .portal-shell .gh-archive,
.author-template .portal-shell .gh-archive {
    margin: 0;
    padding: 16px 24px;
    border-bottom: 1px solid #e6e6e6;
}

.tag-template .portal-shell .gh-article-title,
.author-template .portal-shell .gh-article-title {
    font-size: 20px;
    line-height: 28px;
}

.page-template .portal-shell .gh-main,
.portal-shell .reading-error {
    width: auto;
    margin: 0;
    padding: 24px 32px 48px;
}

.portal-shell .reading-frame,
.portal-shell .reading-frame:not(:has(.reading-toc a)) {
    width: 100%;
    margin: 0;
    padding: 24px 32px 32px;
    box-sizing: border-box;
}

.post-template .portal-shell .reading-frame {
    grid-template-columns: minmax(0, 1fr) 240px;
    grid-template-areas:
        "head rail"
        "body rail";
    column-gap: 48px;
}

.portal-shell .reading-frame:not(:has(.reading-toc a)) {
    grid-template-columns: minmax(0, 1fr);
}

.portal-shell .reading-copy-col .gh-canvas {
    width: 100%;
    max-width: none;
}

.portal-shell .gh-comments.gh-canvas,
.post-template .portal-shell .gh-container.is-grid {
    width: calc(100% - 352px);
    max-width: none;
    margin: 0 0 32px 32px;
    padding: 0;
}

.portal-shell .gh-comments.gh-canvas > div,
.post-template .portal-shell .gh-container-title,
.post-template .portal-shell .gh-container.is-grid .gh-feed {
    width: 100%;
    max-width: none;
}

.home-template .portal-shell .gh-container.is-list .gh-card-link,
.tag-template .portal-shell .gh-container.is-list .gh-card-link,
.author-template .portal-shell .gh-container.is-list .gh-card-link,
.post-template .portal-shell .gh-feed .gh-card-link,
.home-template .portal-shell .gh-container.is-list .gh-card:first-child .gh-card-link {
    padding: 16px 24px;
}

.portal-shell .gh-card-link:hover {
    background: #f4f5f7;
}

.portal-shell .gh-card-link:hover .gh-card-title {
    text-decoration: none;
}

.home-template .portal-shell .gh-container.is-list .gh-card-title,
.tag-template .portal-shell .gh-container.is-list .gh-card-title,
.author-template .portal-shell .gh-container.is-list .gh-card-title,
.post-template .portal-shell .gh-feed .gh-card-title,
.home-template .portal-shell .gh-container.is-list .gh-card:first-child .gh-card-title {
    font-size: 16px;
    font-weight: 650;
    line-height: 24px;
}

.home-template .portal-shell .gh-container.is-list .gh-card-excerpt,
.tag-template .portal-shell .gh-container.is-list .gh-card-excerpt,
.author-template .portal-shell .gh-container.is-list .gh-card-excerpt,
.post-template .portal-shell .gh-feed .gh-card-excerpt,
.home-template .portal-shell .gh-container.is-list .gh-card:first-child .gh-card-excerpt {
    max-width: none;
    font-size: 14px;
    line-height: 20px;
}

.portal-shell .gh-card-tag {
    display: inline;
    margin: 0;
    color: #5c5c5c;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.portal-mini-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    overflow: hidden;
    border-radius: 50%;
    background: #111111;
    color: #ffffff;
}

.portal-mini-avatar svg {
    width: 12px;
    height: 12px;
}

@media (max-width: 960px) {
    .portal-shell,
    .post-template .portal-shell {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .portal-sider,
    .portal-aside {
        display: none;
    }

    .portal-stage,
    .post-template .portal-stage {
        grid-template-columns: minmax(0, 1fr);
    }

    .portal-tabs {
        padding: 12px 16px;
    }

    .home-template .portal-shell .gh-container.is-list .gh-card-link,
    .tag-template .portal-shell .gh-container.is-list .gh-card-link,
    .author-template .portal-shell .gh-container.is-list .gh-card-link,
    .post-template .portal-shell .gh-feed .gh-card-link,
    .home-template .portal-shell .gh-container.is-list .gh-card:first-child .gh-card-link {
        padding: 16px;
    }

    .portal-shell .reading-frame,
    .portal-shell .reading-frame:not(:has(.reading-toc a)),
    .post-template .portal-shell .reading-frame {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "head"
            "rail"
            "body";
        width: 100%;
        padding: 16px;
    }

    .page-template .portal-shell .gh-main,
    .portal-shell .reading-error {
        width: 100%;
        padding: 16px;
    }

    .portal-shell .gh-comments.gh-canvas,
    .post-template .portal-shell .gh-container.is-grid {
        width: auto;
        max-width: none;
        margin: 0 16px 24px;
        padding: 0;
    }

    .home-template .portal-aside,
    .tag-template .portal-aside,
    .author-template .portal-aside,
    .paged .portal-aside {
        display: flex;
    }

    .home-template .portal-stage,
    .tag-template .portal-stage,
    .author-template .portal-stage,
    .paged .portal-stage {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }

    .forum-row-link {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .forum-row-meta {
        justify-content: flex-start;
    }

    .forum-board {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .gh-icon-loader {
        animation: reading-spin 0.8s linear infinite;
    }
}

@keyframes reading-spin {
    to {
        transform: rotate(360deg);
    }
}

