:root{--blue-950:#062c58;--blue-900:#073c76;--blue-800:#0754a5;--blue-700:#0b6bc4;--blue-600:#1787df;--blue-500:#2c9ff0;--blue-100:#e7f4ff;--cyan:#52cef2;--ink:#10243d;--muted:#64758b;--line:#dfe8f1;--bg:#f6f9fc;--white:#fff;--shadow:0 18px 50px rgba(6,54,104,.13);--radius:20px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}a{text-decoration:none;color:inherit}.container{width:min(1180px,calc(100% - 40px));margin:auto}.topbar{height:82px;background:rgba(255,255,255,.96);border-bottom:1px solid rgba(7,84,165,.08);position:sticky;top:0;z-index:50;backdrop-filter:blur(14px)}.nav-wrap{height:100%;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:13px}.brand-logo{width:54px;height:58px;object-fit:contain}.brand div{display:flex;flex-direction:column}.brand strong{font-size:25px;line-height:1;color:var(--blue-800);letter-spacing:.08em}.brand span{font-size:12.5px;color:#48647f;margin-top:5px;font-weight:600}.nav-links{display:flex;align-items:center;gap:30px;font-size:14px;font-weight:700;color:#466079}.nav-links a{transition:.2s}.nav-links a:hover{color:var(--blue-700)}.admin-link{padding:11px 17px;border-radius:12px;background:#eaf5ff;color:var(--blue-800)!important}.nav-toggle{display:none;border:0;background:transparent;font-size:25px}.hero{min-height:610px;position:relative;display:flex;align-items:center;overflow:hidden}.hero-map{position:absolute;inset:0;background-image:url('../assets/peta-taliabu.jpg');background-size:cover;background-position:center 48%;transform:scale(1.02)}.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,38,78,.93) 0%,rgba(4,72,131,.83) 42%,rgba(10,111,190,.56) 69%,rgba(36,151,225,.34) 100%)}.hero-overlay:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 74% 30%,rgba(111,218,255,.22),transparent 34%)}.hero-content{position:relative;z-index:2;color:white;padding:74px 0 70px}.hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.25);padding:8px 13px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.03em}.hero-badge .dot{width:7px;height:7px;border-radius:50%;background:#65e4ff;box-shadow:0 0 0 5px rgba(101,228,255,.13)}.hero h1{font-size:clamp(44px,5vw,69px);line-height:1.04;letter-spacing:-.045em;margin:24px 0 18px;max-width:840px}.hero h1 span{color:#7bdcff}.hero p{max-width:730px;font-size:17px;line-height:1.75;color:rgba(255,255,255,.88);margin:0}.hero-search{margin-top:32px;background:#fff;border-radius:16px;padding:7px 7px 7px 18px;display:flex;align-items:center;max-width:740px;box-shadow:0 17px 45px rgba(0,28,61,.28)}.search-icon{font-size:25px;color:#68839b;line-height:1}.hero-search input{border:0;outline:0;flex:1;padding:14px 13px;font:inherit;color:var(--ink);min-width:0}.hero-search button{border:0;border-radius:11px;background:linear-gradient(135deg,var(--blue-700),var(--blue-600));color:#fff;padding:14px 20px;font-weight:800;cursor:pointer}.hero-stats{display:flex;gap:42px;margin-top:35px}.hero-stats div{display:flex;flex-direction:column}.hero-stats strong{font-size:24px}.hero-stats span{font-size:12px;color:rgba(255,255,255,.76);margin-top:3px}.section{padding:82px 0}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:34px}.eyebrow{font-size:11px;font-weight:900;letter-spacing:.17em;color:var(--blue-700)}.section-heading h2,.about h2{font-size:38px;letter-spacing:-.035em;margin:7px 0 8px}.section-heading p,.about p{color:var(--muted);line-height:1.75;margin:0}.count-pill{background:#e9f5ff;color:var(--blue-800);font-weight:800;font-size:12px;padding:10px 14px;border-radius:999px;white-space:nowrap}.search-note{background:#edf7ff;border:1px solid #d2eaff;padding:13px 16px;border-radius:12px;margin:-12px 0 28px;color:#42627f}.search-note a{color:var(--blue-700);font-weight:800}.book-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:27px}.book-card{background:white;border:1px solid #e5edf5;border-radius:22px;overflow:hidden;box-shadow:0 10px 35px rgba(5,58,112,.06);transition:.28s ease;display:block}.book-card:hover{transform:translateY(-8px);box-shadow:var(--shadow);border-color:#cbe4f8}.cover-wrap{height:355px;background:linear-gradient(145deg,#e7f3fb,#c9e5f6);position:relative;display:flex;align-items:center;justify-content:center;padding:22px;overflow:hidden}.cover-wrap:before{content:"";position:absolute;width:220px;height:220px;border:1px solid rgba(6,91,168,.08);border-radius:50%;right:-70px;top:-80px}.cover-wrap img{height:100%;max-width:100%;object-fit:contain;filter:drop-shadow(0 14px 17px rgba(0,28,52,.2));transition:.3s}.book-card:hover .cover-wrap img{transform:scale(1.025)}.read-overlay{position:absolute;inset:0;background:rgba(5,54,102,.76);display:flex;flex-direction:column;justify-content:center;align-items:center;color:#fff;opacity:0;transition:.25s;backdrop-filter:blur(2px)}.read-overlay span{width:48px;height:48px;border-radius:50%;background:white;color:var(--blue-700);display:grid;place-items:center;font-size:18px;margin-bottom:9px}.read-overlay b{font-size:14px}.book-card:hover .read-overlay{opacity:1}.year-badge{position:absolute;right:15px;top:15px;background:white;color:var(--blue-800);padding:7px 10px;border-radius:9px;font-size:11px;font-weight:900;box-shadow:0 6px 17px rgba(0,0,0,.08)}.book-body{padding:23px}.category{display:inline-block;color:var(--blue-700);background:#ecf7ff;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.book-body h3{font-size:19px;line-height:1.38;margin:13px 0 10px;letter-spacing:-.015em}.book-body p{font-size:13px;line-height:1.7;color:var(--muted);min-height:66px;margin:0}.book-meta{display:flex;gap:7px;font-size:10.5px;color:#8190a1;padding-top:15px;margin-top:15px;border-top:1px solid #edf1f5}.read-link{display:flex;justify-content:space-between;color:var(--blue-700);font-weight:850;font-size:13px;margin-top:16px}.empty-state{grid-column:1/-1;text-align:center;background:white;border:1px dashed #cbdbe8;border-radius:20px;padding:60px}.empty-state div{font-size:44px;color:#91a8bb}.about{background:#fff}.about-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:70px;align-items:center}.about-visual{height:390px;background:#def1fc;border-radius:26px;overflow:hidden;position:relative;box-shadow:inset 0 0 0 1px #d1e8f6}.about-map{width:100%;height:100%;object-fit:cover}.floating-logo{position:absolute;left:24px;bottom:24px;width:108px;height:108px;border-radius:21px;background:white;display:grid;place-items:center;box-shadow:0 15px 40px rgba(1,53,99,.22)}.floating-logo img{width:82px;height:82px;object-fit:contain}.features{display:grid;gap:17px;margin-top:26px}.features>div{display:flex;gap:13px}.features i{width:27px;height:27px;border-radius:8px;background:#e6f5ff;color:var(--blue-700);display:grid;place-items:center;font-style:normal;font-weight:900;flex:0 0 27px}.features span{display:flex;flex-direction:column}.features b{font-size:14px}.features small{color:var(--muted);margin-top:3px;line-height:1.5}.footer{background:#062f5b;color:white;padding:34px 0}.footer-grid{display:grid;grid-template-columns:1fr 1.3fr auto;align-items:center;gap:35px}.footer-brand{display:flex;align-items:center;gap:11px}.footer-brand img{width:52px}.footer-brand div{display:flex;flex-direction:column}.footer-brand b{font-size:20px}.footer-brand span{font-size:10px;color:#a9c6df}.footer p{font-size:11.5px;line-height:1.6;color:#bed1e2}.footer small{color:#9fbad3;font-size:10.5px}.reader-page{background:#e9eef4}.reader-head{background:white;border-bottom:1px solid #dfe6ee}.reader-head-inner{padding:22px 0}.back-link{font-size:12px;color:var(--blue-700);font-weight:800}.reader-title{display:flex;align-items:center;gap:16px;margin-top:17px}.reader-title img{width:57px;height:72px;object-fit:cover;border-radius:6px;box-shadow:0 5px 13px rgba(0,0,0,.15)}.reader-title span{font-size:10px;color:var(--blue-700);font-weight:900;text-transform:uppercase}.reader-title h1{font-size:23px;line-height:1.25;margin:3px 0}.reader-title p{font-size:11px;margin:0;color:var(--muted)}.open-pdf{float:right;margin-top:-55px;padding:11px 14px;border-radius:10px;background:var(--blue-700);color:white;font-size:11px;font-weight:800}.pdf-section{padding:20px 0 35px}.pdf-shell{height:calc(100vh - 252px);min-height:600px;background:#59636e;border-radius:14px;padding:8px;box-shadow:0 12px 35px rgba(0,0,0,.12)}.pdf-shell iframe{border:0;width:100%;height:100%;background:white;border-radius:8px}.login-section{min-height:calc(100vh - 82px);display:grid;place-items:center;padding:60px 20px;background:linear-gradient(135deg,rgba(3,48,94,.95),rgba(14,126,202,.85)),url('../assets/peta-taliabu.jpg') center/cover}.login-card{width:min(900px,100%);display:grid;grid-template-columns:1.05fr .95fr;background:white;border-radius:26px;overflow:hidden;box-shadow:0 30px 80px rgba(0,19,42,.3)}.login-brand{padding:50px;background:linear-gradient(150deg,#073d76,#0e7dc7);color:white;position:relative;overflow:hidden}.login-brand:after{content:"";position:absolute;width:320px;height:320px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-180px;bottom:-160px}.login-brand img{width:84px;background:white;border-radius:18px;padding:8px}.login-brand span{display:block;font-size:12px;margin-top:20px;color:#aee2ff;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.login-brand h1{font-size:34px;line-height:1.1;margin:10px 0}.login-brand p{font-size:13px;line-height:1.7;color:#d2eaf8}.login-form{padding:50px;display:flex;flex-direction:column;justify-content:center;gap:16px}.login-form label,.book-form label{font-size:12px;font-weight:800;color:#486078;display:flex;flex-direction:column;gap:7px}.login-form input,.book-form input,.book-form textarea{width:100%;border:1px solid #d7e3ec;border-radius:11px;padding:13px 14px;font:inherit;outline:0;background:#fff;color:var(--ink)}.login-form input:focus,.book-form input:focus,.book-form textarea:focus{border-color:var(--blue-600);box-shadow:0 0 0 3px rgba(23,135,223,.1)}.login-form .check{flex-direction:row;align-items:center}.login-form .check input{width:auto}.login-form button{border:0;padding:14px;border-radius:11px;background:var(--blue-700);color:white;font-weight:850;cursor:pointer}.login-form>a{text-align:center;font-size:11px;color:var(--blue-700);font-weight:700}.form-error{padding:10px 12px;border-radius:9px;background:#fff0f0;color:#b34242;font-size:11px}.admin-body{background:#f4f7fb}.sidebar{position:fixed;inset:0 auto 0 0;width:245px;background:linear-gradient(180deg,#062f5c,#073d74);color:white;padding:22px 16px;display:flex;flex-direction:column;z-index:100}.sidebar-brand{display:flex;align-items:center;gap:11px;padding:5px 8px 24px;border-bottom:1px solid rgba(255,255,255,.1)}.sidebar-brand img{width:54px;height:54px;object-fit:contain;background:white;border-radius:12px;padding:4px}.sidebar-brand div{display:flex;flex-direction:column}.sidebar-brand b{font-size:20px;letter-spacing:.06em}.sidebar-brand span{font-size:10px;color:#99c9eb}.sidebar nav{display:grid;gap:6px;margin-top:25px}.sidebar nav a,.sidebar form button{border:0;background:transparent;color:#c7dced;padding:12px 13px;border-radius:10px;display:flex;align-items:center;gap:11px;font:inherit;font-size:12px;font-weight:750;text-align:left;width:100%;cursor:pointer}.sidebar nav a.active,.sidebar nav a:hover,.sidebar form button:hover{background:rgba(91,192,255,.16);color:#fff}.sidebar form{margin-top:auto}.admin-main{margin-left:245px;min-height:100vh}.admin-top{height:108px;background:white;border-bottom:1px solid #e4eaf0;padding:0 34px;display:flex;align-items:center;justify-content:space-between}.admin-top span{font-size:9px;color:var(--blue-700);font-weight:900;letter-spacing:.14em}.admin-top h1{font-size:25px;margin:5px 0 0}.user-chip{display:flex;align-items:center;gap:10px}.user-chip>span{width:38px;height:38px;border-radius:50%;background:#dff1ff;color:var(--blue-700);display:grid;place-items:center;font-size:14px}.user-chip div{display:flex;flex-direction:column}.user-chip b{font-size:11px}.user-chip small{font-size:9px;color:var(--muted)}.admin-content{padding:30px 34px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.stat-card{background:white;border:1px solid #e3ebf2;border-radius:16px;padding:21px;display:flex;flex-direction:column;box-shadow:0 5px 18px rgba(6,50,94,.035)}.stat-card>span{font-size:10px;color:var(--muted);font-weight:800}.stat-card strong{font-size:34px;margin:8px 0;color:var(--blue-900)}.stat-card small{font-size:9px;color:#93a0ac}.action-card{background:linear-gradient(140deg,var(--blue-800),var(--blue-600));color:white;border:0}.action-card>span,.action-card small,.action-card strong{color:white}.admin-panel{margin-top:22px;background:white;border:1px solid #e1e9f1;border-radius:17px;padding:22px;box-shadow:0 6px 22px rgba(6,50,94,.035)}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.panel-head h2{font-size:16px;margin:0 0 4px}.panel-head p{font-size:10px;margin:0;color:var(--muted)}.btn-primary,.btn-secondary{border:0;border-radius:9px;padding:10px 13px;font-size:10px;font-weight:850;cursor:pointer}.btn-primary{background:var(--blue-700);color:#fff}.btn-secondary{background:#edf4f9;color:#48647a}.mini-list>div{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #edf1f5}.mini-list img{width:38px;height:48px;object-fit:cover;border-radius:4px}.mini-list span{display:flex;flex-direction:column;flex:1}.mini-list b{font-size:11px}.mini-list small{font-size:9px;color:var(--muted);margin-top:3px}.status{padding:5px 8px;border-radius:999px;font-style:normal;font-size:9px;font-weight:850}.status.published{background:#e9f8ef;color:#25824d}.status.draft{background:#fff2db;color:#a46a13}.alert-success{background:#e8f8ef;color:#237a49;border:1px solid #cfeeda;padding:11px 14px;border-radius:10px;margin-bottom:16px;font-size:11px;font-weight:750}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:850px}.data-table th{text-align:left;font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#8291a0;border-bottom:1px solid #dfe7ee;padding:11px 10px}.data-table td{font-size:10.5px;border-bottom:1px solid #edf2f6;padding:11px 10px}.table-book{display:flex;align-items:center;gap:10px}.table-book img{width:37px;height:48px;object-fit:cover;border-radius:4px}.table-book div{display:flex;flex-direction:column;max-width:380px}.table-book b{font-size:10.5px;line-height:1.35}.table-book small{font-size:8.5px;color:var(--muted);margin-top:3px}.actions{display:flex;gap:5px}.actions a,.actions button{width:29px;height:29px;border-radius:7px;border:1px solid #dce6ed;background:#fff;display:grid;place-items:center;color:var(--blue-700);cursor:pointer}.actions form{margin:0}.form-grid{display:grid;grid-template-columns:1fr 260px;gap:28px}.form-main{display:grid;gap:16px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}.book-form textarea{resize:vertical}.book-form label small{font-weight:500;color:#8b99a5}.form-side{border-left:1px solid #e5ebf1;padding-left:25px;display:flex;flex-direction:column;gap:20px}.cover-preview,.cover-placeholder{width:180px;height:235px;object-fit:contain;border-radius:8px;margin:auto;background:#edf3f8;border:1px solid #d8e4ed}.cover-placeholder{display:grid;place-items:center;text-align:center;color:#8b9aaa}.publish-box{flex-direction:row!important;align-items:flex-start;border:1px solid #dbe8f0;border-radius:11px;padding:12px;background:#f8fbfd}.publish-box input{width:auto}.publish-box span{display:flex;flex-direction:column}.publish-box b{color:var(--ink)}.form-actions{display:flex;gap:8px}.form-error-box{background:#fff2f2;border:1px solid #ffdcdc;color:#9f4141;padding:13px 16px;border-radius:10px;font-size:10px;margin-bottom:18px}.mobile-side{display:none}.pagination{margin-top:18px}
@media(max-width:980px){.book-grid{grid-template-columns:repeat(2,1fr)}.about-grid{grid-template-columns:1fr;gap:35px}.footer-grid{grid-template-columns:1fr}.stat-grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.form-side{border-left:0;border-top:1px solid #e5ebf1;padding-left:0;padding-top:22px}.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0)}.admin-main{margin-left:0}.mobile-side{display:inline-block;border:0;background:#edf5fb;border-radius:8px;padding:6px 8px;margin-right:8px}.admin-top{padding:0 22px}.admin-content{padding:22px}}@media(max-width:720px){.container{width:min(100% - 26px,1180px)}.topbar{height:72px}.brand-logo{width:45px;height:48px}.brand strong{font-size:21px}.brand span{font-size:9px}.nav-toggle{display:block}.nav-links{display:none;position:absolute;top:71px;left:0;right:0;background:white;padding:18px 20px;box-shadow:0 12px 25px rgba(0,0,0,.09);flex-direction:column;align-items:stretch;gap:7px}.nav-links.open{display:flex}.nav-links a{padding:10px}.hero{min-height:620px}.hero-map{background-position:center}.hero-overlay{background:linear-gradient(90deg,rgba(3,38,78,.94),rgba(4,72,131,.78))}.hero-content{padding:55px 0}.hero h1{font-size:42px}.hero p{font-size:14px}.hero-search{flex-wrap:wrap;padding:8px}.hero-search .search-icon{display:none}.hero-search input{width:100%;flex-basis:70%;padding:12px}.hero-search button{padding:12px}.hero-stats{gap:20px;justify-content:space-between}.hero-stats strong{font-size:20px}.section{padding:58px 0}.section-heading{align-items:flex-start;flex-direction:column}.section-heading h2,.about h2{font-size:30px}.book-grid{grid-template-columns:1fr}.cover-wrap{height:380px}.about-visual{height:280px}.reader-title{align-items:flex-start}.reader-title h1{font-size:17px}.open-pdf{float:none;display:inline-block;margin:14px 0 0}.pdf-shell{height:70vh;min-height:450px}.login-card{grid-template-columns:1fr}.login-brand{padding:30px}.login-brand h1{font-size:27px}.login-form{padding:30px}.stat-grid{grid-template-columns:1fr 1fr}.user-chip div{display:none}.admin-top{height:92px}.admin-content{padding:15px}.panel-head{align-items:flex-start;flex-direction:column}.two-col{grid-template-columns:1fr}.form-actions{width:100%}.form-actions>*{flex:1;text-align:center}.footer{padding:28px 0}}@media(max-width:450px){.stat-grid{grid-template-columns:1fr}.hero-stats{gap:10px}.hero-stats span{font-size:10px}.cover-wrap{height:330px}}

/* =========================================================
   TDPL v3 — Home map clarity & latest Taliabu identity
   ========================================================= */
.topbar{background:rgba(5,63,126,.96);border-bottom:1px solid rgba(255,255,255,.16);box-shadow:0 8px 24px rgba(2,40,83,.12)}
.brand-logo{width:58px;height:62px;object-fit:contain;filter:drop-shadow(0 4px 8px rgba(0,0,0,.12))}
.brand strong{color:#fff}.brand span{color:#d9eeff}.nav-links{color:#eaf6ff}.nav-links a:hover{color:#fff}.admin-link{background:rgba(255,255,255,.14);color:#fff!important;border:1px solid rgba(255,255,255,.18)}
.hero-home{min-height:680px;background:#88c9ef;isolation:isolate}
.hero-home .hero-map{position:absolute;inset:0;background-image:url('../assets/peta-taliabu.jpg');background-size:cover;background-position:center 50%;transform:none;filter:saturate(1.06) contrast(1.035);z-index:-3}
.hero-home .hero-overlay{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,rgba(3,41,85,.60) 0%,rgba(5,74,142,.30) 35%,rgba(4,103,183,.08) 60%,rgba(4,103,183,0) 100%)}
.hero-home .hero-overlay:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(2,49,101,.08),transparent 22%,transparent 78%,rgba(3,65,123,.12));pointer-events:none}
.hero-home .hero-content{min-height:680px;padding:54px 0;display:flex;align-items:center;justify-content:space-between;gap:32px}
.hero-panel{width:min(585px,100%);padding:34px 36px 30px;border:1px solid rgba(255,255,255,.64);border-radius:28px;background:rgba(255,255,255,.86);box-shadow:0 24px 60px rgba(5,52,101,.22);backdrop-filter:blur(10px);color:var(--ink)}
.hero-panel .hero-badge{background:#e9f6ff;border-color:#cce8fb;color:#1463a7}.hero-panel .hero-badge .dot{background:#1787df;box-shadow:0 0 0 5px rgba(23,135,223,.12)}
.hero-kicker{font-weight:850!important;font-size:20px!important;color:#113e76!important;margin:20px 0 0!important;line-height:1.2!important}
.hero-home h1{margin:5px 0 15px;max-width:none;letter-spacing:-.04em;line-height:.95;display:flex;flex-direction:column}
.hero-home h1 .tdpl-word{font-size:clamp(66px,7vw,96px);font-weight:950;letter-spacing:-.055em;color:#086cce;background:linear-gradient(180deg,#188cf2,#074da1);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hero-home h1 small{font-size:18px;letter-spacing:-.015em;color:#0a3d77;margin-top:13px;font-weight:850;-webkit-text-fill-color:initial}
.hero-desc{font-size:14.5px!important;line-height:1.7!important;color:#405d78!important}
.hero-panel .hero-search{margin-top:22px;box-shadow:none;border:1px solid #cfe2f2;background:#fff;max-width:none}
.hero-panel .hero-search button{min-width:96px}
.hero-panel .hero-stats{margin-top:22px;gap:10px;display:grid;grid-template-columns:repeat(3,1fr)}
.hero-panel .hero-stats div{background:rgba(237,247,255,.9);border:1px solid #d9ebf8;border-radius:14px;padding:12px 12px}
.hero-panel .hero-stats strong{font-size:17px;color:#0a5aae}.hero-panel .hero-stats span{font-size:10px;color:#557089;margin-top:2px}
.map-caption{align-self:flex-end;margin:0 10px 12px auto;padding:14px 18px;border-radius:16px;background:rgba(4,58,112,.80);border:1px solid rgba(255,255,255,.25);box-shadow:0 12px 30px rgba(0,34,71,.20);color:white;backdrop-filter:blur(5px);display:flex;flex-direction:column;min-width:230px}
.map-caption span{font-size:9px;letter-spacing:.16em;font-weight:900;color:#91dcff}.map-caption strong{font-size:16px;margin:4px 0 2px}.map-caption small{font-size:10px;color:#d8eeff}
.map-preview{background:#dceefa!important}.map-preview .about-map{width:100%;height:100%;object-fit:cover;filter:saturate(1.04) contrast(1.02)}
.floating-logo{background:rgba(255,255,255,.93)!important}.floating-logo img{background:transparent!important}
.footer-brand img,.sidebar-brand img,.login-brand img{background:transparent!important}

@media(max-width:980px){
  .hero-home .hero-content{align-items:center}.map-caption{display:none}.hero-panel{width:min(610px,100%)}
  .hero-home .hero-map{background-position:center center}
}
@media(max-width:720px){
  .topbar{background:rgba(4,61,122,.98)}.nav-links{background:#073f7a;color:#eaf6ff}.nav-links a{color:#eaf6ff}.nav-links a:hover{background:rgba(255,255,255,.08)}
  .hero-home,.hero-home .hero-content{min-height:650px}.hero-home .hero-map{background-size:auto 100%;background-position:center center}
  .hero-home .hero-overlay{background:rgba(4,63,120,.28)}
  .hero-panel{padding:25px 20px 22px;border-radius:22px;background:rgba(255,255,255,.91)}
  .hero-kicker{font-size:17px!important}.hero-home h1 .tdpl-word{font-size:64px}.hero-home h1 small{font-size:14px}
  .hero-panel .hero-stats{grid-template-columns:repeat(3,1fr)}.hero-panel .hero-stats div{padding:10px 8px}.hero-panel .hero-stats strong{font-size:14px}.hero-panel .hero-stats span{font-size:9px}
}
@media(max-width:450px){.hero-home h1 .tdpl-word{font-size:58px}.hero-panel .hero-search button{min-width:72px}.hero-panel .hero-stats{gap:6px}}


/* TDPL v4 — focused Taliabu map + clearer glass panel */
.hero-home .hero-map{
  background-image:url('../assets/peta-taliabu.jpg');
  background-size:cover;
  background-position:center center;
  transform:none;
  filter:saturate(1.08) contrast(1.04) brightness(1.03);
}
.hero-home .hero-overlay{
  background:linear-gradient(90deg,rgba(3,41,85,.16) 0%,rgba(5,74,142,.07) 34%,rgba(4,103,183,.015) 60%,rgba(4,103,183,0) 100%);
}
.hero-home .hero-overlay:after{background:none;}
.hero-panel{
  background:rgba(255,255,255,.54);
  border-color:rgba(255,255,255,.72);
  box-shadow:0 18px 48px rgba(5,52,101,.13);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.hero-panel .hero-badge{background:rgba(233,246,255,.58)}
.hero-panel .hero-search{background:rgba(255,255,255,.78)}
.hero-panel .hero-stats div{background:rgba(237,247,255,.56)}
@media(max-width:720px){
 .hero-home .hero-map{background-size:cover;background-position:center center}
 .hero-home .hero-overlay{background:rgba(4,63,120,.08)}
 .hero-panel{background:rgba(255,255,255,.64);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
}

/* =========================================================
   TDPL Library Admin — book metadata + PDF per chapter
   ========================================================= */
.upload-note{border:1px solid #cfe4f5;background:linear-gradient(135deg,#f4fbff,#edf7ff);border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:5px;color:#405e77;font-size:12px;line-height:1.6}.upload-note b{color:#0a5baa;font-size:13px}.admin-filter{display:grid;grid-template-columns:minmax(260px,1fr) 180px auto auto;gap:9px;margin:0 0 20px}.admin-filter input,.admin-filter select{border:1px solid #d9e5ee;background:#fff;border-radius:10px;padding:11px 12px;font:inherit;font-size:11px;color:#26445e;outline:none}.admin-filter input:focus,.admin-filter select:focus{border-color:#1787df;box-shadow:0 0 0 3px rgba(23,135,223,.08)}.chapter-count{display:inline-flex;padding:6px 9px;border-radius:999px;background:#edf7ff;color:#0a62ad;font-weight:850;font-size:9px}.chapter-action{background:#eaf7ff!important}.table-empty{text-align:center;padding:38px;color:#7d91a4}.book-summary-panel{margin-top:0}.book-summary{display:flex;align-items:center;gap:20px}.book-summary>img{width:82px;height:108px;object-fit:contain;border-radius:9px;background:#eef5fa;border:1px solid #dce7ef}.book-summary h2{margin:5px 0 6px;font-size:20px}.book-summary p{margin:0;color:#72869a;font-size:11px}.book-summary-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.chapter-admin-grid{display:grid;grid-template-columns:360px 1fr;gap:22px;align-items:start}.chapter-entry-panel,.chapter-list-panel{margin-top:22px}.wide-button{width:100%;padding:13px}.chapter-admin-list{display:grid;gap:12px}.chapter-admin-card{border:1px solid #e1eaf1;border-radius:14px;background:#fbfdff;overflow:hidden}.chapter-edit-form{display:grid;grid-template-columns:46px 1fr auto;gap:13px;align-items:start;padding:15px}.chapter-number-badge{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#0b69c2,#26a5ef);color:#fff;display:grid;place-items:center;font-weight:900;font-size:11px;box-shadow:0 7px 18px rgba(9,100,180,.18)}.chapter-edit-fields{display:grid;gap:10px}.chapter-edit-fields label{font-size:9px;font-weight:850;color:#5d7184;display:flex;flex-direction:column;gap:5px}.chapter-edit-fields input{border:1px solid #d8e4ed;border-radius:8px;padding:9px 10px;font:inherit;font-size:10.5px}.chapter-edit-fields small{font-size:8.5px;color:#91a0ad}.publish-inline{flex-direction:row!important;align-items:center!important;gap:6px!important}.publish-inline input{width:auto}.chapter-card-actions{padding-top:18px}.chapter-delete-form{border-top:1px solid #e8eef3;padding:9px 15px;text-align:right;background:#fff}.btn-danger{border:0;border-radius:8px;padding:8px 11px;background:#fff0f0;color:#b33b3b;font-size:9px;font-weight:850;cursor:pointer}.btn-danger:hover{background:#ffe2e2}.chapter-empty-admin{padding:45px 25px;text-align:center;border:1px dashed #cadbe7;border-radius:13px;color:#7c8fa0;display:flex;flex-direction:column;gap:5px}.chapter-empty-admin b{color:#46647e}.stat-grid-five{grid-template-columns:repeat(5,1fr)}
@media(max-width:1180px){.stat-grid-five{grid-template-columns:repeat(3,1fr)}.chapter-admin-grid{grid-template-columns:320px 1fr}}
@media(max-width:900px){.chapter-admin-grid{grid-template-columns:1fr}.chapter-entry-panel,.chapter-list-panel{margin-top:18px}.admin-filter{grid-template-columns:1fr 160px auto}.admin-filter .btn-secondary{display:none}}
@media(max-width:720px){.stat-grid-five{grid-template-columns:1fr 1fr}.admin-filter{grid-template-columns:1fr}.book-summary{align-items:flex-start}.book-summary>img{width:65px;height:88px}.chapter-edit-form{grid-template-columns:40px 1fr}.chapter-card-actions{grid-column:2;padding-top:0}.chapter-edit-fields .two-col{grid-template-columns:1fr}.book-summary-actions{gap:6px}}
@media(max-width:450px){.stat-grid-five{grid-template-columns:1fr}.book-summary{flex-direction:column}.chapter-edit-form{grid-template-columns:1fr}.chapter-number-badge{display:none}.chapter-card-actions{grid-column:1}}
.chapter-item{position:relative;padding-right:36px!important}.chapter-item i{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-style:normal;color:#77a6ca}.chapter-welcome{min-height:600px;background:linear-gradient(145deg,#fff,#f2f9fe);border:1px solid #dceaf4;border-radius:16px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:40px;color:#47657f}.chapter-welcome-cover{width:138px;height:180px;margin-bottom:25px}.chapter-welcome-cover img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 13px 15px rgba(3,54,98,.18))}.chapter-welcome h2{font-size:28px;color:#123f70;margin:8px 0 10px}.chapter-welcome p{max-width:550px;font-size:12px;line-height:1.75;margin:0}.chapter-welcome-count{margin-top:24px;display:flex;align-items:center;gap:10px;background:#eaf6ff;border:1px solid #d4eafb;border-radius:13px;padding:10px 15px}.chapter-welcome-count strong{font-size:23px;color:#0a68bc}.chapter-welcome-count span{font-size:10px;font-weight:800;color:#5a7790}

/* =========================================================
   TDPL PWA — install to phone / home screen
   ========================================================= */
.tdpl-pwa-modal-open{overflow:hidden}.tdpl-pwa-fab{position:fixed;right:18px;bottom:18px;z-index:11000}.tdpl-pwa-fab[hidden]{display:none!important}.tdpl-pwa-fab button{display:flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.8);background:linear-gradient(135deg,#0756a3,#0b78d0);color:#fff;border-radius:16px;padding:8px 13px 8px 8px;box-shadow:0 14px 34px rgba(1,63,125,.28);cursor:pointer}.tdpl-pwa-fab img{width:38px;height:38px;object-fit:contain;border-radius:10px;background:#fff}.tdpl-pwa-fab span{display:flex;flex-direction:column;text-align:left;line-height:1.08}.tdpl-pwa-fab b{font-size:11px}.tdpl-pwa-fab small{font-size:8px;opacity:.82;margin-top:3px}.tdpl-pwa-backdrop{position:fixed;inset:0;z-index:12000;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(4,32,64,.56);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.tdpl-pwa-backdrop.show{display:flex}.tdpl-pwa-card{position:relative;width:min(450px,100%);background:linear-gradient(180deg,#fff,#f4faff);border:1px solid rgba(255,255,255,.9);border-radius:27px;padding:28px 25px 22px;text-align:center;box-shadow:0 34px 90px rgba(3,43,83,.3);animation:tdplPwaIn .2s ease-out}.tdpl-pwa-close{position:absolute;right:15px;top:14px;width:34px;height:34px;border:0;border-radius:50%;background:#edf5fb;color:#55738c;font-size:22px;line-height:1;cursor:pointer}.tdpl-pwa-logo{width:86px;height:86px;margin:0 auto 13px;border-radius:22px;background:#fff;padding:6px;box-shadow:0 10px 30px rgba(6,80,145,.13);border:1px solid #dceaf5}.tdpl-pwa-logo img{width:100%;height:100%;object-fit:contain}.tdpl-pwa-kicker{display:inline-flex;padding:6px 10px;border-radius:999px;background:#e9f5ff;color:#0968b8;font-size:8px;font-weight:900;letter-spacing:.09em}.tdpl-pwa-card h3{margin:10px 0 7px;font-size:24px;color:#0a3f73}.tdpl-pwa-card>p{margin:0 auto 18px;max-width:360px;color:#6c8194;font-size:11px;line-height:1.65}.tdpl-pwa-benefits{display:grid;gap:8px;text-align:left;margin-bottom:17px}.tdpl-pwa-benefits>div{display:flex;align-items:center;gap:11px;padding:10px 11px;border:1px solid #e0ebf4;border-radius:13px;background:rgba(255,255,255,.82)}.tdpl-pwa-benefits .tdpl-pwa-icon{width:35px;height:35px;flex:0 0 35px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(135deg,#e9f5ff,#dceeff);color:#0870c8;font-weight:900}.tdpl-pwa-benefits span:last-child{display:flex;flex-direction:column;gap:2px}.tdpl-pwa-benefits b{font-size:10.5px;color:#244a6a}.tdpl-pwa-benefits small{font-size:8.5px;color:#7d8f9f}.tdpl-pwa-primary{width:100%;border:0;border-radius:13px;padding:13px 16px;background:linear-gradient(135deg,#0756a3,#0a7bd5);color:#fff;font:inherit;font-size:11px;font-weight:900;box-shadow:0 9px 22px rgba(6,91,168,.22);cursor:pointer}.tdpl-pwa-primary:disabled{opacity:.48;cursor:not-allowed;box-shadow:none}.tdpl-pwa-note{display:block;margin:8px 8px 0;color:#8b9aa7;font-size:8px;line-height:1.45}.tdpl-pwa-ios{display:flex;flex-direction:column;gap:6px;text-align:left;padding:13px 14px;border-radius:13px;background:#edf7ff;border:1px solid #d4eafa;color:#536d82;font-size:9px;line-height:1.45}.tdpl-pwa-ios[hidden]{display:none!important}.tdpl-pwa-ios b{font-size:10.5px;color:#0a5c9d;margin-bottom:2px}.tdpl-pwa-later{margin-top:10px;border:0;background:transparent;color:#70879a;font-size:9px;font-weight:800;padding:7px 12px;cursor:pointer}@keyframes tdplPwaIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}@media(max-width:520px){.tdpl-pwa-backdrop{align-items:flex-end;padding:10px}.tdpl-pwa-card{border-radius:25px 25px 18px 18px;padding:24px 18px 18px}.tdpl-pwa-card h3{font-size:21px}.tdpl-pwa-logo{width:74px;height:74px}.tdpl-pwa-fab{right:12px;bottom:12px}.tdpl-pwa-fab button{border-radius:14px}.tdpl-pwa-benefits>div{padding:9px 10px}}

/* TDPL v6 — Modern chapter detail */
.modern-reader-head{background:#fff;border-bottom:1px solid #e6edf5}.modern-reader-head .reader-head-inner{padding-top:25px;padding-bottom:25px}.modern-chapter-section{padding:28px 0 70px;background:linear-gradient(180deg,#f4f8fc,#eef4fa)}.modern-chapter-grid{display:grid;grid-template-columns:330px minmax(0,1fr);gap:20px;align-items:start}.modern-chapter-sidebar{background:#fff;border:1px solid #e1eaf2;border-radius:20px;padding:20px;box-shadow:0 12px 34px rgba(7,61,112,.07);position:sticky;top:100px}.modern-sidebar-title{padding:4px 5px 16px}.modern-sidebar-title>span{font-size:9px;font-weight:900;letter-spacing:.14em;color:#1681d2}.modern-sidebar-title h2{font-size:22px;margin:4px 0 2px;color:#123d69}.modern-sidebar-title small{color:#8092a3;font-size:10px}.modern-chapter-list{display:grid;gap:8px}.modern-chapter-item{display:grid;grid-template-columns:38px 1fr 16px;gap:11px;align-items:center;padding:12px;border:1px solid #dfe8f0;border-radius:13px;background:#fff;transition:.2s}.modern-chapter-item:hover{transform:translateX(3px);border-color:#9cccf1;box-shadow:0 7px 18px rgba(5,83,151,.08)}.chapter-doc-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e9f5ff;color:#0871c7;font-weight:900}.chapter-label{display:flex;flex-direction:column;min-width:0}.chapter-label small{font-size:9px;font-weight:900;color:#45647f;margin-bottom:3px}.chapter-label strong{font-size:10px;line-height:1.35;color:#173a5c}.modern-chapter-item i{font-size:21px;font-style:normal;color:#6f91ad}.modern-chapter-item.active{background:linear-gradient(135deg,#074984,#0872c7);border-color:#075da7;box-shadow:0 12px 25px rgba(4,79,146,.2)}.modern-chapter-item.active .chapter-doc-icon{background:#fff;color:#0870c6}.modern-chapter-item.active small,.modern-chapter-item.active strong,.modern-chapter-item.active i{color:#fff}.modern-chapter-main{min-width:0}.chapter-hero-card{min-height:178px;border-radius:20px;padding:28px;background:linear-gradient(125deg,#0755a6,#0b78cf 58%,#0753a2);color:#fff;display:grid;grid-template-columns:100px 1fr 190px;gap:22px;align-items:center;box-shadow:0 16px 40px rgba(4,74,139,.16);overflow:hidden;position:relative}.chapter-hero-card:after{content:"";position:absolute;width:330px;height:330px;border:1px solid rgba(255,255,255,.1);border-radius:50%;right:-110px;bottom:-220px}.chapter-number-box{height:100px;border:1px solid rgba(255,255,255,.45);border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(255,255,255,.06)}.chapter-number-box small{font-size:15px;font-weight:800}.chapter-number-box strong{font-size:34px;line-height:1}.chapter-hero-copy>span{font-size:8px;letter-spacing:.15em;font-weight:900;color:#a9ddff}.chapter-hero-copy h2{font-size:27px;line-height:1.12;margin:7px 0 9px;max-width:580px}.chapter-hero-copy p{font-size:10px;color:rgba(255,255,255,.82);margin:0}.chapter-hero-stat{background:rgba(255,255,255,.94);color:#234764;border-radius:15px;padding:18px;display:flex;flex-direction:column;z-index:1}.chapter-hero-stat>span{font-size:9px;color:#7890a4}.chapter-hero-stat>strong{font-size:28px;color:#075baa;margin:3px 0}.chapter-hero-stat strong small{font-size:13px;color:#7a8d9d}.chapter-hero-stat em{font-style:normal;font-size:9px;color:#469567}.chapter-action-card{margin-top:18px;background:#fff;border:1px solid #e1eaf2;border-radius:20px;padding:28px;display:grid;grid-template-columns:280px 1fr;gap:32px;align-items:center;box-shadow:0 10px 30px rgba(7,61,112,.05)}.chapter-visual{height:230px;border-radius:50%;background:linear-gradient(145deg,#eef7ff,#dcecf9);display:grid;place-items:center;max-width:230px;margin:auto}.chart-bars{width:145px;height:125px;display:flex;align-items:flex-end;gap:9px;position:relative;border-bottom:7px solid #d3e1ed}.chart-bars i{width:25px;border-radius:6px 6px 0 0;background:linear-gradient(#54a9e8,#1764a6);box-shadow:0 8px 12px rgba(4,70,125,.15)}.chart-bars i:nth-child(1){height:42px}.chart-bars i:nth-child(2){height:62px}.chart-bars i:nth-child(3){height:82px}.chart-bars i:nth-child(4){height:105px}.chart-bars b{position:absolute;right:-7px;top:-17px;font-size:65px;color:#e1ad34;transform:rotate(-9deg)}.chapter-action-copy h3{font-size:25px;margin:6px 0 9px;color:#102f50}.chapter-action-copy>p{font-size:11px;line-height:1.7;color:#62778a;max-width:650px}.chapter-features{display:grid;gap:8px;margin:17px 0;color:#35546e;font-size:10px}.chapter-features span::first-letter{color:#39a65b}.read-chapter-button{display:inline-flex;flex-direction:column;background:linear-gradient(135deg,#0757ac,#087bd4);color:#fff;border-radius:12px;padding:12px 19px;font-size:11px;font-weight:900;box-shadow:0 9px 22px rgba(4,94,173,.2)}.read-chapter-button small{font-size:8px;font-weight:500;opacity:.8;margin-top:2px}.chapter-nav-card{margin-top:18px;min-height:90px;border:1px solid #dce8f2;border-radius:17px;background:linear-gradient(90deg,#f1f7fd,#e8f2fc);display:grid;grid-template-columns:1fr 130px 1fr;align-items:center;padding:15px 20px}.chapter-nav-card>strong{text-align:center;font-size:10px;color:#3c5870;border-left:1px solid #cdddeb;border-right:1px solid #cdddeb;padding:18px 4px}.chapter-nav-card a{display:flex;flex-direction:column;color:#234b6e}.chapter-nav-card a small{font-size:8px;color:#0870c4;font-weight:800}.chapter-nav-card a b{font-size:10px;margin:3px 0}.chapter-nav-card a span{font-size:9px;color:#667f94}.chapter-nav-card .next{text-align:right}.chapter-nav-card .next a{align-items:flex-end}.modern-pdf-block{margin-top:20px;scroll-margin-top:100px}.modern-pdf-head{background:#fff;border:1px solid #dfe8f0;border-radius:15px 15px 0 0;padding:15px 18px;display:flex;justify-content:space-between;align-items:center}.modern-pdf-head span{font-size:9px;color:#0a6dbd;font-weight:900}.modern-pdf-head h3{font-size:15px;margin:2px 0}.modern-pdf-head>small{font-size:8px;color:#8393a1}.modern-pdf-block .chapter-pdf-shell{border-radius:0 0 15px 15px}.chapter-empty-modern{min-height:540px;background:#fff;border:1px solid #e0e9f1;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px;box-shadow:0 10px 30px rgba(7,61,112,.05)}.chapter-empty-modern img{width:105px;height:140px;object-fit:contain;filter:drop-shadow(0 10px 14px rgba(3,55,99,.17));margin-bottom:20px}.chapter-empty-modern>span{font-size:9px;letter-spacing:.14em;font-weight:900;color:#0b78ca}.chapter-empty-modern h2{font-size:28px;margin:7px 0}.chapter-empty-modern p{font-size:11px;line-height:1.7;color:#6c8194;max-width:500px}.chapter-empty-modern>b{margin-top:12px;background:#eaf6ff;color:#0869b9;padding:8px 13px;border-radius:999px;font-size:10px}
@media(max-width:980px){.modern-chapter-grid{grid-template-columns:1fr}.modern-chapter-sidebar{position:static}.modern-chapter-list{grid-template-columns:repeat(2,1fr)}.chapter-hero-card{grid-template-columns:85px 1fr}.chapter-hero-stat{display:none}.chapter-action-card{grid-template-columns:210px 1fr}.chapter-visual{height:190px;max-width:190px}.chart-bars{transform:scale(.8)}}
@media(max-width:650px){.modern-chapter-section{padding-top:15px}.modern-chapter-grid{width:min(100% - 20px,1180px)}.modern-chapter-sidebar{padding:14px;border-radius:16px}.modern-chapter-list{display:flex;overflow-x:auto;gap:8px;padding-bottom:5px}.modern-chapter-item{min-width:235px}.chapter-hero-card{grid-template-columns:62px 1fr;gap:13px;padding:19px;border-radius:16px;min-height:145px}.chapter-number-box{height:72px}.chapter-number-box small{font-size:11px}.chapter-number-box strong{font-size:25px}.chapter-hero-copy h2{font-size:19px}.chapter-action-card{grid-template-columns:1fr;padding:20px}.chapter-visual{display:none}.chapter-action-copy h3{font-size:21px}.read-chapter-button{display:flex;text-align:center}.chapter-nav-card{grid-template-columns:1fr 72px 1fr;padding:10px}.chapter-nav-card a span{display:none}.modern-pdf-head{align-items:flex-start;gap:10px}.modern-pdf-head>small{text-align:right}.modern-pdf-block .chapter-pdf-shell{height:70vh}}

/* TDPL v7 — sidebar BAB + header icons */
.nav-icon-link{display:inline-flex!important;align-items:center;gap:7px}.nav-menu-icon{width:23px;height:23px;border-radius:7px;display:inline-grid;place-items:center;background:#eef7ff;color:#086cbd;font-size:14px;font-weight:900;line-height:1}.admin-link .nav-menu-icon{background:rgba(255,255,255,.72)}
.modern-chapter-sidebar{max-height:calc(100vh - 120px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#a8cae6 transparent}.modern-chapter-sidebar::-webkit-scrollbar{width:5px}.modern-chapter-sidebar::-webkit-scrollbar-thumb{background:#b6d2e8;border-radius:10px}.chapter-sidebar-close,.chapter-mobile-toolbar,.chapter-sidebar-backdrop{display:none}
@media(max-width:650px){
 .chapter-mobile-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;width:min(100% - 20px,1180px)}
 .chapter-sidebar-toggle{border:0;background:linear-gradient(135deg,#0753a2,#0879d1);color:#fff;border-radius:13px;padding:11px 14px;font:inherit;font-size:12px;font-weight:800;display:flex;align-items:center;gap:8px;box-shadow:0 8px 20px rgba(5,82,151,.18)}
 .chapter-sidebar-toggle span{font-size:17px}.chapter-sidebar-toggle b{min-width:21px;height:21px;border-radius:999px;background:rgba(255,255,255,.2);display:grid;place-items:center;font-size:9px}
 .chapter-mobile-current{font-size:10px;font-weight:900;color:#0868b7;background:#fff;border:1px solid #dbe8f2;border-radius:999px;padding:8px 11px}
 .modern-chapter-sidebar{position:fixed!important;left:0;top:0;bottom:0;width:min(88vw,350px);max-height:none;z-index:1200;border-radius:0 22px 22px 0;padding:22px 16px;transform:translateX(-105%);transition:transform .28s ease;overflow-y:auto;box-shadow:20px 0 55px rgba(5,42,77,.22)}
 .modern-chapter-sidebar.mobile-open{transform:translateX(0)}
 .chapter-sidebar-close{display:grid;place-items:center;position:absolute;right:13px;top:13px;width:34px;height:34px;border:0;border-radius:10px;background:#edf6fd;color:#075aa6;font-size:23px;cursor:pointer}
 .modern-sidebar-title{padding-right:42px}.modern-chapter-list{display:grid!important;overflow:visible!important;padding-bottom:15px}.modern-chapter-item{min-width:0!important;width:100%}
 .chapter-sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(3,27,50,.48);backdrop-filter:blur(2px);z-index:1190;opacity:0;visibility:hidden;transition:.25s}.chapter-sidebar-backdrop.show{opacity:1;visibility:visible}.chapter-menu-open{overflow:hidden}
 .nav-icon-link{width:100%}.nav-menu-icon{width:28px;height:28px}
}

/* TDPL v9 — mobile-first refinement */
.mobile-chapter-bottom{display:none}
@media(max-width:768px){
  html{scroll-padding-top:72px}
  body{overflow-x:hidden}
  .container{width:min(100% - 24px,1180px)}
  .topbar{height:64px;box-shadow:0 5px 18px rgba(5,54,103,.08)}
  .nav-wrap{position:relative}
  .brand{gap:9px;min-width:0}
  .brand-logo{width:38px;height:43px}
  .brand strong{font-size:20px;letter-spacing:.05em}
  .brand span{font-size:9px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:205px}
  .nav-toggle{display:grid!important;place-items:center;width:39px;height:39px;border:1px solid #dce9f4;border-radius:12px;background:#fff;color:#0759a6;font-size:20px;box-shadow:0 5px 14px rgba(5,72,133,.08)}
  .nav-links{position:absolute;top:55px;right:0;width:min(290px,calc(100vw - 24px));padding:10px;background:rgba(255,255,255,.98);border:1px solid #deebf5;border-radius:17px;box-shadow:0 22px 55px rgba(5,45,82,.18);display:none!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;z-index:1500}
  .nav-links.open{display:flex!important}
  .nav-links a{width:100%;padding:10px 11px!important;border-radius:11px;color:#244b6d!important;background:#fff!important}
  .nav-links a:hover{background:#eef7ff!important}
  .nav-menu-icon{flex:0 0 30px;width:30px!important;height:30px!important;border-radius:9px}
  .admin-link{margin-left:0!important;border:0!important}
  .reader-head{padding:16px 0 13px}
  .modern-reader-head .reader-head-inner{gap:12px}
  .back-link{font-size:11px}
  .reader-title{margin-top:11px;gap:12px;align-items:center}
  .reader-title img{width:58px!important;height:76px!important;border-radius:8px}
  .reader-title>div{min-width:0}
  .reader-title span{font-size:9px}
  .reader-title h1{font-size:19px!important;line-height:1.18;margin:4px 0 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .reader-title p{font-size:10px;margin:0}
  .modern-chapter-section{padding:12px 0 92px!important}
  .chapter-mobile-toolbar{position:sticky;top:72px;z-index:40;background:rgba(246,249,252,.94);backdrop-filter:blur(10px);padding:6px 0;margin-bottom:10px!important}
  .chapter-sidebar-toggle{min-height:44px;padding:10px 14px!important;border-radius:14px!important;font-size:12px!important}
  .chapter-mobile-current{padding:9px 12px!important}
  .modern-chapter-grid{width:min(100% - 24px,1180px)!important}
  .chapter-hero-card{grid-template-columns:56px 1fr!important;gap:12px!important;padding:16px!important;min-height:132px!important;border-radius:17px!important}
  .chapter-number-box{height:66px!important;border-radius:12px!important}
  .chapter-number-box small{font-size:10px!important}.chapter-number-box strong{font-size:23px!important}
  .chapter-hero-copy>span{font-size:7px!important;letter-spacing:.12em}
  .chapter-hero-copy h2{font-size:18px!important;line-height:1.16!important;margin:5px 0 6px!important}
  .chapter-hero-copy p{font-size:8.5px!important;line-height:1.35}
  .chapter-action-card{margin-top:12px!important;padding:17px!important;border-radius:17px!important;box-shadow:0 7px 22px rgba(7,61,112,.05)!important}
  .chapter-action-copy .eyebrow{font-size:8px}.chapter-action-copy h3{font-size:19px!important;line-height:1.25;margin:5px 0 8px!important}
  .chapter-action-copy>p{font-size:10.5px!important;line-height:1.6!important}
  .chapter-features{font-size:9.5px!important;gap:7px!important;margin:14px 0!important}
  .read-chapter-button{display:none!important}
  .chapter-nav-card{margin-top:12px!important;min-height:70px!important;border-radius:15px!important;grid-template-columns:1fr 64px 1fr!important;padding:9px 10px!important}
  .chapter-nav-card>strong{font-size:8.5px!important;padding:14px 3px!important}
  .chapter-nav-card a small{font-size:8px!important}.chapter-nav-card a b{font-size:9px!important}.chapter-nav-card a span{display:none!important}
  .modern-pdf-block{margin-top:12px!important;scroll-margin-top:132px!important}
  .modern-pdf-head{padding:12px 13px!important;border-radius:14px 14px 0 0!important;gap:8px}
  .modern-pdf-head h3{font-size:13px!important;line-height:1.25}.modern-pdf-head>small{font-size:7.5px!important;max-width:110px}
  .modern-pdf-block .chapter-pdf-shell{height:74vh!important;min-height:510px;border-radius:0 0 14px 14px!important}
  .modern-pdf-block iframe{width:100%!important;height:100%!important}
  .modern-chapter-sidebar{width:min(90vw,360px)!important;padding:20px 14px 26px!important;border-radius:0 22px 22px 0!important}
  .modern-sidebar-title h2{font-size:20px!important}
  .modern-chapter-item{grid-template-columns:39px 1fr 15px!important;padding:12px!important;min-height:61px}
  .chapter-label strong{font-size:10.5px!important}
  .mobile-chapter-bottom{position:fixed;display:grid;grid-template-columns:74px 1fr 66px;gap:8px;left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));z-index:1100;background:rgba(255,255,255,.96);border:1px solid #dbe8f2;border-radius:18px;padding:8px;box-shadow:0 18px 46px rgba(5,45,82,.22);backdrop-filter:blur(13px)}
  .mobile-chapter-bottom button,.mobile-chapter-bottom a{border:0;min-height:50px;border-radius:12px;display:flex;align-items:center;justify-content:center;font:inherit}
  .mobile-bottom-bab{flex-direction:column;gap:1px;background:#eef7ff;color:#075fae}.mobile-bottom-bab span{font-size:17px}.mobile-bottom-bab small{font-size:8px;font-weight:800}
  .mobile-bottom-read{gap:8px;background:linear-gradient(135deg,#0754a5,#087bd4);color:#fff}.mobile-bottom-read span{font-size:17px}.mobile-bottom-read b{font-size:11px}
  .mobile-bottom-next{flex-direction:column;gap:0;background:#f3f7fb;color:#31536e}.mobile-bottom-next small{font-size:7.5px}.mobile-bottom-next span{font-size:17px;font-weight:900}
  .footer{padding-bottom:92px}
}
@media(max-width:390px){
 .brand span{max-width:155px}
 .reader-title h1{font-size:17px!important}
 .chapter-hero-copy h2{font-size:16.5px!important}
 .mobile-chapter-bottom{grid-template-columns:68px 1fr 60px;left:7px;right:7px}
}
