/* Quân Tử: artwork and the few shapes the colour rules cannot derive (colours: nq/nam/*.css + theme.js) */
/* ảnh theo phong cách */
.moonstage .g-nam,.g-nam{display:none}
html[data-gioi="nam"] .g-nu,html[data-gioi="nam"] .moonstage .g-nu{display:none}
html[data-gioi="nam"] .g-nam,html[data-gioi="nam"] .moonstage .g-nam{display:block}
html[data-gioi="nam"] .moonstage .disc{box-shadow:0 0 60px rgba(252,227,172,.35),0 0 160px rgba(96,140,210,.55)}
html[data-gioi="nam"] .moonstage .b1{width:42%;left:-8%;top:3%}
html[data-gioi="nam"] .moonstage .b2{width:50%;right:-13%;bottom:-3%}
html[data-gioi="nam"] .horizon.g-nam{margin-bottom:-20px;opacity:.9}
html[data-gioi="nam"] .finale .horizon.g-nam{margin-bottom:-40px}

/* lá trúc rơi thay cánh hoa */
html[data-gioi="nam"] .petals i{width:22px;height:6px;border-radius:0 100% 0 100%;background:linear-gradient(120deg,#fbeab5,#c9a24e)}

/* đổi phong cách: chuyển màu dịu */
html.gioi-doi body,html.gioi-doi body *{transition:background-color .5s,color .5s,border-color .5s!important}
.gioi-fade{animation:gioiFade .8s ease}
@keyframes gioiFade{from{opacity:0;filter:blur(6px)}to{opacity:1;filter:none}}


@media (prefers-reduced-motion:reduce){.gioi-fade{animation:none}}

/* hai chỗ lấy màu ngoài nq.css: vòng pha trăng (vẽ bằng JS) và nút trợ lý AI */
html[data-gioi="nam"] .moonph circle{fill:#1f355f}
html[data-gioi="nam"] .aichat-fab{background:linear-gradient(145deg,#35578f,#0f2147)}
/* nút đang chọn trên mục lục: giữ chữ tối trên nền vàng */
:where(html[data-gioi="nam"]) .nq-toc a.is-active{color:#14264a}

/* a calm blue dusk instead of the rose one on the light pages' banners */
html[data-gioi="nam"] body.nq-light{--tw:radial-gradient(circle at 12% 0%,rgba(104,160,255,.5),transparent 42%),radial-gradient(circle at 88% 100%,rgba(240,200,120,.42),transparent 46%),linear-gradient(165deg,#081a3c 0%,#12336b 40%,#1f5590 70%,#5a86a8 100%)}
html[data-gioi="nam"] body.nq-light:is(*,.x){--a1:#2b5fb4;--a1-bg:#eaf2ff;--a2:#7d5f21;--a2-bg:#fbf2dc}
html[data-gioi="nam"] body :is(.pg-hero,.la-hero,.dark-gradient)::before{aspect-ratio:257/276}
html[data-gioi="nam"] body :is(.pg-hero,.la-hero,.dark-gradient)::after{aspect-ratio:617/435;width:min(250px,30vw)}
@media (max-width:760px){html[data-gioi="nam"] body :is(.pg-hero,.la-hero,.dark-gradient)::before{width:110px}}
