/* Article-only styles. The feed, header and footer keep their existing design. */
.article-main [hidden]{display:none!important}
.article-main{padding-top:176px;padding-bottom:96px}
.post-header{display:flex;flex-direction:column;align-items:flex-start}
.post-header h1{max-width:900px;font-size:58px;font-weight:400;line-height:1.08;letter-spacing:-.035em;text-wrap:balance}
.post-description{max-width:768px;margin:24px 0 0;color:var(--muted);font-size:20px;line-height:1.625}
.article-meta{width:100%;min-height:77px;margin-top:32px;padding-bottom:32px;gap:20px}
.article-author{display:flex;align-items:center;gap:12px;min-height:44px;max-width:100%;border-radius:999px}
.author-avatar{width:44px;height:44px;flex:none;border-radius:50%;object-fit:cover}
.article-author .author-name{overflow-wrap:anywhere}
.article-author:hover .author-name{color:var(--blue-ink)}
.breadcrumb .category-label{margin:0;padding:0;background:none;font-size:14px;border-radius:4px}
.author-initial{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;border-radius:50%;background:#eaf3fb;color:var(--blue-ink);font:500 18px/1 var(--heading)}
.article-date{margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:14px;line-height:1.5;color:var(--faint)}
.reading-time::before{content:'·';margin-right:6px}
.post-cover{margin:48px 0 0}
.post-cover img{width:100%;height:auto;aspect-ratio:auto;object-fit:initial;border-radius:24px}
.post-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:48px;margin-top:48px;align-items:start}
.article-reading{min-width:0;max-width:768px}
.post-body{max-width:none;margin:0;font-size:18px;line-height:1.85;color:#4d4d4d;overflow-wrap:anywhere}
.post-body h2,.post-body h3,.post-body h4{color:var(--fg);font-weight:400;scroll-margin-top:112px}
.post-body h2{margin:56px 0 16px;font-size:30px;line-height:1.15;letter-spacing:-.03em}
.post-body h3{margin:36px 0 14px;font-size:24px;line-height:1.25;letter-spacing:-.02em}
.post-body p,.post-body ul,.post-body ol{margin:20px 0}
.post-body li{margin:8px 0}
.post-body li>p{margin:0 0 6px}
.post-body ul::marker,.post-body ol::marker{color:#858585}
.post-body strong{font-weight:600;color:var(--fg)}
.post-body blockquote{margin:32px 0;padding:0 0 0 24px;border-left:2px solid #c4c4c4;border-radius:0;background:none;color:var(--fg);font:400 20px/1.4 var(--heading)}
.post-body blockquote p{margin:8px 0}
.post-body pre{margin:28px 0;padding:20px 24px;border:1px solid #e4e4e4;border-radius:16px;background:#f3f4f5}
.post-body code{background:#f0f1f2}
.post-body pre code{background:none}
.post-body table{margin:32px 0;font-size:16px;line-height:1.625}
.post-body th,.post-body td{padding:8px 12px}
.post-body th{background:none;color:var(--fg);font-weight:500;border-bottom-color:#c4c4c4}
.post-body>:first-child{margin-top:0}
.article-end{max-width:none;margin:56px 0 0;padding-top:32px}
.post-toc{min-width:0;border-left:1px solid var(--line);padding-left:20px;font-size:14px;line-height:1.625}
.toc-label{margin:0 0 16px;font-size:14px;font-weight:500;color:var(--fg)}
.post-toc ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.post-toc a{display:block;color:var(--muted);overflow-wrap:anywhere}
.post-toc a:hover,.post-toc a[aria-current="location"]{color:var(--blue-ink)}
.post-toc a[aria-current="location"]{font-weight:500}
.toc-mobile{display:none}
.toc-mobile summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;cursor:pointer;list-style:none;color:var(--fg);font-weight:500}
.toc-mobile summary::-webkit-details-marker{display:none}
.toc-mobile summary span{font-size:20px;transition:transform .2s ease}
.toc-mobile[open] summary span{transform:rotate(45deg)}
.toc-mobile ol{padding:12px 0 8px}
@media(min-width:1024px){.post-layout.has-toc{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:48px}.has-toc .article-reading{grid-column:1/span 8;grid-row:1}.post-toc{grid-column:10/span 3;grid-row:1;position:sticky;top:112px;max-height:calc(100dvh - 144px);overflow-y:auto;scrollbar-width:thin;padding-right:4px}}
@media(max-width:1023px){.post-layout{gap:32px}.toc-desktop{display:none}.toc-mobile{display:block}.post-toc{max-width:768px;grid-row:1}.has-toc .article-reading{grid-row:2}.toc-mobile a{padding:6px 0}}
@media(max-width:767px){.article-main{padding-top:144px;padding-bottom:64px}.post-header h1{font-size:38px}.post-description{font-size:18px;margin-top:24px}.article-meta{gap:16px;padding-bottom:24px}.article-date{font-size:13px}.post-cover{margin-top:32px}.post-cover img{border-radius:24px;aspect-ratio:auto;height:auto}.post-layout{margin-top:40px}.post-body{font-size:17px;line-height:1.85}.post-body h2{font-size:30px;margin-top:48px}.post-body h3{font-size:22px}.post-body pre{padding:16px}.article-end{margin-top:40px}.toc-mobile a{padding:6px 0}}
@media(prefers-reduced-motion:reduce){.toc-mobile summary span{transition:none}}
