/* Shared Mooyan shell and native Blocksy reading layouts. */
body.wp-child-theme-mooyan { background: var(--mooyan-color-background); color: var(--mooyan-color-text); font-family: var(--mooyan-font-family); }
body.wp-child-theme-mooyan :is(h1,h2,h3,h4) { color: var(--mooyan-color-text); }
body.wp-child-theme-mooyan :is(a,button,input,textarea,select):focus-visible { outline: 2px solid var(--mooyan-color-accent); outline-offset: 4px; }
.mooyan-layout { color: var(--mooyan-color-text); font-family: var(--mooyan-font-family); line-height: var(--mooyan-line-height); }
.mooyan-container { box-sizing: border-box; width: calc(100% - 2 * var(--mooyan-page-gutter)); max-width: var(--mooyan-content-max-width); margin-inline: auto; }
body.wp-child-theme-mooyan #header [data-device] > [data-row="middle"] { background: transparent; border: 0; padding-block: 20px; }
body.wp-child-theme-mooyan #header [data-device] > [data-row="middle"] > .ct-container {
 --height: 70px; width: calc(100% - 2 * var(--mooyan-page-gutter)); max-width: var(--mooyan-content-max-width); padding-inline: 26px; border: 1px solid var(--mooyan-color-border); border-radius: 24px; background: var(--mooyan-nav-background); box-shadow: 0 6px 22px rgba(30,40,60,.025); backdrop-filter: blur(8px);
}
body.wp-child-theme-mooyan #header .site-title { font-size: 19px; font-weight: 650; letter-spacing: .02em; }
body.wp-child-theme-mooyan #header .site-title a { display: inline-flex; align-items: center; gap: 10px; color: var(--mooyan-color-text); }
body.wp-child-theme-mooyan #header .site-title a::before { content: ''; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; background: #14354c url('https://img.mooyan.me/img/2026/09/canvas-output-1781782591670.png') center / cover; }
body.wp-child-theme-mooyan #header .ct-menu-link { font-size: 13px; color: var(--mooyan-color-muted); }
body.wp-child-theme-mooyan #header .ct-menu-link:hover { color: var(--mooyan-color-accent); }
body.wp-child-theme-mooyan #offcanvas { --theme-text-color: var(--mooyan-color-text); --theme-background-color: var(--mooyan-color-surface); }
body:is(.archive,.search) #main > .ct-container { width: calc(100% - 2 * var(--mooyan-page-gutter)); max-width: var(--mooyan-content-max-width); padding-block: 48px 80px; }
body:is(.archive,.search) #main .hero-section { margin-bottom: 36px; }
body:is(.archive,.search) #main .page-title { font-size: clamp(28px,3.5vw,42px); line-height: 1.4; font-weight: 650; }
body:is(.archive,.search) #main .ct-title-label { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 500; color: var(--mooyan-color-muted); }
body:is(.single-post,.page) #main > .ct-container-full { padding-block: 52px 68px; }
body:is(.single-post,.page) #main article > .hero-section { width: calc(100% - 2 * var(--mooyan-page-gutter)); max-width: var(--mooyan-reading-width); margin-inline: auto; margin-bottom: 34px; padding-bottom: 28px; border-bottom: 1px solid var(--mooyan-color-border); }
body:is(.single-post,.page) #main .page-title { font-size: clamp(28px,3.2vw,42px); font-weight: 650; line-height: 1.4; letter-spacing: -.015em; overflow-wrap: anywhere; }
body:is(.single-post,.page) #main .entry-header .entry-meta { margin-top: 22px; font-size: 12px; color: var(--mooyan-color-muted); gap: 12px; flex-wrap: wrap; }
body:is(.single-post,.page) #main .entry-header .entry-meta a { color: var(--mooyan-color-muted); }
body.single-post #main .entry-header .meta-categories a { color: var(--mooyan-color-accent); }
body:is(.single-post,.page) #main article > .entry-content { --theme-content-width: 100%; --theme-wide-offset: 0px; width: calc(100% - 2 * var(--mooyan-page-gutter)); max-width: var(--mooyan-reading-width); margin-inline: auto; font-size: 17px; line-height: 1.95; overflow-wrap: anywhere; }
body:is(.single-post,.page) #main .entry-content > * { max-width: 100%; }
body:is(.single-post,.page) #main .entry-content :is(.alignwide,.alignfull) { width: 100%; max-width: 100%; margin-inline: 0; }
body:is(.single-post,.page) #main .entry-content p { margin-block: 0 1.4em; }
body:is(.single-post,.page) #main .entry-content h2 { margin-block: 2.1em .8em; font-size: 27px; font-weight: 650; line-height: 1.5; scroll-margin-top: 24px; }
body:is(.single-post,.page) #main .entry-content h3 { margin-block: 1.7em .7em; font-size: 21px; font-weight: 600; line-height: 1.5; }
body:is(.single-post,.page) #main .entry-content h4 { margin-top: 1.5em; font-size: 18px; }
body:is(.single-post,.page) #main .entry-content :is(ul,ol) { padding-inline-start: 1.5em; margin-block: 1em 1.5em; }
body:is(.single-post,.page) #main .entry-content li { margin-block: .45em; }
body:is(.single-post,.page) #main .entry-content li::marker { color: var(--mooyan-color-accent); }
body:is(.single-post,.page) #main .entry-content :is(img,video,iframe) { max-width: 100%; }
body:is(.single-post,.page) #main .entry-content img { height: auto; border-radius: 8px; }
body:is(.single-post,.page) #main .entry-content figcaption { font-size: 13px; color: var(--mooyan-color-muted); }
body:is(.single-post,.page) #main .entry-content blockquote { margin: 28px 0; padding: 8px 0 8px 24px; border-left: 3px solid #7aaab8; background: transparent; color: var(--mooyan-color-muted); font-size: 17px; }
body:is(.single-post,.page) #main .entry-content blockquote p:last-child { margin-bottom: 0; }
body:is(.single-post,.page) #main .entry-content a { text-decoration: underline; text-decoration-color: #aac8d0; text-underline-offset: 4px; overflow-wrap: anywhere; }
body:is(.single-post,.page) #main .entry-content a:hover { text-decoration-color: currentColor; }
body:is(.single-post,.page) #main .entry-content code { padding: .2em .4em; border-radius: 4px; background: #e8eef4; color: #19536b; font-size: .86em; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; overflow-wrap: anywhere; }
body:is(.single-post,.page) #main .entry-content pre { max-width: 100%; overflow-x: auto; padding: 24px; border-radius: 10px; background: #142a40; color: #dce9f2; font-size: 14px; line-height: 1.8; white-space: pre; }
body:is(.single-post,.page) #main .entry-content pre code { padding: 0; background: transparent; color: inherit; white-space: pre; overflow-wrap: normal; }
body:is(.single-post,.page) #main .entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
body:is(.single-post,.page) #main .entry-content :is(th,td) { padding: 12px 16px; border: 1px solid var(--mooyan-color-border); }
body:is(.single-post,.page) #main .entry-content th { background: #eaf1f6; font-weight: 600; }
body.wp-child-theme-mooyan .ct-comments-container { background: transparent; border-top: 1px solid var(--mooyan-color-border); }
body.wp-child-theme-mooyan .ct-comments-container > .ct-container-narrow { width: calc(100% - 2 * var(--mooyan-page-gutter)); max-width: var(--mooyan-reading-width); padding-block: 40px 56px; }
body.wp-child-theme-mooyan #reply-title { font-size: 24px; font-weight: 600; }
body.wp-child-theme-mooyan .comment-form :is(input:not([type=checkbox]):not([type=hidden]),textarea) { border-radius: 8px; border-color: var(--mooyan-color-border); background: var(--mooyan-color-surface); color: var(--mooyan-color-text); max-width: 100%; }
body.wp-child-theme-mooyan .comment-notes { font-size: 13px; color: var(--mooyan-color-muted); }
body.wp-child-theme-mooyan .comment-form .submit { background: var(--mooyan-color-text); border-radius: 8px; color: white; }
body.mooyan-about #main .about-page { width: 100%; max-width: 100%; }
body.mooyan-about #main .about-page .about-card { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; margin-bottom: 40px; }
body.mooyan-about #main .about-page .profile-card { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 30px; align-items: center; padding: 30px; border: 1px solid var(--mooyan-color-border); border-radius: 12px; background: var(--mooyan-nav-background); }
body.mooyan-about #main .profile-avatar { width: 104px; min-width: 0; }
body.mooyan-about #main .profile-avatar img { width: 104px; height: 104px; object-fit: cover; border-radius: 50%; }
body.mooyan-about #main .profile-info { min-width: 0; }
body.mooyan-about #main .profile-info h2 { margin: 0 0 12px; }
body.mooyan-about #main .profile-info ul { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--mooyan-color-muted); }
body.mooyan-message #main article > .entry-content h1 { font-size: 22px; color: var(--mooyan-color-muted); font-weight: 400; }
body.mooyan-status-page #main #bber { width: 100% !important; margin-top: 0; }
body.mooyan-status-page #main #bber .bb-list-ul { padding: 0; margin: 0; }
body.mooyan-status-page #main #bber .bb-list-li { list-style: none; margin: 0 0 32px; }
body.mooyan-status-page #main #bber .bb-div { padding: 0 0 28px; border-bottom: 1px solid var(--mooyan-color-border); }
body.mooyan-status-page #main #bber .datacont { margin: 20px 0 0; padding: 0 0 0 22px; min-height: 0; border-left: 1px solid #bdcedb; }
body.mooyan-status-page #main #bber .datacont p { font-size: 16px; line-height: 1.95; letter-spacing: 0; margin: 0 0 14px; }
body.mooyan-status-page #main #bber .hy-name { color: var(--mooyan-color-text); font-size: 13px; }
body.mooyan-status-page #main #bber .hy-time { color: var(--mooyan-color-muted); font-size: 12px; }
body.mooyan-status-page #main #bber .hy-avatar { width: 32px; height: 32px; border-radius: 10px; }
body.mooyan-status-page #main #bber .hy-tag { margin-top: 18px; }
body.mooyan-status-page #main #bber .commentsLink { color: var(--mooyan-color-accent); border: 1px solid #c5d6df; padding: 5px 12px; border-radius: 6px; }
body.mooyan-status-page #main #bber .resimg { max-width: 100%; }
body.mooyan-status-page #main .mooyan-status-fallback { padding: 20px 0 20px 22px; border-left: 1px solid #bdcedb; color: var(--mooyan-color-muted); font-size: 15px; }
@media(max-width:999px) {
 body.wp-child-theme-mooyan #header [data-device="mobile"] > [data-row="middle"] > .ct-container { --height: 60px; padding-inline: 14px; border-radius: 20px; }
 body.wp-child-theme-mooyan #header .site-title { font-size: 17px; }
 body.wp-child-theme-mooyan #header .site-title a { gap: 8px; }
 body.wp-child-theme-mooyan #header .site-title a::before { width: 24px; height: 24px; flex-basis: 24px; }
}
@media(max-width:767px) {
 body:is(.single-post,.page) #main > .ct-container-full { padding-block: 32px 44px; }
 body:is(.single-post,.page) #main .page-title { font-size: 28px; }
 body:is(.single-post,.page) #main article > .hero-section { margin-bottom: 26px; padding-bottom: 22px; }
 body:is(.single-post,.page) #main article > .entry-content { font-size: 16px; line-height: 1.95; }
 body:is(.single-post,.page) #main .entry-content h2 { font-size: 23px; }
 body:is(.single-post,.page) #main .entry-content h3 { font-size: 19px; }
 body:is(.single-post,.page) #main .entry-content pre { padding: 18px; font-size: 13px; }
 body:is(.archive,.search) #main > .ct-container { padding-block: 32px 52px; }
 body:is(.archive,.search) #main .hero-section { margin-bottom: 26px; }
 body.mooyan-about #main .about-page .profile-card { padding: 22px; gap: 18px; grid-template-columns: minmax(0,1fr); }
 body.mooyan-about #main .profile-avatar { width: 80px; }
 body.mooyan-about #main .profile-avatar img { width: 80px; height: 80px; }
 body.wp-child-theme-mooyan .comment-form { grid-template-columns: minmax(0,1fr); }
 body.wp-child-theme-mooyan .comment-form > p { min-width: 0; }
 body.wp-child-theme-mooyan .ct-comments-container > .ct-container-narrow { padding-block: 32px 44px; }
}

