/* Post Typora Theme - Based on phycat-prussian theme */
/* This CSS applies Typora-style formatting to all posts */

/* MiSans Font Face */
@font-face {
    font-family: 'MiSans';
    src: url('/fonts/misans/MiSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'MiSans';
    src: url('/fonts/misans/MiSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'MiSans';
    src: url('/fonts/misans/MiSans-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

:root {
    /* 标题后小图标 */
    --h1-icon-shape: url("data:image/svg+xml;utf8,<svg fill='rgba(255, 176, 176, 0.5)' height='24' viewBox='0 0 32 32' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M4.8 29.714v0c-1.371 0-2.514-1.143-2.514-2.514v0c0-1.371 1.143-2.514 2.514-2.514v0c1.371 0 2.514 1.143 2.514 2.514v0c0.114 1.371-1.029 2.514-2.514 2.514z'/></svg>") no-repeat center;
    --h2-icon-shape: url("data:image/svg+xml;utf8,<svg fill='rgba(255, 176, 176, 0.5)' height='24' viewBox='0 0 32 32' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M11.429 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM4.571 18.286c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286z'/></svg>") no-repeat center;
    --h3-icon-shape: url("data:image/svg+xml;utf8,<svg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'><path d='M4.571 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM4.571 18.286c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM11.429 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286z'/></svg>");
    --h4-icon-shape: url("data:image/svg+xml;utf8,<svg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'><path d='M4.571 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM4.571 18.286c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM11.429 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM11.429 22.857c1.257 0 2.286-1.029 2.286-2.286s-1.029-2.286-2.286-2.286-2.286 1.029-2.286 2.286 1.029 2.286 2.286 2.286z'/></svg>");
    --h5-icon-shape: url("data:image/svg+xml;utf8,<svg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'><path d='M4.571 18.286c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM11.429 22.857c1.257 0 2.286-1.029 2.286-2.286s-1.029-2.286-2.286-2.286-2.286 1.029-2.286 2.286 1.029 2.286 2.286 2.286zM4.571 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM11.429 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM4.571 11.429c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286z'/></svg>");
    --h6-icon-shape: url("data:image/svg+xml;utf8,<svg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'><path d='M4.571 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM4.571 18.286c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM4.571 11.429c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM11.429 18.286c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM11.429 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM11.429 16c1.257 0 2.286-1.029 2.286-2.286s-1.029-2.286-2.286-2.286-2.286 1.029-2.286 2.286 1.029 2.286 2.286 2.286z'/></svg>");

    /* 文档背景样式 */
    --bg-shape-cross: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h30v30H0z' fill='none'/%3E%3Cpath d='M0 0L15 15M30 0L15 15M0 30L15 15M30 30L15 15' stroke='black' stroke-width='0.4'/%3E%3C/svg%3E");
    --bg-style: var(--bg-shape-cross);

    /* 标题主色：深邃的普鲁士蓝 */
    --head-title-color: #1D4E89;
    
    /* H2 渐变 */
    --head-title-h2-color: #fff;
    --head-title-h2-background: linear-gradient(to right, #6BA3CC, #1D4E89, #6BA3CC);
    
    /* 元素颜色 */
    --element-color: #1D4E89;
    --element-color-deep: #003153;
    --element-color-shallow: #6BA3CC;
    --element-color-so-shallow: #E1EDF5;
    --element-color-soo-shallow: #F0F6FA;
    --glass-bg-color: #b7d8ff15;

    /* 行内代码 */
    --element-color-linecode: #0F3057;
    --element-color-linecode-background: #EBF5FA;
}

/* Apply MiSans to header title */
.gofav-header-title {
    font-family: 'MiSans', "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 600;
}

.gofav-header-meta {
    font-family: 'MiSans', "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Post content container - Typora style */
.post-content {
    font-family: 'MiSans', Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
    line-height: 2.25;
    color: #000;
    letter-spacing: 1.1px;
    word-break: break-word;
    word-wrap: break-word;
    text-align: left;
    position: relative;
    z-index: 0;
}

/* Ensure all text in post uses MiSans except code */
.post-content *:not(code):not(pre) {
    font-family: inherit;
}

.post-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    background-color: var(--element-color);
    opacity: 0.08;
    -webkit-mask-image: var(--bg-style);
    mask-image: var(--bg-style);
    -webkit-mask-size: 20px 20px;
    mask-size: 20px 20px;
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
    -webkit-mask-position: center;
    mask-position: center;
    border-radius: 20px;
}

/* Paragraph styles */
.post-content p {
    color: #333;
    margin: 10px 0;
    font-size: 1rem;
    word-spacing: 2px;
}

/* H1 styling */
.post-content h1 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1em auto 0.8em;
    line-height: 1.4;
    width: fit-content;
    min-width: 120px;
    color: #222;
    position: relative;
    padding-bottom: 12px;
    transition: color 0.3s ease, transform 0.3s ease;
    border-bottom: none;
}

.post-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: var(--head-title-h2-background);
    background-size: 100% auto;
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.post-content h1:hover {
    color: var(--head-title-color);
    transform: translateY(-2px);
}

.post-content h1:hover::after {
    width: 100%;
}

/* Override style.css heading prefixes - H1 and H2 should have no prefix */
.post-content h1::before {
    content: none !important;
    display: none !important;
}

.post-content h2::before {
    content: none !important;
    display: none !important;
}

/* H2 styling - gradient pill */
.post-content h2 {
    color: var(--head-title-h2-color);
    font-size: 1.4rem;
    line-height: 1.5;
    width: fit-content;
    font-weight: 700;
    margin: 20px 0;
    padding: 5px 12px;
    border-radius: 8px;
    background: var(--head-title-h2-background);
    background-size: 200% auto;
    background-position: 0 center;
    box-shadow: 0 2px 5px rgba(61, 184, 211, 0.15);
    transition: background-position 0.5s ease-out, transform 0.4s ease, box-shadow 0.4s ease;
}

.post-content h2:hover {
    background-position: 100% center;
    transform: scale(1.01);
    box-shadow: 0 8px 20px rgba(61, 184, 211, 0.35);
}

/* H3 styling - left border */
.post-content h3 {
    position: relative;
    width: fit-content;
    margin: 20px 0;
    text-align: left;
    font-size: 1.3rem;
    padding-left: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.post-content h3::before {
    content: '' !important;
    position: absolute !important;
    left: -6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 5px !important;
    height: 61% !important;
    border-radius: 4px !important;
    background-color: var(--head-title-color) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-right: 0 !important;
    color: transparent !important;
}

.post-content h3:hover {
    padding-left: 18px;
    color: var(--head-title-color);
    cursor: pointer;
}

.post-content h3:hover::before {
    height: 66%;
    background-color: var(--head-title-color);
    width: 7px;
}

/* H4 styling - dot prefix */
.post-content h4 {
    margin: 20px 0;
    font-size: 1.15rem;
    text-align: left;
    transition: color 0.3s ease, transform 0.3s ease;
}

.post-content h4::before {
    content: "" !important;
    margin-right: 7px !important;
    display: inline-block !important;
    background-color: var(--head-title-color) !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 100% !important;
    border: var(--head-title-color) 1px solid !important;
    vertical-align: inherit !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: transparent !important;
}

.post-content h4:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px var(--element-color-soo-shallow);
}

.post-content h4:hover,
.post-content h5:hover,
.post-content h6:hover {
    color: var(--element-color-deep);
    transform: translateX(6px);
}

/* H5 styling - hollow dot */
.post-content h5 {
    margin: 23px 0;
    font-size: 1.1rem;
    text-align: left;
    transition: color 0.3s ease, transform 0.3s ease;
}

.post-content h5::before {
    content: "" !important;
    margin-right: 7px !important;
    display: inline-block !important;
    background-color: #fff !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 100% !important;
    border: var(--head-title-color) 2px solid !important;
    vertical-align: inherit !important;
    box-sizing: border-box !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: transparent !important;
}

.post-content h5:hover::before {
    background-color: var(--head-title-color);
    transform: scale(1.2);
    box-shadow: 0 0 0 3px var(--element-color-soo-shallow);
}

/* H6 styling - dash prefix */
.post-content h6 {
    margin: 23px 0;
    font-size: 1.1rem;
    text-align: left;
    transition: color 0.3s ease, transform 0.3s ease;
}

.post-content h6::before {
    content: "-" !important;
    color: var(--head-title-color) !important;
    margin-right: 7px !important;
    display: inline-block !important;
    vertical-align: inherit !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.post-content h6:hover::before {
    transform: scaleX(1.8) translateX(1px);
    font-weight: 700;
}

/* Inline code */
.post-content code {
    font-family: 'Consolas', 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--element-color-linecode);
    background-color: var(--element-color-linecode-background);
    padding: 0.2em 0.5em;
    border-radius: 4px;
    word-break: break-word;
}

/* Code block - macOS window style with grid pattern background */
.post-content pre {
    position: relative;
    background-color: var(--element-color-soo-shallow);
    border-radius: 12px;
    padding: 2.5rem 1.5rem 1.2rem 1.5rem;
    overflow-x: auto;
    margin: 1.2rem 0;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Grid pattern background */
.post-content pre::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background-color: var(--element-color);
    opacity: 0.06;
    -webkit-mask-image: var(--bg-style);
    mask-image: var(--bg-style);
    -webkit-mask-size: 20px 20px;
    mask-size: 20px 20px;
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
    -webkit-mask-position: center;
    mask-position: center;
    border-radius: 12px;
}

/* macOS window dots */
.post-content pre::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 16px;
    width: 12px;
    height: 12px;
    background: #FF5F56;
    border-radius: 50%;
    box-shadow: 
        20px 0 0 #FFBD2E,
        40px 0 0 #27C93F;
    z-index: 2;
}

/* Copy button - hidden by default, show on hover */
.post-content pre .copy-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transform: translateY(-2px);
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Show button on pre hover */
.post-content pre:hover .copy-btn {
    opacity: 1;
    transform: translateY(0);
}

.post-content pre .copy-btn:hover {
    background: #fff;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.post-content pre .copy-btn:active {
    transform: scale(0.95);
}

.post-content pre .copy-btn.copied {
    background: #27C93F;
    color: #fff;
    opacity: 1;
}

.post-content pre code {
    position: relative;
    z-index: 1;
    background: transparent;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #333;
    display: block;
}

/* Blockquote */
.post-content blockquote {
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    border-left: 4px solid var(--element-color);
    background: var(--element-color-soo-shallow);
    border-radius: 0 8px 8px 0;
    color: #555;
}

.post-content blockquote p {
    margin: 0.5rem 0;
}

/* Lists */
.post-content ul,
.post-content ol {
    padding-left: 2rem;
    margin: 1rem 0;
}

.post-content li {
    margin: 0.5rem 0;
    position: relative;
}

.post-content ul li::marker {
    color: var(--element-color);
}

.post-content ol li::marker {
    color: var(--element-color);
    font-weight: 600;
}

/* Links */
.post-content a {
    color: var(--element-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.post-content a:hover {
    color: var(--element-color-deep);
    border-bottom-color: var(--element-color);
}

/* Tables */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-content table th {
    background: var(--element-color);
    color: #fff;
    font-weight: 600;
    padding: 0.8rem;
    text-align: left;
}

.post-content table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--element-color-so-shallow);
}

.post-content table tr:last-child td {
    border-bottom: none;
}

.post-content table tr:hover td {
    background: var(--element-color-soo-shallow);
}

/* Horizontal rule */
.post-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--element-color-shallow), transparent);
    margin: 2rem 0;
}

