/* CH-UI05 – Ca Hue Journal; replaces CM01 stylesheet, no stacked overrides */
:root{--night:#281b39;--night2:#382549;--gold:#eac16e;--gold-text:#a36c1f;--cream:#faf7f1;--paper:#fff;--ink:#302439;--sub:#6f6670;--line:#e9e1d7;--serif:'Noto Serif',Georgia,serif;--sans:'Be Vietnam Pro',system-ui,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body.cj05{margin:0;color:var(--ink);background:var(--cream);font:400 15px/1.78 var(--sans);overflow-wrap:break-word}a{color:inherit;text-decoration:none}a:hover{color:var(--gold-text)}button,input{font:inherit}img{max-width:100%}.wrap{width:min(1240px,calc(100% - 44px));margin-inline:auto}.skip{position:absolute;left:-10000px;top:12px;padding:12px 16px;background:#fff;color:var(--night);z-index:99;border-radius:7px}.skip:focus{left:12px}.bar{background:var(--night);color:white}.head{display:flex;min-height:82px;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:13px;font-size:16px;line-height:1.25;font-weight:700;color:#f4cd82;letter-spacing:.012em;flex-shrink:0}.brand:hover{color:#f8dba4}.brand-mark{font:normal 39px/.9 Georgia,serif;color:#f0c771}.brand small{display:block;color:#eee3d7;font-size:9px;letter-spacing:.17em;font-weight:600;margin-top:5px}.head nav{display:flex;align-items:center;gap:clamp(13px,2vw,27px);flex-wrap:wrap}.head nav a{font-size:12px;font-weight:600;color:#f3eef6}.head nav a.active:not(.nav-cta),.head nav a:hover:not(.nav-cta){color:var(--gold)}.head nav .nav-cta{padding:12px 19px;color:#241936;background:var(--gold);border-radius:9px;font-weight:700}.head nav .nav-cta:hover,.btn-gold:hover{background:#f3d391;color:var(--night)}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:var(--gold-text);margin:0 0 13px}.intro-band{color:#fff;background:radial-gradient(circle at 82% 40%,#583a54 0%,transparent 42%),linear-gradient(125deg,#25182f,#3b2849 72%,#24192f);padding:74px 0 80px;overflow:hidden}.intro-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(185px,.8fr);gap:45px;align-items:center}.intro-band .eyebrow,.journal-cta .eyebrow{color:var(--gold)}h1,h2,h3{font-family:var(--serif);line-height:1.36;letter-spacing:-.025em}h1{font-size:clamp(32px,4.3vw,60px);margin:0 0 20px;font-weight:700}.intro-band h1 em{font-style:normal;color:#edc777}.intro-band p:not(.eyebrow){max-width:680px;color:#e9dfed;line-height:1.95;margin:0}.intro-actions{display:flex;gap:13px;align-items:center;flex-wrap:wrap;margin-top:26px}.btn-gold,.btn-ghost{display:inline-flex;justify-content:center;align-items:center;gap:15px;padding:13px 20px;border-radius:9px;font-size:13px;font-weight:700;line-height:1.5;min-height:46px}.btn-gold{color:#291a35;background:var(--gold)}.btn-ghost{border:1px solid #8c7b95;color:#fff}.btn-ghost:hover{color:var(--gold)}.intro-ornament{border:1px solid #87657790;background:linear-gradient(145deg,#65415855,#ffffff06);border-radius:44px 18px 44px 18px;min-height:245px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;color:var(--gold);transform:rotate(2deg)}.intro-ornament span:first-child{font-size:80px;line-height:1.1}.intro-ornament span:last-child{font-size:10px;letter-spacing:.2em;font-weight:700}.crumb{display:flex;align-items:center;flex-wrap:wrap;gap:11px;color:#746b73;padding:23px 0;font-size:12px}.crumb a{color:#645568}.crumb span:last-child{min-width:0}.content{padding-bottom:78px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:22px;margin:24px 0 28px}.section-heading h2{margin:0;color:var(--night);font-size:clamp(24px,2.7vw,36px)}.section-heading p:not(.eyebrow){margin:9px 0 0;color:var(--sub);font-size:14px}.section-link{font-size:13px;font-weight:700;color:#985c12;white-space:nowrap}.filters{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 28px}.filters a{border-radius:60px;background:#fff;color:#65576a;border:1px solid #e3d7c5;padding:11px 16px;font-size:12px;font-weight:650;line-height:1.5;min-height:44px}.filters a:hover{border-color:#c3a16b}.filters a.selected{background:var(--night);border-color:var(--night);color:#fff}.article-grid,.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.tile{min-width:0;background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 10px 28px #3222380b;overflow:hidden;display:flex;flex-direction:column;transition:transform .15s ease,box-shadow .15s ease}.tile:hover{transform:translateY(-3px);box-shadow:0 14px 32px #32223817}.tile-cover{display:block;aspect-ratio:16/10;overflow:hidden;background:#342444}.tile-cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.tile:hover .tile-cover img{transform:scale(1.04)}.image-fallback{display:flex;align-items:center;justify-content:center;flex-direction:column;height:100%;color:#f3cf81;background:radial-gradient(circle at 80% 15%,#674159,transparent 60%),#342444}.image-fallback>span{font-size:59px;line-height:1.1}.image-fallback small{font-size:10px;letter-spacing:.16em}.tile-inner{padding:22px 23px 24px;display:flex;flex-direction:column;flex:1}.tile h3{font-size:20px;color:var(--night);margin:0 0 13px;overflow-wrap:anywhere}.tile-excerpt,.tile p:not(.eyebrow){margin:0 0 16px;font-size:13px;line-height:1.8;color:var(--sub)}.read{margin-top:auto;font-size:12px;font-weight:700;display:inline-flex;align-items:center;gap:9px;color:#995e20}.pages{margin:31px 0}.pages nav{max-width:100%;overflow-x:auto}.empty{grid-column:1/-1;text-align:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:52px 25px}.empty-icon{font-size:53px;color:#d4a85c}.empty h3{margin:0 0 12px;font-size:27px}.empty p:not(.eyebrow){max-width:530px;color:var(--sub);margin:0 auto 25px}.journal-cta{background:var(--night2);padding:45px 0;color:#fff}.cta-inner{display:flex;justify-content:space-between;align-items:center;gap:24px}.journal-cta h2{font-size:clamp(22px,2.5vw,34px);margin:0 0 10px}.journal-cta p:not(.eyebrow){color:#e1d5e0;margin:0}.foot{background:#21172e;color:#e8dfe9}.foot-inner{padding:44px 0;display:grid;grid-template-columns:2fr 1fr 1fr;gap:42px}.foot strong{font-size:16px;color:#f0ca80}.foot p{color:#cfc5d1;font-size:12px;margin:10px 0 0;max-width:380px}.foot-label{font-weight:700;color:#e9c378!important;margin:0 0 10px!important}.foot-inner>div:not(:first-child){display:flex;flex-direction:column;align-items:start;gap:7px}.foot a{font-size:12px}.foot-bottom{border-top:1px solid #ffffff1b;padding:17px 0;color:#bfb1c4;font-size:11px}
/* Reader */
.crumb-space{padding:30px 0}.article{width:min(100%,850px);margin:0 auto}.article-heading{margin:10px 0 24px}.article-heading h1{font-size:clamp(30px,3.6vw,49px);color:var(--night);margin:0 0 18px}.lead{font-size:16px;line-height:1.9;color:#625762;margin:0;max-width:800px}.cover{margin:0 0 30px}.cover img{display:block;width:100%;height:auto;max-height:510px;object-fit:cover;border-radius:17px}.article-body{background:#fff;padding:39px 44px;border:1px solid var(--line);border-radius:17px;box-shadow:0 5px 30px #34254009;font-size:15px;line-height:2;overflow-wrap:anywhere}.article-body p{white-space:pre-line;margin:0 0 22px}.article-body p:last-child{margin-bottom:0}.owner{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:29px 0 20px;padding:24px 27px;border-radius:17px;background:#f1e7d7;border:1px solid #e4d5bb}.owner h2{margin:0;font-size:23px;color:var(--night)}.owner p:not(.eyebrow){margin:8px 0 0;font-size:13px;color:#605668}.owner .btn-gold{flex-shrink:0}.article-actions{display:flex;justify-content:space-between;gap:15px;font-size:13px;font-weight:700;margin:22px 0 50px;color:#895e20}.related{margin:46px 0 65px}.related .section-heading{margin-bottom:23px}.related-grid .tile{min-height:190px}.related-grid .tile-inner{padding:25px}.related-grid .tile h3{font-size:18px}.ch06-preview-bar{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;background:#f2e7ca;padding:12px max(22px,calc((100% - 1240px)/2));font-size:12px;color:#3a2946}.ch06-preview-bar a{text-decoration:underline;font-weight:700}
@media(max-width:960px){.intro-ornament{min-height:205px}.article-grid,.related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.head nav{gap:14px}}
@media(max-width:700px){.wrap{width:calc(100% - 30px)}.head{min-height:70px;flex-wrap:wrap;padding:13px 0;gap:12px}.brand{font-size:12px}.brand-mark{font-size:30px}.brand small{font-size:7px}.head nav{gap:14px}.head nav a{font-size:11px}.head nav a:nth-child(2){display:none}.head nav .nav-cta{padding:9px 12px}.intro-band{padding:51px 0 56px}.intro-layout{display:block}.intro-ornament{display:none}.intro-band h1{font-size:clamp(30px,7vw,43px)}.intro-band p:not(.eyebrow){font-size:13px}.intro-actions{gap:10px}.btn-gold,.btn-ghost{font-size:12px;padding:12px 15px}.content{padding-bottom:50px}.section-heading{display:block;margin:12px 0 22px}.section-heading h2{font-size:26px}.section-link{display:inline-block;margin-top:14px}.filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:9px;scrollbar-width:thin}.filters a{white-space:nowrap;flex-shrink:0}.article-grid,.related-grid{grid-template-columns:1fr;gap:15px}.tile-inner{padding:19px}.tile h3{font-size:19px}.crumb{font-size:11px}.empty{padding:36px 20px}.cta-inner{display:block}.cta-inner .btn-gold{margin-top:20px}.journal-cta{padding:35px 0}.foot-inner{grid-template-columns:1fr 1fr;gap:25px}.foot-inner>div:first-child{grid-column:1/-1}.article-heading h1{font-size:clamp(29px,7vw,39px)}.lead{font-size:14px}.article-body{padding:24px 20px;font-size:14px;line-height:1.95}.owner{padding:20px;display:block}.owner h2{font-size:20px}.owner .btn-gold{margin-top:16px}.article-actions{flex-wrap:wrap}.related{margin:35px 0}.ch06-preview-bar{padding:13px 15px}}
@media(max-width:360px){.brand{font-size:11px}.head nav a:not(.nav-cta):not(.active){display:none}.intro-actions .btn-gold,.intro-actions .btn-ghost{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* CH07B: safe, editable plain-text article headings via ## / ### notation */
.article-body h2{font-family:'Noto Serif',Georgia,serif;font-size:clamp(1.24rem,2vw,1.52rem);line-height:1.45;color:#30203e;font-weight:700;margin:2rem 0 .9rem;padding-top:.15rem;letter-spacing:-.015em}
.article-body h3{font-family:'Be Vietnam Pro',sans-serif;font-size:1.06rem;line-height:1.55;font-weight:700;color:#4a3055;margin:1.35rem 0 .65rem}
.article-body h2:first-child,.article-body h3:first-child{margin-top:0}
@media(max-width:600px){.article-body h2{font-size:1.18rem;margin:1.5rem 0 .7rem}.article-body h3{font-size:1rem}}


/* CH-UX-CONTENT-FIX-01: scope compact pager and protect against giant default SVGs */
body.cj05 .pages{margin:28px 0 0;min-height:0;overflow:visible}
body.cj05 .pages .ch-journal-pager{display:flex;gap:7px;flex-wrap:wrap;align-items:center;justify-content:center;max-width:100%;overflow:visible}
body.cj05 .ch-journal-pager .ch-page-btn{box-sizing:border-box;min-width:42px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;padding:8px 12px;background:#fff;color:#362441;border:1px solid #e6d9cc;text-decoration:none;font:700 13px/1.2 'Be Vietnam Pro',system-ui,sans-serif}
body.cj05 .ch-journal-pager a.ch-page-btn:hover{background:#f8e7c4;border-color:#bf9457;color:#291b39}
body.cj05 .ch-journal-pager .is-active{background:#2e203f;color:#fff;border-color:#2e203f}
body.cj05 .ch-journal-pager .is-disabled{opacity:.45;cursor:default}
body.cj05 .ch-journal-pager .ch-page-gap{font-size:17px;padding:0 4px;color:#63556b}
body.cj05 .pages svg{max-width:22px!important;max-height:22px!important;width:22px!important;height:22px!important}
@media(max-width:700px){body.cj05 .pages .ch-journal-pager{gap:5px}body.cj05 .ch-journal-pager .ch-page-btn{min-width:38px;min-height:40px;padding:7px 10px;font-size:12px}}
