@import url('https://fonts.googleapis.com/css2?family=Hind:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{--navy:#071c30;--navy2:#0d2b46;--gold:#edb54f;--paper:#fffaf3;--ink:#142238;--muted:#647082;--border:#e7e2d8;--radius:22px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f7f6f3;color:var(--ink);font-family:Hind,system-ui,sans-serif;font-size:16px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #eeb64d;outline-offset:3px}.hidden{display:none!important}.topbar{height:76px;background:var(--navy);color:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 max(24px,calc((100vw - 1300px)/2));position:sticky;top:0;z-index:20;box-shadow:0 2px 12px #071c3023}.brand{display:flex;gap:13px;align-items:center;text-decoration:none;color:#fff;font-size:29px;line-height:1;font-family:Manrope,sans-serif;font-weight:800;letter-spacing:-1.2px}.brand .gold{color:var(--gold)}.brand small{display:block;color:#c7d2dc;font-size:11px;font-weight:500;letter-spacing:.15px;margin-top:7px;font-family:Hind}.brand-mark{border:1px solid #b18534;border-radius:14px;font-size:31px;color:var(--gold);width:45px;height:45px;display:grid;place-items:center}.top-actions{display:flex;gap:12px}.iconbtn{background:#ffffff11;color:#fff;border:1px solid #ffffff24;width:42px;height:42px;border-radius:12px;display:grid;place-items:center}.iconbtn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2}.shell{max-width:1300px;margin:auto;display:grid;grid-template-columns:240px minmax(0,590px) 260px;gap:28px;padding:32px 20px 90px;justify-content:center}.side{min-width:0}.side-title{font-weight:700;color:#243852;font-size:18px;margin-bottom:14px}.leftside{padding-top:70px}.side-category{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;text-align:left;font-weight:600;color:#445166}.side-category span{font-size:22px}.side-category:hover,.side-category.active{background:#fff0d9;color:#172a45}.side-note{margin-top:24px;border-radius:18px;border:1px solid #e9ddc4;padding:21px;background:#fff7e9}.side-note span{color:#c78a22;font-size:27px}.side-note p,.side-card p,.statbox p{font-size:14px;line-height:1.6;color:#687587;margin:9px 0}.side-link{padding:13px 8px;border:0;background:none;text-align:left;color:#9a6918;font-size:14px;font-weight:600;margin-top:14px}.intro{display:flex;justify-content:space-between;align-items:end;gap:10px;margin:0 0 21px}.eyebrow{font-size:13px;color:#b47b20;font-weight:700;letter-spacing:1px}.intro h1{font-size:27px;letter-spacing:-.6px;margin:5px 0 0;font-weight:700;line-height:1.25}.intro em{color:#c48a28;font-style:normal}.date{color:#7a8796;font-size:12px;white-space:nowrap}.category-scroll{display:flex;overflow:auto;gap:9px;scrollbar-width:none;padding:1px 1px 13px}.category-scroll::-webkit-scrollbar{display:none}.chip{flex:0 0 auto;border:1px solid #e5e4e0;background:white;color:#4b5b70;border-radius:99px;padding:8px 14px;white-space:nowrap;font-weight:700;font-size:14px;transition:.15s}.chip.active{background:var(--navy);color:#fff;border-color:var(--navy)}.feed-head{display:flex;align-items:center;justify-content:space-between;color:#6d7b87;font-size:13px;margin:8px 3px 12px}.feed-head span:first-child{font-weight:700;color:#243852}.feed{height:min(670px,calc(100dvh - 285px));min-height:470px;position:relative;border-radius:24px;outline:0;touch-action:pan-y}.knowledge-card{width:100%;height:100%;background:var(--paper);border:1px solid #e7dfd2;border-radius:22px;overflow:hidden;box-shadow:0 16px 50px #24364a12;display:flex;flex-direction:column;animation:appear .24s ease}.hero{height:43%;min-height:175px;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(circle at 60% 35%,#5a5274,#192e4b 47%,#071c30);display:grid;place-items:center}.hero:after{content:'';position:absolute;inset:0;z-index:-1;background-image:radial-gradient(#fff8 1px,transparent 1px);background-size:29px 29px;opacity:.35}.hero-shape{position:absolute;border-radius:50%;border:1px solid #e9bd6470;filter:drop-shadow(0 0 20px #deb24a66)}.s1{width:260px;height:260px;top:50px;right:-70px}.s2{width:140px;height:140px;left:12%;top:-75px}.art-icon{font-size:98px;filter:drop-shadow(0 6px 35px #0007);z-index:1}.hero-badge{position:absolute;top:17px;left:17px;background:#f4c76e;color:#132137;font-weight:700;border-radius:40px;font-size:12px;padding:5px 12px;z-index:3}.hero-bottom{position:absolute;bottom:13px;right:18px;font-size:10px;letter-spacing:1.3px;font-weight:700;color:#f5e0b1;z-index:2}.hero-bottom span{color:var(--gold)}.hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:none;z-index:0}.hero.has-image .hero-image{display:block}.hero.has-image .art-icon{display:none}.hero.has-image:before{content:'';position:absolute;inset:40% 0 0;z-index:1;background:linear-gradient(transparent,#04172aab)}.card-body{flex:1;min-height:0;padding:21px 24px 19px;display:flex;flex-direction:column}.card-kicker{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:#95631c;font-weight:700}.read-time{font-weight:500;color:#8e96a2}.card-title{font-size:clamp(24px,3vw,31px);margin:12px 0 10px;line-height:1.2;letter-spacing:-.3px}.card-summary{font-size:clamp(17px,2vw,19px);line-height:1.63;margin:0;color:#354256;overflow:auto;scrollbar-width:thin}.sources{margin-top:auto;padding-top:12px;display:flex;gap:8px;align-items:center;color:#8c8990;font-size:11px}.sources a{color:#94702c}.source-label{font-size:11px;color:#988368}.card-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px}.audio-button{border:0;background:#f1ba56;border-radius:999px;padding:11px 20px;display:flex;align-items:center;gap:9px;color:#142337;font-weight:700}.audio-button:disabled{background:#ece7dc;color:#9c9891;cursor:not-allowed}.card-actions{display:flex;gap:8px}.card-actions button{width:42px;height:42px;border:1px solid #e9dfcf;background:#fff;border-radius:50%;font-size:24px;color:#566174}.card-actions button.saved{background:#fff1d2;color:#b8750c}.under-card{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#8992a0;margin:15px 2px}.nav-buttons{display:flex;gap:9px}.nav-buttons button{border:1px solid #e2dfd7;background:#fff;color:var(--navy);font-weight:800;border-radius:9px;width:40px;height:35px}.loading,.empty-state{height:100%;border-radius:22px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;color:#556070;gap:12px}.empty-state h2{margin:0;font-size:25px;color:#223348}.empty-state button{border:0;background:var(--navy);color:#fff;border-radius:12px;padding:11px 20px}.rightside{padding-top:75px}.statbox{background:linear-gradient(152deg,#10375b,#071e35);color:#fff;border-radius:21px;padding:24px;box-shadow:0 12px 24px #11263c20}.mini-label{font-size:12px;color:#f2bf6c;font-weight:700;letter-spacing:1px}.stat-icon{font-size:40px;color:#e9b355;margin:10px 0}.statbox h3{margin:5px 0}.statbox p{color:#c1cbd6}.stat-line{display:flex;justify-content:space-between;border-top:1px solid #ffffff21;padding-top:10px;margin-top:10px;font-size:13px}.stat-line strong{color:#f8d597}.side-card{padding:20px;border:1px solid #e7e1d5;border-radius:19px;background:#fff;margin-top:19px}.side-card.subtle{background:#fffaf3}.soft-button{background:#f3e6cd;border:0;border-radius:10px;padding:11px 13px;color:#7a541f;font-weight:700}.bottomnav{display:none}.player{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);width:min(500px,calc(100% - 28px));z-index:35;background:#09253e;color:#fff;border-radius:19px;display:flex;align-items:center;padding:12px 14px;gap:12px;box-shadow:0 12px 30px #07162c70}.playCircle{background:#f2bd60;color:#15263b;border:0;border-radius:100%;width:43px;height:43px;flex:none;font-size:17px}.player-meta{flex:1;min-width:0}.player-meta strong{font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline{display:flex;align-items:center;gap:6px;font-size:10px;color:#cfdae3}.timeline input{width:100%;accent-color:#eeb64d}.close-player{border:0;background:none;color:white;font-size:26px}.modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:20px}.shade{position:absolute;inset:0;background:#06182bc7;backdrop-filter:blur(5px)}.modal-content{z-index:1;position:relative;width:min(530px,100%);max-height:min(700px,90dvh);overflow:auto;background:#fffaf4;border-radius:22px;padding:30px;box-shadow:0 30px 80px #0004}.modal-close{position:absolute;top:10px;right:14px;font-size:28px;border:0;background:none;color:#536173}.modal-content h2{font-size:24px;margin:0 0 15px}.modal-content p{line-height:1.6;color:#5e6877}.field{display:block;width:100%;padding:13px 14px;border:1px solid #d9d3c9;border-radius:11px;background:#fff;margin:10px 0}.primary{width:100%;background:#0b304e;color:#fff;border:none;border-radius:11px;padding:12px;font-weight:700}.search-result{width:100%;text-align:left;padding:13px 9px;border:0;border-bottom:1px solid #eee5d8;background:none}.search-result b{display:block}.search-result small{color:#889}.toast{position:fixed;top:90px;left:50%;transform:translateX(-50%);background:#142e44;color:#fff;padding:11px 20px;border-radius:10px;z-index:90;box-shadow:0 6px 20px #0003}@keyframes appear{from{opacity:.65;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){.shell{grid-template-columns:minmax(0,620px);max-width:660px;padding:24px 18px 95px}.side{display:none}.intro{margin-bottom:15px}.feed{height:min(680px,calc(100dvh - 280px))}.topbar{padding:0 18px}}
@media(max-width:600px){body{background:#faf9f6}.topbar{height:62px;padding:0 15px}.brand{font-size:22px;gap:8px}.brand-mark{width:35px;height:35px;border-radius:10px;font-size:23px}.brand small{font-size:9px;margin-top:4px}.iconbtn{width:36px;height:36px;border-radius:10px}.shell{padding:15px 0 74px;display:block}.intro{padding:0 15px;margin-bottom:14px}.intro h1{font-size:21px}.date{font-size:11px}.category-scroll{padding:0 12px 9px;gap:7px}.chip{font-size:12px;padding:8px 12px}.feed-head{margin:5px 16px 9px}.feed{margin:0 9px;height:calc(100dvh - 251px);min-height:410px;border-radius:19px;touch-action:pan-y}.knowledge-card{border-radius:18px}.hero{height:42%;min-height:150px}.art-icon{font-size:81px}.card-body{padding:17px 17px 16px}.card-title{font-size:25px;margin:8px 0}.card-summary{font-size:17px;line-height:1.53}.audio-button{padding:9px 16px}.under-card{margin:8px 16px;font-size:12px}.nav-buttons{display:none}.bottomnav{position:fixed;bottom:0;left:0;right:0;height:68px;padding-bottom:env(safe-area-inset-bottom);background:var(--navy);display:flex;z-index:25;justify-content:space-around;border-radius:15px 15px 0 0}.bottomnav button{border:0;background:none;color:#a6b1bd;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:11px;font-weight:600;min-width:60px}.bottomnav button span{font-size:22px}.bottomnav button.active{color:#f0c16c}.player{bottom:75px}.modal{padding:12px}.modal-content{padding:26px 18px}.sources{font-size:10px}}
@media(max-height:680px) and (max-width:600px){.intro{display:none}.feed{height:calc(100dvh - 176px);min-height:320px}.hero{min-height:115px;height:37%}.card-body{padding:12px 16px}.card-summary{font-size:15px}.card-title{font-size:21px;margin:5px 0}.under-card{margin:4px 16px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

.lang-switch{border:1px solid #cfaa6b;background:#142b42;color:#ffe2a0;border-radius:10px;padding:8px 11px;font-weight:800;font-size:13px;min-width:43px;cursor:pointer}.lang-switch:focus-visible{outline:3px solid #eabc6c;outline-offset:3px}
.hero-image[src^="data:"]{opacity:.92;object-fit:cover}.hero.has-image:has(.hero-image[src^="data:"]) .art-icon{display:none}
@media(max-width:600px){.lang-switch{padding:7px 9px;font-size:12px}}
/* v4: responsive immersive reader and four-direction gesture navigation */
:root{--reader-shadow:0 18px 45px #071c3016}
html{overflow-x:hidden}
body{overflow-x:hidden}
.shell{max-width:1510px;grid-template-columns:minmax(198px,240px) minmax(0,700px) minmax(210px,274px);gap:clamp(16px,2vw,30px);width:100%;}
.main{min-width:0}
.topbar{padding-left:max(22px,calc((100vw - 1450px)/2));padding-right:max(22px,calc((100vw - 1450px)/2))}
.knowledge-card{box-shadow:var(--reader-shadow)}
.feed{height:clamp(480px,calc(100dvh - 295px),710px);min-height:0;touch-action:pan-y;overscroll-behavior:contain}
.card-body{min-height:0}
.card-summary{overscroll-behavior:contain;overflow-y:auto;scrollbar-width:thin}
.under-card{gap:9px}
.nav-buttons button{width:43px;height:40px;font-size:18px;border-radius:11px;transition:.15s}
.nav-buttons button:hover{background:#f7ecd7;border-color:#dbb56d}
.voice-status{display:block;font-size:10px;color:#b8c9d8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;line-height:1.4}
.player{min-height:73px}
.player-meta{min-width:0}
.audio-button{min-height:43px}
.player .timeline input{min-width:0}
@media(min-width:1101px){.hero{height:43%;flex:0 0 43%;min-height:0}.card-summary{font-size:18px;line-height:1.57}.card-body{padding:20px 25px}}
@media(min-width:701px) and (max-width:1100px){.shell{max-width:740px;grid-template-columns:minmax(0,1fr);padding:22px 18px 35px}.feed{height:clamp(480px,calc(100dvh - 285px),760px)}.hero{min-height:0;height:42%;flex:0 0 42%}.rightside,.leftside{display:none}}
@media(max-width:700px){
 html,body{height:100%;overscroll-behavior-y:none}
 body{min-height:100dvh;display:flex;flex-direction:column;background:#f7f8fa}
 .topbar{height:56px;min-height:56px;flex:0 0 56px;padding:0 12px;position:relative}
 .brand{font-size:21px}.brand small{font-size:9px;margin-top:2px}.brand-mark{height:33px;width:33px;font-size:21px;border-radius:10px}
 .top-actions{gap:5px}.iconbtn{width:33px;height:33px;border-radius:9px}.iconbtn svg{width:17px;height:17px}.lang-switch{padding:6px 9px;font-size:11px;min-width:39px}
 .shell{flex:1;height:auto;min-height:0;max-height:calc(100dvh - 56px - 82px - env(safe-area-inset-bottom));padding:8px 0 3px;display:block;overflow:hidden;width:100%}
 .main{height:100%;display:flex;flex-direction:column;min-height:0;overflow:hidden}
 .intro{padding:0 13px;margin:0 0 6px;flex:none;min-height:34px;align-items:center}
 .eyebrow{display:none}.intro h1{font-size:17px;margin:0;line-height:1.25}.date{font-size:10px}
 .category-scroll{flex:0 0 auto;min-height:43px;padding:2px 10px 6px;gap:7px}
 .chip{font-size:12px;padding:7px 11px}
 .feed-head{flex:0 0 auto;margin:0 13px 6px;font-size:11px}
 .feed{flex:1;min-height:0!important;max-height:none;height:auto!important;margin:0 8px;border-radius:17px;touch-action:pan-y;overscroll-behavior:contain}
 .knowledge-card{border-radius:17px}
 .hero{height:36%;flex:0 0 36%;min-height:0!important;max-height:42%;overflow:hidden}
 .art-icon{font-size:clamp(54px,14vw,89px)}.hero-badge{font-size:11px;top:11px;left:11px;padding:5px 10px}
 .hero-bottom{font-size:8px;bottom:10px;right:11px}
 .card-body{padding:11px 15px 11px;gap:0;overflow:hidden}
 .card-kicker{font-size:10px}
 .card-title{font-size:clamp(19px,5.2vw,25px);line-height:1.19;margin:7px 0 6px;flex-shrink:0}
 .card-summary{font-size:clamp(13px,3.7vw,17px);line-height:1.47;min-height:0;overflow-y:auto;flex:1;overscroll-behavior:contain}
 .sources{font-size:9px;padding-top:5px;margin-top:0;min-height:16px;flex:0 0 auto}
 .card-footer{margin-top:6px;flex:0 0 auto}
 .audio-button{padding:7px 14px;min-height:36px;font-size:12px}
 .card-actions button{height:35px;width:35px;font-size:20px}
 .under-card{margin:4px 11px 0;min-height:28px;flex:0 0 28px;font-size:10px;justify-content:center;text-align:center}
 .nav-buttons{display:none}
 .bottomnav{height:calc(65px + env(safe-area-inset-bottom));flex:0 0 auto;padding-bottom:env(safe-area-inset-bottom);border-radius:13px 13px 0 0}
 .bottomnav button{font-size:10px}.bottomnav button span{font-size:21px}
 .player{bottom:calc(72px + env(safe-area-inset-bottom));padding:9px 12px;min-height:62px;max-width:calc(100vw - 16px);border-radius:13px}
 .playCircle{width:36px;height:36px}.modal-content{max-height:85dvh}
}
@media(max-width:700px) and (max-height:660px){.intro{display:none}.category-scroll{min-height:39px}.feed-head{margin-bottom:4px}.hero{height:32%;flex-basis:32%}.card-title{font-size:19px}.card-summary{font-size:13px}.under-card{min-height:22px;flex-basis:22px}}
@media(max-width:365px){.intro h1{font-size:15px}.top-actions{gap:2px}.card-title{font-size:18px}.hero{height:31%;flex-basis:31%}.card-body{padding:9px 12px}}
@media(min-width:701px){.player{bottom:18px}}

@media(max-width:355px){#helpBtn{display:none}}