/* Images */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Strong and emphasis */
.post-content strong {
    color: var(--element-color-deep);
    font-weight: 600;
}

.post-content em {
    color: #666;
}

/* Sup (footnotes) */
.post-content sup {
    font-size: 0.75em;
}

.post-content sup a {
    color: var(--element-color);
    text-decoration: none;
    padding: 0 2px;
}

/* Footnotes area */
.post-content .footnotes-area,
.post-content .references {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--element-color-so-shallow);
    font-size: 0.9rem;
    color: #666;
}

/* Mark/highlight */
.post-content mark {
    background: var(--element-color-so-shallow);
    padding: 0.1em 0.3em;
    border-radius: 3px;
}

/* Selection */
.post-content ::selection {
    background: var(--element-color-so-shallow);
    color: var(--element-color-deep);
}

/* Mobile responsive */
@media (max-width: 700px) {
    .post-content {
        line-height: 2;
        letter-spacing: 0.5px;
    }

    .post-content h1 {
        font-size: 1.5rem;
    }

    .post-content h2 {
        font-size: 1.2rem;
    }

    .post-content h3 {
        font-size: 1.1rem;
    }

    .post-content pre {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
}

/* Editorial reading system shared by legacy long-form notes. */
body.legacy-article-page {
    margin: 0 !important;
    min-width: 20rem;
    color: var(--text-light) !important;
    background: var(--paper) !important;
    font-family: var(--sans) !important;
    letter-spacing: 0 !important;
}

.legacy-article-page .wrapper {
    min-height: 100dvh;
}

.legacy-article-page .site-header {
    position: relative;
    color: var(--text-dark);
    background: var(--ink);
}

.legacy-article-page .main {
    padding: 0 0 8rem;
}

.legacy-article-page .main > .container {
    width: min(100%, 58rem);
    margin: 0 auto;
    padding: 0 2rem;
}

.legacy-article-page .gofav-header-card {
    max-width: 54rem !important;
    margin: 0 auto 3rem !important;
    padding: 6.5rem 0 2.5rem !important;
    display: block !important;
    border-bottom: 1px solid var(--line-light);
    border-radius: 0 !important;
    color: var(--text-light) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.legacy-article-page .gofav-header-title {
    max-width: 18ch;
    margin: 0 0 2rem !important;
    color: var(--text-light) !important;
    font-family: var(--display) !important;
    font-size: 4.2rem !important;
    font-weight: 400 !important;
    line-height: 1.02 !important;
    letter-spacing: 0 !important;
    text-wrap: balance;
}

.legacy-article-page .gofav-header-meta {
    display: flex !important;
    gap: 1.5rem !important;
    color: var(--text-light-muted) !important;
    font-family: var(--mono);
    font-size: 0.76rem !important;
    font-variant-numeric: tabular-nums;
}

.legacy-article-page .gofav-header-date,
.legacy-article-page .gofav-header-category {
    padding: 0 !important;
    color: var(--oxblood) !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.legacy-article-page .language-notice {
    max-width: 54rem;
    margin: -1.5rem auto 3.5rem;
}

.legacy-article-page .language-notice p {
    margin: 0.7rem 0 0;
    color: var(--text-light);
    font-family: var(--display);
    font-size: 1.35rem;
    line-height: 1.45;
}

.legacy-article-page .gofav-card.post-content,
.legacy-article-page .post-content {
    max-width: 54rem !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--text-light) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: var(--sans) !important;
    font-size: 1.05rem;
    line-height: 1.9 !important;
    letter-spacing: 0 !important;
}

.legacy-article-page .post-content p,
.legacy-article-page .post-content li {
    color: #34383b !important;
    font-size: 1.05rem !important;
    line-height: 1.9 !important;
}

.legacy-article-page .post-content h1,
.legacy-article-page .post-content h2,
.legacy-article-page .post-content h3,
.legacy-article-page .post-content h4,
.legacy-article-page .post-content h5,
.legacy-article-page .post-content h6 {
    position: relative;
    color: var(--text-light) !important;
    background: transparent !important;
    -webkit-text-fill-color: currentColor !important;
    font-family: var(--display) !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-wrap: balance;
    box-shadow: none !important;
    transform: none !important;
}

.legacy-article-page .post-content h2 {
    margin: 5.5rem 0 1.5rem !important;
    padding: 1.2rem 0 0 !important;
    border-top: 1px solid var(--line-light);
    border-radius: 0 !important;
    font-size: 2.4rem !important;
    line-height: 1.15 !important;
}

.legacy-article-page .post-content h3 {
    margin: 3.5rem 0 1rem !important;
    padding: 0 !important;
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
}

.legacy-article-page .post-content h1::before,
.legacy-article-page .post-content h2::before,
.legacy-article-page .post-content h3::before,
.legacy-article-page .post-content h4::before,
.legacy-article-page .post-content h5::before,
.legacy-article-page .post-content h6::before,
.legacy-article-page .post-content h1::after,
.legacy-article-page .post-content h2::after,
.legacy-article-page .post-content h3::after,
.legacy-article-page .post-content h4::after,
.legacy-article-page .post-content h5::after,
.legacy-article-page .post-content h6::after {
    display: none !important;
}

.legacy-article-page .post-content a {
    color: var(--oxblood) !important;
    border-bottom: 1px solid currentColor;
}

.legacy-article-page .post-content strong {
    color: var(--text-light) !important;
    font-weight: 600 !important;
}

.legacy-article-page .post-content em {
    color: var(--text-light-muted) !important;
}

.legacy-article-page .post-content blockquote {
    margin: 2.5rem 0 !important;
    padding: 1.25rem 1.5rem !important;
    border-left: 2px solid var(--oxblood) !important;
    color: var(--text-light-muted) !important;
    background: var(--paper-bright) !important;
}

.legacy-article-page .post-content code {
    padding: 0.15rem 0.35rem !important;
    border-radius: 3px !important;
    color: #6b241f !important;
    background: #e8ddd5 !important;
    font-family: var(--mono) !important;
}

.legacy-article-page .post-content pre {
    position: relative;
    margin: 2rem 0 !important;
    padding: 2rem !important;
    overflow: auto;
    border: 1px solid var(--line-dark) !important;
    border-radius: var(--radius) !important;
    color: var(--text-dark) !important;
    background: var(--ink) !important;
    box-shadow: none !important;
    font-family: var(--mono) !important;
}

.legacy-article-page .post-content pre::before,
.legacy-article-page .post-content pre::after {
    display: none !important;
}

.legacy-article-page .post-content pre code {
    padding: 0 !important;
    color: var(--text-dark) !important;
    background: transparent !important;
}

.legacy-article-page .post-content img {
    margin: 2.5rem auto !important;
    border: 1px solid var(--line-light);
    border-radius: var(--radius) !important;
    box-shadow: none !important;
}

.legacy-article-page .copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    min-width: 3.5rem;
    min-height: 2rem;
    padding: 0 0.65rem;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    color: var(--text-dark-muted);
    background: var(--ink-soft);
    cursor: pointer;
}

.legacy-article-page .site-footer {
    margin-top: auto;
}

@media (max-width: 700px) {
    .legacy-article-page .main > .container {
        padding-inline: 1rem;
    }

    .legacy-article-page .gofav-header-card {
        padding-top: 4.5rem !important;
    }

    .legacy-article-page .gofav-header-title {
        font-size: 2.75rem !important;
    }

    .legacy-article-page .gofav-header-meta {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 0.4rem !important;
    }

    .legacy-article-page .post-content h2 {
        margin-top: 4rem !important;
        font-size: 2rem !important;
    }

    .legacy-article-page .post-content h3 {
        font-size: 1.5rem !important;
    }

    .legacy-article-page .post-content pre {
        padding: 2.8rem 1rem 1.25rem !important;
        font-size: 0.82rem !important;
    }
}