.mooyan-mode { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 32px; min-height: 0; padding: 0; margin-left: 12px; border: 0; border-radius: 50%; background: transparent; color: var(--mooyan-color-muted); cursor: pointer; }
.mooyan-mode:hover { background: var(--mooyan-color-surface); color: var(--mooyan-color-text); }
[data-mooyan-theme="dark"] body:is(.single-post,.page) #main .entry-content code { background: #303b4a; color: #b4d6e2; }
[data-mooyan-theme="dark"] body:is(.single-post,.page) #main .entry-content th { background: #28313f; }
@media(max-width:999px) {
 body.wp-child-theme-mooyan #header [data-device="mobile"] > [data-row="middle"] { padding-block: 12px; }
 body.wp-child-theme-mooyan #header [data-device="mobile"] .site-title { font-size: 15px; }
 .mooyan-mode { margin-left: 8px; width: 24px; flex-basis: 24px; }
}
/* Unified floating native header: the theme owns appearance, Blocksy owns actions. */
body.wp-child-theme-mooyan #header [data-device]>[data-row="middle"]{padding-block:22px}
body.wp-child-theme-mooyan #header [data-device]>[data-row="middle"]>.ct-container{--height:72px;padding-inline:28px;border-radius:22px;border-color:var(--mooyan-color-border);box-shadow:0 12px 32px rgba(15,45,91,.07);background:var(--mooyan-nav-background)}
body.wp-child-theme-mooyan #header .site-title{font-size:22px}
body.wp-child-theme-mooyan #header .site-title a{gap:10px;white-space:nowrap}
body.wp-child-theme-mooyan #header .site-title a::before{width:34px;height:34px;flex-basis:34px;border-radius:50%;background-color:transparent}
.mooyan-brand-cn{letter-spacing:.06em}.mooyan-brand-en{font-family:Georgia,serif;font-size:20px;letter-spacing:-.05em;font-weight:600}
body.wp-child-theme-mooyan #header .ct-menu-link{--menu-item-padding:0 12px;font-size:13px;font-weight:500}
body.wp-child-theme-mooyan #header :is(.ct-header-search,.ct-header-trigger){color:var(--mooyan-color-text);--icon-size:18px}
body.wp-child-theme-mooyan #header .mooyan-mode{display:grid;width:38px;flex-basis:38px;height:28px;border-radius:0;border-left:1px solid var(--mooyan-color-border);padding-left:12px;margin-left:14px;background:transparent;color:var(--mooyan-color-text)}
body.wp-child-theme-mooyan #header .mooyan-mode:hover{color:var(--mooyan-color-accent)}
body.wp-child-theme-mooyan :is(#offcanvas,#search-modal){--theme-background-color:var(--mooyan-color-surface);--theme-text-color:var(--mooyan-color-text);--theme-link-initial-color:var(--mooyan-color-text);--theme-border-color:var(--mooyan-color-border)}
body.wp-child-theme-mooyan .ct-panel-inner{background:var(--mooyan-color-surface);color:var(--mooyan-color-text)}
/* Calm inner-page typography and existing plugin content. */
body:is(.page,.single-post) #main .page-title{font-family:'Songti SC','Noto Serif SC',SimSun,serif;font-weight:700}
body.single-post #main .entry-content{color:var(--mooyan-color-text)}
body:is(.page,.single-post) #main .entry-content blockquote{border-color:var(--mooyan-color-accent);padding:18px 24px;background:var(--mooyan-nav-background);border-radius:0 8px 8px 0}
body.wp-child-theme-mooyan .comment-form .submit{background:#0f2d5b;color:#fff}
body.wp-child-theme-mooyan .ct-comment-list .comment-body{border-color:var(--mooyan-color-border)}
body.mooyan-about #main .about-card:not(.profile-card)>h2{border-bottom:1px solid var(--mooyan-color-border);padding-bottom:14px}
body.mooyan-about #main .about-page .profile-card{background:var(--mooyan-nav-background);box-shadow:var(--mooyan-shadow-soft)}
body.mooyan-friends #main .friends-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
body.mooyan-friends #main .friend-card{min-width:0;padding:22px;border:1px solid var(--mooyan-color-border);border-radius:12px;background:var(--mooyan-color-surface);box-shadow:var(--mooyan-shadow-soft);transition:transform .2s,border-color .2s}
body.mooyan-friends #main .friend-card:hover{transform:translateY(-2px);border-color:var(--mooyan-color-accent)}
body.mooyan-friends #main .friend-card-header{display:flex;align-items:center;gap:14px}
body.mooyan-friends #main .friend-icon{width:48px;height:48px;object-fit:cover;border-radius:50%}
body.mooyan-friends #main .friend-info{min-width:0}
body.mooyan-friends #main .friend-name{font-size:18px;margin:0 0 4px}
body.mooyan-friends #main .friend-description{font-size:13px;margin:0;color:var(--mooyan-color-muted)}
body.mooyan-friends #main .friend-latest-post{margin-top:18px;padding-top:14px;border-top:1px solid var(--mooyan-color-border);font-size:13px;line-height:1.7}
body.mooyan-friends #main .friend-latest-post a{display:block;text-decoration:none}
body.mooyan-friends #main .latest-post-date{display:block;font-size:11px;margin-top:8px;color:var(--mooyan-color-muted)}
body.mooyan-friends #main .entry-content>pre:has(code:empty){display:none}
body.mooyan-status-page #main #bber :is(.bb-div,.datacont){background:transparent;color:var(--mooyan-color-text)}
body.mooyan-status-page #main #bber .datacont{border-color:var(--mooyan-color-border)}
body.mooyan-status-page #main #bber :is(.hy-tag,.commentsLink){color:var(--mooyan-color-accent);border-color:var(--mooyan-color-border)}
body.wp-child-theme-mooyan :is(.ct-pagination,.ct-breadcrumbs){color:var(--mooyan-color-muted)}
/* The approved homepage retains its light palette; dark surfaces are opt-in. */
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan{background:var(--mooyan-color-background);color:var(--mooyan-color-text)}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan :is(.entry-card,.mooyan-home-mini,.mooyan-card-arrow,.mooyan-home-mini__arrow){background:var(--mooyan-color-surface)!important;border-color:var(--mooyan-color-border)!important}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan :is(.entry-title a,.mooyan-home-mini h3,.mooyan-home-mini__link,.mooyan-home-mini__arrow,.mooyan-card-arrow,.mooyan-latest-header h2,.mooyan-home-section__heading h2){color:var(--mooyan-color-text)!important}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan :is(.entry-excerpt,.entry-meta,.mooyan-card-comments,.mooyan-home-mini time,.mooyan-home-empty){color:var(--mooyan-color-muted)!important}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan :is(.mooyan-latest-header,.mooyan-home-section__heading)>a{color:var(--mooyan-color-accent)}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan .mooyan-hero{background:#152236}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan .mooyan-hero::before{background:#223348}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan :is(.mooyan-hero__subtitle,.mooyan-hero__intro){color:var(--mooyan-color-muted)}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan .mooyan-hero__highlight::after{background:#665843}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan .mooyan-hero__cta{background:#345a87}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan .entry-card .meta-categories a{color:#dfcfb7;background:#3d352c}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan .entry-card:nth-child(2) .meta-categories a{color:#a9c8ec;background:#283d58}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan .mooyan-home-mini__tag{color:var(--mooyan-color-accent)}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan .mooyan-post-cover:not(.mooyan-post-cover--art){background:#23364b}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan .search-form :is(input,button){color:var(--mooyan-color-text)}
@media(max-width:999px){body.wp-child-theme-mooyan #header [data-device="mobile"]>[data-row="middle"]{padding-block:14px}body.wp-child-theme-mooyan #header [data-device="mobile"]>[data-row="middle"]>.ct-container{--height:62px;padding-inline:16px;border-radius:18px}body.wp-child-theme-mooyan #header [data-device="mobile"] .site-title{font-size:20px}body.wp-child-theme-mooyan #header [data-device="mobile"] .site-title a::before{width:30px;height:30px;flex-basis:30px}.mooyan-brand-en{font-size:18px}body.wp-child-theme-mooyan #header [data-device="mobile"] .mooyan-mode{width:30px;flex-basis:30px;padding-left:8px;margin-left:8px}}
@media(max-width:767px){body.mooyan-friends #main .friends-grid{grid-template-columns:minmax(0,1fr)}body.mooyan-friends #main .friend-card{padding:20px}body.mooyan-status-page #main #bber .datacont{padding-left:16px}body.wp-child-theme-mooyan .ct-comments-container{overflow-wrap:anywhere}}
@media(max-width:359px){body.wp-child-theme-mooyan #header [data-device="mobile"]>.ct-container{padding-inline:12px}body.wp-child-theme-mooyan #header [data-device="mobile"]>[data-row="middle"]>.ct-container{padding-inline:10px}body.wp-child-theme-mooyan #header [data-device="mobile"] .site-title{font-size:18px}body.wp-child-theme-mooyan #header [data-device="mobile"] .site-title a{gap:6px}.mooyan-brand-en{font-size:16px}body.wp-child-theme-mooyan #header [data-device="mobile"] [data-items="primary"]{--header-item-spacing:8px}}
@media(prefers-reduced-motion:reduce){body.mooyan-friends #main .friend-card{transition:none}.friend-card:hover{transform:none}}
body.wp-child-theme-mooyan #header .ct-header-search{background:transparent;border:0;box-shadow:none}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan .mooyan-home-footer-social a:hover{color:var(--mooyan-color-accent)}
/* Carry the homepage's paper-and-ink language into native inner pages. */
body.wp-child-theme-mooyan:not(.home){--mooyan-paper-background:#faf9f6;--mooyan-paper-tint:#f4eadb;--mooyan-paper-line:#e9d7be;--mooyan-editorial-title:'Songti SC','Noto Serif SC',SimSun,serif}
body.wp-child-theme-mooyan:not(.home) #main{background:var(--mooyan-paper-background)}
body.wp-child-theme-mooyan:not(.home) #main :is(.page-title,.entry-title,.entry-content h2,.entry-content h3,.mooyan-category-shell h1,.mooyan-posts-toolbar h2,.mooyan-tile h3){font-family:var(--mooyan-editorial-title);color:var(--mooyan-color-text);font-weight:700}
body.wp-child-theme-mooyan:not(.home) #main .hero-section{padding-top:8px;padding-bottom:28px;border-bottom:1px solid var(--mooyan-paper-line)}
body.wp-child-theme-mooyan:not(.home) #main .page-title{line-height:1.5;letter-spacing:.01em}
body.wp-child-theme-mooyan:not(.home) #main .entry-header .meta-categories a{display:inline-block;background:var(--mooyan-paper-tint);color:#6f624e;padding:3px 10px;border-radius:14px;font-size:12px;text-decoration:none}
body.wp-child-theme-mooyan:not(.home) #main .entry-content h2{position:relative;padding-left:16px}
body.wp-child-theme-mooyan:not(.home) #main .entry-content h2::before{content:'';position:absolute;left:0;top:.3em;width:4px;height:1em;border-radius:3px;background:var(--mooyan-color-accent)}
body.wp-child-theme-mooyan:not(.home) #main .entry-content :is(blockquote,th){background:var(--mooyan-paper-tint)}
body.wp-child-theme-mooyan:not(.home) #main .entry-content code{background:var(--mooyan-paper-tint);color:var(--mooyan-color-accent-hover)}
body.wp-child-theme-mooyan:not(.home) #main .entry-content pre code{background:transparent;color:inherit}
body.wp-child-theme-mooyan:not(.home) #main .entry-content a{text-decoration-color:var(--mooyan-paper-line)}
body.mooyan-about #main .about-page .profile-card{background:var(--mooyan-color-surface);border-color:var(--mooyan-paper-line);border-radius:12px;box-shadow:0 4px 20px rgba(15,45,91,.04)}
body.mooyan-about #main .profile-info h2{padding-left:0}
body.mooyan-about #main .profile-info h2::before{display:none}
body.mooyan-friends #main .friend-card{border-radius:12px;box-shadow:0 4px 20px rgba(15,45,91,.04)}
body.mooyan-friends #main .friend-name{font-family:var(--mooyan-editorial-title)}
body.mooyan-message #main .entry-content h1{font-family:var(--mooyan-editorial-title);font-size:23px;color:var(--mooyan-color-text)}
body:not(.home).wp-child-theme-mooyan .ct-comments-container{background:var(--mooyan-paper-background)}
body.wp-child-theme-mooyan:not(.home) #reply-title{font-family:var(--mooyan-editorial-title);color:var(--mooyan-color-text)}
body.mooyan-status-page #main #bber .datacont{border-left:2px solid var(--mooyan-paper-line)}
body.mooyan-status-page #main #bber .hy-avatar{border-radius:50%}
body.mooyan-status-page #main #bber .commentsLink{background:var(--mooyan-color-surface);border-radius:20px}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan:not(.home){--mooyan-paper-background:#111b2a;--mooyan-paper-tint:#2c3440;--mooyan-paper-line:#495061}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan:not(.home) #main .entry-header .meta-categories a{background:#3d352c;color:#dfcfb7}
@media(max-width:767px){body.wp-child-theme-mooyan:not(.home) #main .hero-section{padding-bottom:22px}body.wp-child-theme-mooyan:not(.home) #main .entry-content h2{padding-left:13px}}

/* Readable navigation and comfortably sized header actions. */
body.wp-child-theme-mooyan #header .ct-menu-link{font-size:15px}
body.wp-child-theme-mooyan #header :is(.ct-header-search,.ct-header-trigger){--icon-size:21px}
body.wp-child-theme-mooyan #header .mooyan-mode svg{width:21px;height:21px}

/* Keep the native header floating in the same place as the page scrolls. */
body.wp-child-theme-mooyan #header{position:sticky;top:0;z-index:50}
body.wp-child-theme-mooyan.admin-bar #header{top:32px}
body.wp-child-theme-mooyan #header [data-device]>[data-row="middle"]>.ct-container{background:rgba(246,247,249,.76);backdrop-filter:blur(18px) saturate(130%);-webkit-backdrop-filter:blur(18px) saturate(130%)}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan #header [data-device]>[data-row="middle"]>.ct-container{background:rgba(27,41,59,.76)}
html{scroll-padding-top:130px}
@media(max-width:782px){body.wp-child-theme-mooyan.admin-bar #header{top:46px}}
@media(max-width:600px){body.wp-child-theme-mooyan.admin-bar #header{top:0}}


/* Stable, targeted colour transitions; no timed wildcard or shadow/blur animation. */
body.wp-child-theme-mooyan,body.wp-child-theme-mooyan :is(#main,#footer,.ct-panel-inner,.mooyan-hero,.mooyan-paper,.entry-card,.mooyan-home-mini,.mooyan-tile,.friend-card,.profile-card,.ct-comments-container),body.wp-child-theme-mooyan #header [data-device]>[data-row="middle"]>.ct-container{transition:background-color .8s ease,color .8s ease,border-color .8s ease,transform .2s ease}
body.wp-child-theme-mooyan :is(.page-title,.entry-title,.entry-title a,.entry-excerpt,.entry-meta,.mooyan-card-comments,.mooyan-home-mini__link,.mooyan-home-mini h3,.mooyan-home-mini time,.mooyan-home-section__heading h2,.mooyan-latest-header h2,.mooyan-hero__title,.mooyan-hero__subtitle,.mooyan-hero__intro,.ct-menu-link,.site-title a,.mooyan-mode,.mooyan-home-footer-brand a,.mooyan-home-footer-brand small,.mooyan-home-footer-social a){transition:color .8s ease,background-color .8s ease,border-color .8s ease}
.mooyan-home-mini__brand::before,.mooyan-home-mini__brand::after{transition:opacity .8s ease}
@media(prefers-reduced-motion:reduce){body.wp-child-theme-mooyan,body.wp-child-theme-mooyan :is(#main,#footer,.ct-panel-inner,.mooyan-hero,.mooyan-paper,.entry-card,.mooyan-home-mini,.mooyan-tile,.friend-card,.profile-card,.ct-comments-container),body.wp-child-theme-mooyan #header [data-device]>[data-row="middle"]>.ct-container,body.wp-child-theme-mooyan :is(.page-title,.entry-title,.entry-title a,.entry-excerpt,.entry-meta,.mooyan-card-comments,.mooyan-home-mini__link,.mooyan-home-mini h3,.mooyan-home-mini time,.mooyan-home-section__heading h2,.mooyan-latest-header h2,.mooyan-hero__title,.mooyan-hero__subtitle,.mooyan-hero__intro,.ct-menu-link,.site-title a,.mooyan-mode,.mooyan-home-footer-brand a,.mooyan-home-footer-brand small,.mooyan-home-footer-social a),.mooyan-home-mini__brand::before,.mooyan-home-mini__brand::after{transition:none}}
html body.wp-child-theme-mooyan #main .entries>.entry-card{transition:background-color .8s ease,color .8s ease,border-color .8s ease,transform .2s ease!important}
@media(prefers-reduced-motion:reduce){html body.wp-child-theme-mooyan #main .entries>.entry-card{transition:none!important}}
/* Article masthead follows the reference's broad title and centred metadata. */
body.single-post.wp-child-theme-mooyan #main> .ct-container-full{padding-top:56px}
body.single-post.wp-child-theme-mooyan #main article>.hero-section{max-width:1080px;text-align:center;padding-block:0 48px;margin-bottom:46px;border-bottom:0}
body.single-post.wp-child-theme-mooyan #main .entry-header .page-title{font-family:var(--mooyan-font-family);font-size:clamp(32px,4.3vw,60px);font-weight:750;line-height:1.35;letter-spacing:-.025em;text-wrap:balance;margin:0}
body.single-post.wp-child-theme-mooyan #main .entry-header .entry-meta{display:flex;justify-content:center;align-items:center;gap:20px 28px;margin-top:32px;font-size:14px;text-transform:none;color:var(--mooyan-color-muted)}
body.single-post.wp-child-theme-mooyan #main .entry-header .entry-meta>li{display:inline-flex;align-items:center;gap:10px;margin:0}
body.single-post.wp-child-theme-mooyan #main .entry-header .entry-meta>li::after{display:none}
body.single-post.wp-child-theme-mooyan #main .entry-header .entry-meta .meta-author img{width:38px;height:38px!important;border-radius:50%;object-fit:cover}
body.single-post.wp-child-theme-mooyan #main .entry-header .entry-meta .meta-author a{color:var(--mooyan-color-text);font-weight:600;text-transform:none}
body.single-post.wp-child-theme-mooyan #main .entry-header .meta-categories a{background:transparent;padding:0;color:var(--mooyan-color-muted);border-radius:0;font-size:14px}
body.single-post.wp-child-theme-mooyan #main .entry-header :is(.meta-date,.meta-categories)::before{content:'';width:18px;height:18px;display:block;flex-shrink:0;background:currentColor;mask:center/contain no-repeat;-webkit-mask:center/contain no-repeat}
body.single-post.wp-child-theme-mooyan #main .entry-header .meta-date::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M7 3v4M17 3v4'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M7 3v4M17 3v4'/%3E%3C/svg%3E")}
body.single-post.wp-child-theme-mooyan #main .entry-header .meta-categories::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M3 6h7l2 3h9v11H3Z'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M3 6h7l2 3h9v11H3Z'/%3E%3C/svg%3E")}
body.single-post.wp-child-theme-mooyan #main article>.mooyan-article-toc{display:grid;grid-template-columns:140px minmax(0,1fr);gap:32px;width:calc(100% - 2 * var(--mooyan-page-gutter));max-width:960px;margin:0 auto 52px;padding:30px 34px;border:1px solid var(--mooyan-color-border);border-radius:24px;background:var(--mooyan-color-surface);color:var(--mooyan-color-muted)}
.mooyan-article-toc__title{padding:10px 24px 10px 0;border-right:1px solid var(--mooyan-color-border);font-size:24px;font-weight:650;color:var(--mooyan-color-text)}
.mooyan-article-toc__title::before{content:'';display:block;width:30px;height:2px;background:var(--mooyan-color-accent);margin-bottom:14px}
.mooyan-article-toc ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px;margin:0;padding:8px 0;list-style:none;counter-reset:sections}
.mooyan-article-toc li{counter-increment:sections;display:flex;gap:14px;min-width:0;font-size:15px;line-height:1.7}
.mooyan-article-toc li::before{content:counter(sections,decimal-leading-zero);font-size:12px;line-height:2.1;color:var(--mooyan-color-muted)}
.mooyan-article-toc a{color:var(--mooyan-color-muted);overflow-wrap:anywhere}
.mooyan-article-toc a:hover{color:var(--mooyan-color-accent)}
body.single-post.wp-child-theme-mooyan #main .entry-content :is(h2,h3){scroll-margin-top:10px}
@media(max-width:767px){body.single-post.wp-child-theme-mooyan #main>.ct-container-full{padding-top:32px}body.single-post.wp-child-theme-mooyan #main article>.hero-section{padding-bottom:22px;margin-bottom:30px}body.single-post.wp-child-theme-mooyan #main .entry-header .page-title{font-size:30px;line-height:1.45}body.single-post.wp-child-theme-mooyan #main .entry-header .entry-meta{gap:12px 16px;margin-top:24px;font-size:12px}body.single-post.wp-child-theme-mooyan #main .entry-header .meta-categories a{font-size:12px}body.single-post.wp-child-theme-mooyan #main .entry-header .entry-meta .meta-author img{width:30px;height:30px!important}body.single-post.wp-child-theme-mooyan #main article>.mooyan-article-toc{grid-template-columns:minmax(0,1fr);gap:16px;padding:22px;border-radius:18px;margin-bottom:32px}.mooyan-article-toc__title{padding:0 0 14px;border-right:0;border-bottom:1px solid var(--mooyan-color-border);font-size:21px}.mooyan-article-toc ol{grid-template-columns:minmax(0,1fr);gap:12px;padding:0}}
/* Restyle the installed RTOC markup without duplicating or replacing its links. */
body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-wrapper.mooyan-article-toc-plugin{display:grid;grid-template-columns:140px minmax(0,1fr);gap:32px;width:calc(100% - 2 * var(--mooyan-page-gutter));max-width:960px;margin:0 auto 52px;padding:30px 34px;border:1px solid var(--mooyan-color-border);border-radius:24px;background:var(--mooyan-color-surface);box-shadow:none;color:var(--mooyan-color-muted);font-family:var(--mooyan-font-family)}
body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-title{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:10px 24px 10px 0;margin:0;border-right:1px solid var(--mooyan-color-border);font-size:24px;font-weight:650;color:var(--mooyan-color-text)}
body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-title::before{content:'';width:30px;height:2px;background:var(--mooyan-color-accent)}
body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-title span{order:0;color:inherit}
body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-title button{order:1;position:static;float:none;margin:0;padding:0;border:0;background:transparent;color:var(--mooyan-color-muted);font-size:10px;font-weight:400}
body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-wrapper>.rtoc-mokuji{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px;padding:8px 0;margin:0;list-style:none;counter-reset:mooyan-installed-toc}
body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-wrapper>.rtoc-mokuji>li{display:block;margin:0;padding:0;min-width:0;counter-increment:mooyan-installed-toc;line-height:1.7;font-size:15px}
body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-wrapper li::before{display:none}
body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-wrapper li>a{display:flex;gap:14px;color:var(--mooyan-color-muted);text-decoration:none;background:transparent;overflow-wrap:anywhere}
body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-wrapper>.rtoc-mokuji>li>a::before{content:counter(mooyan-installed-toc,decimal-leading-zero);position:static;flex-shrink:0;font-size:12px;line-height:2.1;color:var(--mooyan-color-muted);background:none}
body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-wrapper li>a:hover{color:var(--mooyan-color-accent)}
body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-wrapper .rtoc-mokuji.level-2{padding-left:24px;margin-top:10px}
@media(max-width:767px){body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-wrapper.mooyan-article-toc-plugin{grid-template-columns:minmax(0,1fr);gap:16px;padding:22px;border-radius:18px;margin-bottom:32px}body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-title{border-right:0;border-bottom:1px solid var(--mooyan-color-border);padding:0 0 14px;font-size:21px}body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-wrapper>.rtoc-mokuji{grid-template-columns:minmax(0,1fr);gap:12px;padding:0}}
body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-wrapper::before,body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-wrapper li::after{display:none!important}
body.single-post.wp-child-theme-mooyan #main #rtoc-mokuji-title{justify-content:flex-start}
html[data-mooyan-theme="dark"] body.single-post.wp-child-theme-mooyan #main .entry-header .meta-categories a{background:transparent;color:var(--mooyan-color-muted)}
/* A clearer glass surface once the page moves beneath the floating navigation. */
body.wp-child-theme-mooyan #header.mooyan-header-scrolled [data-device]>[data-row="middle"]>.ct-container{background:rgba(246,247,249,.56);backdrop-filter:blur(26px) saturate(145%);-webkit-backdrop-filter:blur(26px) saturate(145%)}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan #header.mooyan-header-scrolled [data-device]>[data-row="middle"]>.ct-container{background:rgba(27,41,59,.56)}
body.wp-child-theme-mooyan #header [data-device="desktop"] .ct-menu-link{--menu-item-padding:0 16px}
/* Match the native mobile drawer to Mooyan, without changing Blocksy's panel behavior. */
body.wp-child-theme-mooyan #offcanvas[data-behaviour] {
 --theme-text-color:var(--mooyan-color-text);
 --theme-link-initial-color:var(--mooyan-color-text);
 --theme-link-hover-color:var(--mooyan-color-accent);
 --theme-icon-color:var(--mooyan-color-text);
 --theme-icon-hover-color:var(--mooyan-color-accent);
 background:rgba(15,45,91,.22);
}
body.wp-child-theme-mooyan #offcanvas[data-behaviour] .ct-panel-inner {
 width:min(88vw,360px); max-width:calc(100vw - 20px);
 background:var(--mooyan-color-surface); color:var(--mooyan-color-text);
 border-left:1px solid var(--mooyan-color-border); border-radius:22px 0 0 22px;
 box-shadow:-12px 0 40px rgba(15,45,91,.12);
}
body.wp-child-theme-mooyan #offcanvas .ct-panel-actions {
 padding:28px 24px 20px; align-items:center; gap:16px;
 border-bottom:1px solid var(--mooyan-color-border);
}
body.wp-child-theme-mooyan #offcanvas .ct-panel-actions::before {
 content:"Mooyan"; margin-right:auto; color:var(--mooyan-color-text);
 font:italic 600 24px Georgia,serif; letter-spacing:-.02em;
}
body.wp-child-theme-mooyan #offcanvas .ct-toggle-close {
 width:36px; height:36px; padding:10px; border:1px solid var(--mooyan-color-border);
 border-radius:50%; color:var(--mooyan-color-muted); background:transparent;
 --theme-icon-color:var(--mooyan-color-muted); --theme-icon-hover-color:var(--mooyan-color-text);
}
body.wp-child-theme-mooyan #offcanvas .ct-toggle-close .ct-icon { width:14px; height:14px; fill:currentColor; }
body.wp-child-theme-mooyan #offcanvas [data-device="mobile"] .ct-panel-content-inner { padding:24px 18px; }
body.wp-child-theme-mooyan #offcanvas .mobile-menu>ul { padding:0; margin:0; }
body.wp-child-theme-mooyan #offcanvas .mobile-menu>ul>li { margin:0 0 6px; }
body.wp-child-theme-mooyan #offcanvas .mobile-menu .ct-menu-link {
 color:var(--mooyan-color-text); font-family:var(--mooyan-font-family);
 font-size:17px; font-weight:550; line-height:1.5; letter-spacing:.025em;
 padding:15px 16px; min-height:54px; border-radius:8px; text-decoration:none;
}
body.wp-child-theme-mooyan #offcanvas .mobile-menu>ul>li:not(.menu-item-has-children):not(.page_item_has_children)>.ct-menu-link { display:flex; justify-content:space-between; align-items:center; gap:12px; }
body.wp-child-theme-mooyan #offcanvas .mobile-menu>ul>li:not(.menu-item-has-children):not(.page_item_has_children)>.ct-menu-link::after { content:"↗"; font-size:18px; font-weight:400; color:var(--mooyan-color-muted); }
body.wp-child-theme-mooyan #offcanvas .mobile-menu .ct-menu-link:is(:hover,:focus-visible),
body.wp-child-theme-mooyan #offcanvas .mobile-menu :is(.current-menu-item,.current_page_item)>.ct-menu-link { background:var(--mooyan-color-background); color:var(--mooyan-color-accent); }
body.wp-child-theme-mooyan #offcanvas :is(.ct-menu-link,.ct-toggle-close):focus-visible { outline:2px solid var(--mooyan-color-accent); outline-offset:2px; }
body.wp-child-theme-mooyan #offcanvas [data-device="mobile"] .ct-panel-content-inner::after {
 content:"沐彦的个人主页"; display:block; margin:30px 16px 0; padding-top:20px;
 border-top:1px solid var(--mooyan-color-border); color:var(--mooyan-color-muted); font-size:12px; letter-spacing:.08em;
}
html[data-mooyan-theme="dark"] body.wp-child-theme-mooyan #offcanvas[data-behaviour] { background:rgba(5,13,25,.5); }
@media(max-width:359px) { body.wp-child-theme-mooyan #offcanvas .ct-panel-actions { padding-inline:20px; } body.wp-child-theme-mooyan #offcanvas [data-device="mobile"] .ct-panel-content-inner { padding-inline:14px; } }
