/*
Theme Name: Aron Mellow Blog
Template: mellow
Version: 1.0.0
*/
:root { --hy-font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; }
body,button,input,textarea,select,h1,h2,h3,h4,h5,h6,.dtr-logo {font-family:var(--hy-font)!important;}
body {color:#ccc;-webkit-font-smoothing:antialiased;}
h1,h2,h3,h4,h5,h6 {text-transform:none!important;font-weight:500!important;}
.dtr-logo {font-size:26px!important;font-weight:600;white-space:nowrap;}
.dtr-page-title {font-size:clamp(32px,4.4vw,64px)!important;line-height:1.35!important;}
.single-post #dtr-main-wrapper {max-width:960px;}
.dtr-single-post__content {font-size:18px;line-height:1.95;overflow-wrap:anywhere;}
.dtr-single-post__content p {margin-bottom:1.5em;}
.dtr-single-post__content img {max-width:100%;height:auto;}
.dtr-single-post__content pre {overflow:auto;padding:24px;background:#191919;border:1px solid #333;border-radius:12px;}
.dtr-single-post__content table {display:block;max-width:100%;overflow:auto;}
.dtr-single-post__content :is(h2,h3,h4) {margin-top:1.8em;line-height:1.5;}
.hy-blog-footer {display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;padding:48px 0;color:#aaa;border-top:1px solid #292929;}
.hy-blog-footer nav {display:flex;gap:24px;align-items:center;}
.hy-blog-footer p {margin:12px 0 0;max-width:520px;}
.hy-blog-footer a {color:#eee;}
@media(max-width:767px){.dtr-single-post__content{font-size:17px;line-height:1.9}.hy-blog-footer{padding:32px 12px}.dtr-page-title{font-size:32px!important;}.dtr-logo{font-size:23px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}

.dtr-main-nav a {text-transform:none!important;}
.hy-mobile-search{display:none;padding:12px 24px 20px;}
#dtr-responsive-header:has(.dtr-hamburger.is-active) .hy-mobile-search{display:block;}

/* Covers follow their natural ratio and fill the card width. */
.dtr-entry-thumb a{display:block;overflow:hidden;}
.dtr-entry-thumb img{display:block;width:100%;height:auto;}
.hy-category-intro{max-width:680px;margin:22px auto 0;color:#bbb;font-size:18px;line-height:1.85;}
.hy-toc{padding:24px 28px;margin:0 0 40px;border:1px solid #333;border-radius:16px;background:#111;}
.hy-toc summary{cursor:pointer;color:#fff;font-weight:500;min-height:44px;line-height:44px;}
.hy-toc ul{list-style:none;padding:8px 0 0;margin:0;}
.hy-toc li{margin:0;line-height:1.65;}
.hy-toc a{display:block;padding:9px 0;color:#bbb;font-size:16px;text-decoration:none;}
.hy-toc .hy-toc-level-3{padding-left:20px;}
.hy-toc a:hover{color:#fff;}
.dtr-single-post__content :is(h2,h3){scroll-margin-top:110px;}
.hy-related{margin-top:56px;padding-top:40px;border-top:1px solid #333;}
.hy-related>h2{font-size:28px;margin:0 0 28px;}
.hy-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;}
.hy-related-card{display:block;min-width:0;text-decoration:none!important;}
.hy-related-card img{display:block;width:100%;height:auto;border-radius:12px;}
.hy-related-card h3{font-size:19px;line-height:1.6;margin:16px 0 10px;}
.hy-related-card time{font-size:14px;color:#aaa;}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible{outline:2px solid #fff;outline-offset:5px;}
@media(max-width:767px){
 .hy-category-intro{font-size:16px;margin-top:16px;padding:0 8px;}
 .hy-toc{padding:16px 20px;margin-bottom:32px;}
 .hy-related-grid{grid-template-columns:1fr;gap:32px;}
 .hy-related{margin-top:36px;padding-top:28px;}
 .hy-related-card h3{font-size:21px;}
 .dtr-post-item__content{padding:24px!important;}
 .dtr-entry-title{font-size:25px!important;line-height:1.5!important;}
 .dtr-read-more,.dtr-search-submit,#dtr-menu-button{min-height:44px;min-width:44px;}
}
