.httm-books{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;color:#1a2b44;max-width:1200px;margin:30px auto 70px;padding:0 20px;box-sizing:border-box}.httm-books *{box-sizing:border-box}.httm-books a{text-decoration:none}.httm-library-hero{background:linear-gradient(110deg,#1c2e57,#425cc5);padding:42px 45px;border-radius:25px;color:#fff;margin-bottom:24px}.httm-library-hero h1{color:#fff;font-size:clamp(30px,4vw,44px);margin:8px 0;font-weight:800}.httm-library-hero p{color:#e4eafb;margin:0}.httm-overline{font-size:11px;letter-spacing:.13em;color:#d7c4ff;font-weight:700}.httm-book-filters{display:grid;grid-template-columns:minmax(0,2fr) 1fr 1fr auto;align-items:center;gap:12px;margin-bottom:28px}.httm-book-filters label{margin:0}.httm-books .httm-book-filters input,.httm-books .httm-book-filters select{height:48px;min-height:48px;width:100%;margin:0!important;padding:0 14px!important;background:#fff!important;border:1px solid #dbe2f0!important;border-radius:12px!important;box-shadow:none!important;font-size:14px}.httm-book-filters button,.httm-book-primary{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 21px;border:0;border-radius:12px;background:#395dd2;color:#fff!important;font-size:14px;font-weight:750;cursor:pointer;white-space:nowrap}.httm-book-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}.httm-book-card{min-width:0;border:1px solid #e8eaf1;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 5px 21px #182b4310;transition:transform .2s,box-shadow .2s}.httm-book-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px #182b4320}.httm-book-cover{height:230px;background:#f3f4ff;display:flex;align-items:center;justify-content:center;overflow:hidden}.httm-book-cover img{width:100%;height:100%;object-fit:cover}.httm-book-no-cover{display:flex;flex-direction:column;gap:13px;justify-content:center;align-items:center;min-height:180px;text-align:center;font-size:52px;background:linear-gradient(135deg,#ecefff,#f9ead6);width:100%;height:100%}.httm-book-no-cover small{font-size:13px;color:#415171;line-height:1.5;padding:5px 15px}.httm-book-card-body{padding:14px}.httm-book-category{font-size:11px;font-weight:750;color:#7856d3}.httm-book-card h3{font-size:15px!important;line-height:1.45;margin:8px 0!important;min-height:44px;max-height:44px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.httm-book-card h3 a{color:#182a42}.httm-book-card p{color:#8190a4;font-size:12px;margin:0 0 13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.httm-book-read-link{font-size:13px;font-weight:750;color:#365ad0;display:flex;justify-content:space-between;align-items:center}.httm-book-pagination{display:flex;gap:8px;justify-content:center;margin:35px auto}.httm-book-pagination a{padding:8px 13px;border:1px solid #d6dced;border-radius:9px}.httm-book-pagination a.active{background:#365ad0;color:#fff}.httm-book-empty{padding:30px;border:1px dashed #cad2e8;border-radius:14px;grid-column:1/-1;text-align:center}.httm-book-detail-hero{display:grid;grid-template-columns:270px 1fr;gap:32px;background:#fff;border:1px solid #e6e9f2;padding:30px;border-radius:22px}.httm-book-detail-cover img{width:100%;border-radius:12px;box-shadow:0 14px 25px #192d4228}.httm-book-detail h1{font-size:clamp(27px,3.5vw,39px);margin:12px 0!important}.httm-book-back{color:#4663bd;font-size:13px}.httm-book-detail-hero p{color:#687891}.httm-book-metadata{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;margin:22px 0 26px}.httm-book-metadata>div{border-bottom:1px solid #f0f1f4;padding-bottom:10px}.httm-book-metadata dt{font-size:12px;color:#79879c}.httm-book-metadata dd{margin:4px 0 0;font-weight:700;font-size:14px}.httm-book-intro{background:#fff;border:1px solid #e7eaf3;padding:25px 29px;border-radius:18px;margin:22px 0}.httm-book-intro h2{font-size:22px}.httm-reader{max-width:1190px}.httm-reader-top{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#344f9d;padding:13px 18px;border-radius:12px;color:#fff;margin-bottom:18px}.httm-reader-top a{color:#fff}.httm-reader-top strong{min-width:0;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.httm-reader-top button{background:#ffffff26;color:#fff;border:0;border-radius:9px;font-size:25px;width:43px;height:38px;cursor:pointer}.httm-reader-stage{background:linear-gradient(135deg,#e6e0cf,#f7f4ea);border-radius:20px;min-height:530px;padding:25px;display:flex;justify-content:center;align-items:center;overflow:hidden;perspective:1400px}.httm-reader-page{position:relative;width:min(100%,740px);height:min(72vh,780px);min-height:460px;max-width:100%;transform-style:preserve-3d}.httm-reader-face{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#fffefb;border:1px solid #e7dec9;border-radius:5px 14px 14px 5px;overflow:hidden;box-shadow:18px 16px 34px #16254026, inset -15px 0 20px #b9aa8c15;backface-visibility:hidden}.httm-reader-face canvas,.httm-reader-face img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}.httm-reader-next{transform:rotateY(-180deg);background:#fffcf4}.httm-reader-page.is-flipping{animation:httm-book-flip .62s ease-in-out}.httm-reader-page.is-flipping-back{animation:httm-book-flip-back .62s ease-in-out}@keyframes httm-book-flip{0%{transform:rotateY(0)}49%{transform:rotateY(-90deg)}100%{transform:rotateY(0)}}@keyframes httm-book-flip-back{0%{transform:rotateY(0)}49%{transform:rotateY(90deg)}100%{transform:rotateY(0)}}.httm-reader-wait{padding:30px;text-align:center;color:#647189}.httm-reader-bottom{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:15px;flex-wrap:wrap}.httm-reader-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.httm-reader-actions button{background:#395cc3;border:0;border-radius:10px;padding:12px 17px;color:#fff;font-size:13px;font-weight:700;cursor:pointer}.httm-reader-actions button:disabled{opacity:.45;cursor:not-allowed}.httm-reader-actions button[aria-pressed=true]{background:#b05827}.httm-reader-actions label,.httm-reader-count label{display:inline-flex;align-items:center;gap:7px;color:#53647b;font-size:13px}.httm-reader-speed,.httm-reader-jump{height:40px!important;background:#fff!important;border:1px solid #dbe3f2!important;border-radius:9px!important;margin:0!important}.httm-reader-jump{width:70px!important;padding:6px!important}.httm-reader-count{display:flex;align-items:center;gap:8px}.httm-reader-saved{font-size:12px;color:#227e56}.httm-reader-hint{color:#8290a5;font-size:12px;margin-top:13px}.httm-reader-pdf-fallback{padding:15px;border:1px solid #e4ceb1;background:#fff6e9;border-radius:12px}.httm-reader:fullscreen{padding:18px;background:#f7f1e2;overflow:auto;max-width:none}.httm-reader:fullscreen .httm-reader-stage{min-height:75vh}.httm-reader:fullscreen .httm-reader-page{height:77vh;max-width:70vw}.httm-books button:focus-visible,.httm-books a:focus-visible{outline:3px solid #a97bf7;outline-offset:3px}@media(max-width:1050px){.httm-book-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:760px){.httm-books{padding:0 14px;margin-top:14px}.httm-library-hero{padding:30px 22px}.httm-book-filters{grid-template-columns:1fr 1fr}.httm-book-filters label:first-child{grid-column:1/-1}.httm-book-filters button{grid-column:1/-1}.httm-book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.httm-book-cover{height:195px}.httm-book-detail-hero{grid-template-columns:1fr;padding:17px}.httm-book-detail-cover{max-width:200px}.httm-book-metadata{grid-template-columns:1fr}.httm-reader-stage{min-height:400px;padding:12px}.httm-reader-page{min-height:380px;height:65vh}.httm-reader-top strong{font-size:12px}.httm-reader-actions button{padding:10px 12px}.httm-reader-bottom{align-items:flex-start}.httm-reader:fullscreen .httm-reader-page{max-width:95vw;height:74vh}}@media(max-width:380px){.httm-book-cover{height:150px}.httm-book-card-body{padding:10px}.httm-book-card h3{font-size:13px!important}}

/* HTTM Books 1.1 — shelf on LMS homepage */
.es-academy .httm-home-library{margin-bottom:62px}.httm-home-books-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:19px}.httm-home-book-card{background:#fff;border:1px solid #e9e6da;border-radius:16px;overflow:hidden;min-width:0;transition:box-shadow .2s,transform .2s}.httm-home-book-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(24,44,77,.1)}.httm-home-book-cover{height:216px;background:linear-gradient(140deg,#eff3fd,#fff6e5);display:flex;align-items:center;justify-content:center;overflow:hidden}.httm-home-book-cover img{width:100%;height:100%;object-fit:contain;display:block}.httm-home-book-placeholder{font-size:62px;line-height:1}.httm-home-book-info{padding:13px 14px 17px}.httm-home-book-genre{font-size:10px;font-weight:800;letter-spacing:.08em;color:#6848c6;text-transform:uppercase}.es-academy .httm-home-book-info h3{font-size:15px!important;line-height:1.45;min-height:43px;max-height:43px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:7px 0!important}.httm-home-book-info h3 a{color:#1e2f4b}.httm-home-book-info p{font-size:12px;color:#7c8899;margin:0 0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.httm-home-book-read{font-size:13px;font-weight:750;color:#345dd5!important}.httm-home-book-read:hover{text-decoration:underline!important}.httm-home-books-empty{border:1px dashed #cbd6ee;padding:22px;border-radius:12px;color:#536783;background:#fff}@media(max-width:900px){.httm-home-books-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}@media(max-width:620px){.httm-home-books-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.httm-home-book-cover{height:170px}.httm-home-book-info{padding:10px 11px 13px}.es-academy .httm-home-book-info h3{font-size:13px!important;min-height:38px;max-height:38px}.es-academy .httm-home-library{margin-bottom:40px}}

/* HTTM Books 1.2 — upgraded reader */
.httm-reader{max-width:1280px;margin-top:20px}
.httm-reader-top{background:linear-gradient(135deg,#3552a6,#4b67c6);padding:16px 18px;border-radius:18px;box-shadow:0 16px 34px rgba(32,49,97,.14);margin-bottom:16px}
.httm-reader-top strong{font-size:15px;font-weight:800;letter-spacing:.01em}
.httm-reader-top a{font-size:13px;font-weight:700;opacity:.95}
.httm-reader-top button{width:46px;height:46px;border-radius:14px;font-size:20px;font-weight:900}
.httm-reader-stage{padding:26px;background:linear-gradient(180deg,#ece6d8 0%,#f4efe4 100%);border:1px solid #e8ddc7;border-radius:24px;box-shadow:inset 0 1px 0 rgba(255,255,255,.7);min-height:620px;position:relative;overflow:hidden}
.httm-reader-book{width:min(100%,1080px);margin:0 auto;position:relative}
.httm-reader-spread{display:grid;grid-template-columns:1fr 1fr;gap:0;position:relative;align-items:stretch;min-height:540px}
.httm-reader-spread.is-single{grid-template-columns:1fr;max-width:640px;margin:0 auto}
.httm-reader-leaf{position:relative;padding:20px}
.httm-reader-spread:not(.is-single) .httm-reader-leaf.is-left{padding-right:12px}
.httm-reader-spread:not(.is-single) .httm-reader-leaf.is-right{padding-left:12px}
.httm-reader-surface{position:relative;height:100%;min-height:500px;background:linear-gradient(180deg,#fffefc,#fbf7ef);border:1px solid #ddcfb4;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;box-shadow:0 24px 42px rgba(35,40,62,.18), inset 0 0 0 1px rgba(255,255,255,.5)}
.httm-reader-spread:not(.is-single) .httm-reader-leaf.is-left .httm-reader-surface{border-radius:14px 6px 6px 14px;box-shadow:inset -26px 0 28px rgba(73,55,27,.05),0 20px 38px rgba(35,40,62,.15)}
.httm-reader-spread:not(.is-single) .httm-reader-leaf.is-right .httm-reader-surface{border-radius:6px 14px 14px 6px;box-shadow:inset 26px 0 28px rgba(73,55,27,.05),0 20px 38px rgba(35,40,62,.15)}
.httm-reader-spread:not(.is-single)::after{content:'';position:absolute;left:50%;top:28px;bottom:28px;width:24px;transform:translateX(-50%);background:linear-gradient(90deg,rgba(92,71,40,.12),rgba(255,255,255,.03),rgba(92,71,40,.12));border-radius:999px;filter:blur(2px);pointer-events:none}
.httm-reader-page-inner{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:26px}
.httm-reader-page-inner canvas,.httm-reader-page-inner img{max-width:100%;max-height:100%;width:auto;height:auto;display:block;object-fit:contain}
.httm-reader-page-number{position:absolute;bottom:12px;font-size:12px;font-weight:800;color:#8a7a5f;letter-spacing:.08em}
.httm-reader-leaf.is-left .httm-reader-page-number{left:22px}.httm-reader-leaf.is-right .httm-reader-page-number{right:22px}
.httm-reader-flip-sheet{position:absolute;top:20px;bottom:20px;width:calc(50% - 10px);right:20px;transform-style:preserve-3d;transform-origin:left center;pointer-events:none;z-index:5}
.httm-reader-flip-sheet[hidden]{display:none}
.httm-reader-flip-sheet.turn-prev{left:20px;right:auto;transform-origin:right center}
.httm-reader-flip-sheet.is-mobile{left:20px;right:20px;width:auto;transform-origin:left center}
.httm-reader-flip-face{position:absolute;inset:0;background:linear-gradient(180deg,#fffefc,#fbf7ef);border:1px solid #ddcfb4;border-radius:6px 14px 14px 6px;overflow:hidden;backface-visibility:hidden;display:flex;align-items:center;justify-content:center;box-shadow:0 24px 42px rgba(35,40,62,.16)}
.httm-reader-flip-face canvas,.httm-reader-flip-face img{max-width:100%;max-height:100%;width:auto;height:auto;display:block;object-fit:contain;padding:26px}
.httm-reader-flip-sheet.turn-prev .httm-reader-flip-face{border-radius:14px 6px 6px 14px}
.httm-reader-flip-face.flip-front{transform:rotateY(0deg)}
.httm-reader-flip-face.flip-back{transform:rotateY(180deg)}
.httm-reader-page-shadow{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.18),rgba(255,255,255,0) 35%);opacity:0;border-radius:inherit}
.httm-reader-flip-sheet.is-animating.turn-next{animation:httmFlipNext .64s ease-in-out forwards}.httm-reader-flip-sheet.is-animating.turn-next .httm-reader-page-shadow{animation:httmShadowNext .64s ease-in-out forwards}
.httm-reader-flip-sheet.is-animating.turn-prev{animation:httmFlipPrev .64s ease-in-out forwards}.httm-reader-flip-sheet.is-animating.turn-prev .httm-reader-page-shadow{animation:httmShadowPrev .64s ease-in-out forwards}
@keyframes httmFlipNext{0%{transform:perspective(1800px) rotateY(0deg)}100%{transform:perspective(1800px) rotateY(-180deg)}}
@keyframes httmFlipPrev{0%{transform:perspective(1800px) rotateY(0deg)}100%{transform:perspective(1800px) rotateY(180deg)}}
@keyframes httmShadowNext{0%{opacity:0}35%{opacity:1}100%{opacity:0}}
@keyframes httmShadowPrev{0%{opacity:0}35%{opacity:1}100%{opacity:0}}
.httm-reader-bottom{background:#fffdf8;border:1px solid #e8deca;border-radius:18px;padding:14px 16px;box-shadow:0 12px 28px rgba(41,49,74,.06);margin-top:16px;justify-content:space-between}
.httm-reader-actions button{background:#395cc3;border-radius:12px;padding:12px 15px;box-shadow:0 8px 18px rgba(57,92,195,.16)}
.httm-reader-actions button:hover:not(:disabled){transform:translateY(-1px)}
.httm-reader-actions label{background:#f5f1e8;border:1px solid #e6d9bf;border-radius:12px;padding:7px 10px}
.httm-reader-speed,.httm-reader-jump{border-radius:10px!important;background:#fffdf8!important}
.httm-reader-hint{padding:0 2px;color:#7a6f5d;font-size:13px;line-height:1.65;margin-top:14px}
.httm-reader-wait{color:#7e7058;font-size:14px;font-weight:600;padding:18px;text-align:center}
.httm-reader:fullscreen{max-width:none;padding:16px;background:#f2ecdf}.httm-reader:fullscreen .httm-reader-stage{min-height:78vh}.httm-reader:fullscreen .httm-reader-spread{min-height:68vh}
@media(max-width:900px){
 .httm-reader-stage{padding:18px;min-height:440px}
 .httm-reader-spread,.httm-reader-spread.is-single{grid-template-columns:1fr;max-width:680px;margin:0 auto;min-height:420px}
 .httm-reader-leaf.is-right{display:none}
 .httm-reader-spread::after{display:none}
 .httm-reader-leaf{padding:10px}
 .httm-reader-surface{min-height:430px;border-radius:16px!important}
 .httm-reader-flip-sheet,.httm-reader-flip-sheet.turn-prev,.httm-reader-flip-sheet.is-mobile{left:10px;right:10px;width:auto;top:10px;bottom:10px;transform-origin:left center}
 .httm-reader-bottom{gap:14px}
}
@media(max-width:640px){
 .httm-reader{padding:0 12px}
 .httm-reader-top{padding:14px 14px;border-radius:16px;align-items:flex-start;flex-wrap:wrap}
 .httm-reader-top strong{order:3;width:100%;text-align:left;white-space:normal;line-height:1.45}
 .httm-reader-stage{padding:12px;border-radius:18px;min-height:340px}
 .httm-reader-surface{min-height:340px}
 .httm-reader-page-inner{padding:18px}
 .httm-reader-bottom{padding:12px}
 .httm-reader-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
 .httm-reader-actions button,.httm-reader-actions label{width:100%;justify-content:center}
 .httm-reader-count{width:100%;justify-content:space-between}
}

/* HTTM Books 1.3 - zoom controls */
.httm-reader-stage{overflow:auto!important;overscroll-behavior:contain;justify-content:safe center;align-items:flex-start}
.httm-reader-book{flex:0 0 auto;min-width:0}
.httm-reader-stage.is-zoomed{cursor:grab}
.httm-reader-stage.is-dragging{cursor:grabbing;user-select:none}
.httm-reader-zoom{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;background:#fffdf8;border:1px solid #e8deca;border-radius:16px;padding:12px 16px;margin-top:16px;box-shadow:0 9px 22px rgba(41,49,74,.06)}
.httm-reader-zoom-label{font-size:13px;color:#33446a;font-weight:800;margin-right:auto}
.httm-reader-zoom button{min-height:40px;min-width:42px;border:1px solid #cfd9f4;border-radius:10px;background:#ecf1ff;color:#3156bd;font-weight:850;font-size:20px;cursor:pointer;padding:6px 13px;margin:0;line-height:1.1}
.httm-reader-zoom button:hover{background:#dce7ff}
.httm-reader-zoom button.httm-reader-zoom-reset{font-size:12px;background:#fff;border-color:#d6dded}
.httm-reader-zoom-range{width:clamp(90px,18vw,230px);accent-color:#3b60ca;margin:0!important;cursor:pointer}
.httm-reader-zoom-value{min-width:48px;text-align:center;font-size:14px;font-weight:800;color:#314c9c}
@media(max-width:640px){.httm-reader-zoom{gap:8px;padding:11px}.httm-reader-zoom-label{width:100%;margin:0}.httm-reader-zoom-range{flex:1;width:80px}.httm-reader-zoom button{min-width:38px;padding:5px 10px}}


/* HTTM Books 1.4: full-viewport width for the book READER ONLY. Other pages are unchanged. */
.httm-books.httm-reader{
  position:relative;
  box-sizing:border-box;
  width:100vw!important;
  max-width:none!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
  margin-top:0!important;
  margin-bottom:32px!important;
  padding:14px clamp(12px,2vw,34px) 28px!important;
}
.httm-books.httm-reader .httm-reader-top,
.httm-books.httm-reader .httm-reader-stage,
.httm-books.httm-reader .httm-reader-zoom,
.httm-books.httm-reader .httm-reader-bottom{width:100%;max-width:none}
.httm-books.httm-reader .httm-reader-stage{
  min-height:max(560px,calc(100vh - 260px));
  padding:clamp(12px,2vw,32px);
}
.httm-books.httm-reader .httm-reader-book{width:100%;max-width:1650px;margin-inline:auto}
.httm-books.httm-reader .httm-reader-spread{min-height:max(520px,calc(100vh - 325px))}
.httm-books.httm-reader .httm-reader-surface{min-height:max(480px,calc(100vh - 355px))}
.httm-books.httm-reader .httm-reader-page-inner{padding:clamp(12px,1.4vw,26px)}
@media(max-width:900px){
  .httm-books.httm-reader{padding:8px 10px 24px!important}
  .httm-books.httm-reader .httm-reader-stage{min-height:500px;padding:10px}
  .httm-books.httm-reader .httm-reader-spread{max-width:100%;min-height:460px}
  .httm-books.httm-reader .httm-reader-surface{min-height:440px}
}
@media(max-width:640px){
  .httm-books.httm-reader{padding:6px 7px 20px!important}
  .httm-books.httm-reader .httm-reader-stage{min-height:350px}
  .httm-books.httm-reader .httm-reader-spread{min-height:330px}
  .httm-books.httm-reader .httm-reader-surface{min-height:320px}
}

/* HTTM Books 1.5 — external document sources */
.httm-reader-source-note{border:1px solid #dbe5ff;background:#f3f7ff;padding:13px 17px;border-radius:14px;color:#3d526f;font-size:13px;margin-bottom:14px;line-height:1.65}.httm-reader-source-note a{color:#3159b9;font-weight:800;text-decoration:underline}.httm-reader-external{background:#f2ede3;border:1px solid #e5dccc;border-radius:19px;padding:14px;margin-bottom:15px;text-align:center}.httm-reader-external[hidden],.httm-reader-stage[hidden],.httm-reader-zoom[hidden],.httm-reader-bottom[hidden]{display:none!important}.httm-reader-external-frame{display:block;width:100%;height:min(84vh,1050px);min-height:560px;border:0;background:#fff;border-radius:12px}.httm-reader-embed-tip{font-size:13px;color:#666f7e;margin:12px 0 0}@media(max-width:760px){.httm-reader-external{padding:6px}.httm-reader-external-frame{min-height:450px;height:75vh}.httm-reader-source-note{padding:11px 13px}}
/* HTTM books 1.6 - native document viewer and instructor submissions */
.httm-reader-native{max-width:none;width:100%;padding:0 16px}.httm-reader-native .httm-native-viewer{background:#eff1f6;border-radius:18px;overflow:hidden;border:1px solid #dbe0e9;box-shadow:0 16px 32px #182c4b17}.httm-native-viewer iframe{border:0;width:100%;height:calc(100vh - 185px);min-height:550px;display:block;background:#fff}.httm-reader-native .httm-native-help{padding:15px 20px;color:#54647b;background:#fff;border-radius:12px;margin-top:14px;font-size:14px}.httm-native-help a{font-weight:800;color:#3559bb;margin-left:8px}.httm-native-link{padding:45px 24px;text-align:center;background:#fff;border:1px solid #e6eafa;border-radius:20px}.httm-native-images{text-align:center;background:#ebe6da;padding:18px;border-radius:18px}.httm-native-images>img{display:block;object-fit:contain;width:auto;max-width:100%;height:auto;max-height:78vh;margin:auto;background:#fff;box-shadow:0 12px 24px #14203927}.httm-native-images nav{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;padding:15px 0 0}.httm-native-images button{border:0;background:#395cc3;color:white;padding:10px 17px;border-radius:9px;cursor:pointer}.httm-native-images button:disabled{opacity:.45}.httm-teacher-books{background:white;border:1px solid #e2e6f1;border-radius:22px;padding:28px;max-width:1140px}.httm-teacher-books h2{font-size:25px}.httm-teacher-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;margin:22px 0}.httm-teacher-form-grid label{display:flex;flex-direction:column;gap:7px;font-weight:750;font-size:13px;color:#30415e}.httm-teacher-form-grid input,.httm-teacher-form-grid select,.httm-teacher-form-grid textarea{background:#fff!important;border:1px solid #d7deed!important;border-radius:10px!important;min-height:44px;margin:0!important;padding:10px 12px!important;font-size:14px;max-width:100%;width:100%}.httm-teacher-form-grid .httm-full{grid-column:1/-1}.httm-teacher-confirm{padding:14px;background:#eaf8ee;color:#246c3d;border-radius:10px}.httm-teacher-submissions{display:grid;gap:10px}.httm-teacher-submissions>div{display:flex;justify-content:space-between;padding:14px;border:1px solid #e1e6ef;border-radius:10px;gap:12px}.httm-teacher-submissions span{color:#6a7894;font-size:13px}.httm-reader-native:fullscreen{max-width:none;background:#f0f2f8;padding:12px}.httm-reader-native:fullscreen .httm-native-viewer iframe{height:calc(100vh - 100px)}@media(max-width:680px){.httm-reader-native{padding:0 9px}.httm-native-viewer iframe{height:78vh;min-height:400px}.httm-teacher-form-grid{grid-template-columns:1fr}.httm-teacher-books{padding:18px}}

/* HTTM Books 1.6.1 — reader header aligned to site structure */
.httm-books.httm-reader.httm-reader-native{
  width:100%!important;
  max-width:1200px!important;
  margin:26px auto 46px!important;
  padding:0 20px 24px!important;
}
.httm-books.httm-reader.httm-reader-native .httm-reader-top,
.httm-books.httm-reader.httm-reader-native .httm-native-viewer,
.httm-books.httm-reader.httm-reader-native .httm-native-help,
.httm-books.httm-reader.httm-reader-native .httm-native-link,
.httm-books.httm-reader.httm-reader-native .httm-native-images{width:100%;max-width:100%}

.httm-reader-native .httm-reader-top{
  background:transparent;
  box-shadow:none;
  border:0;
  border-bottom:1px solid #e5e8f1;
  border-radius:0;
  padding:0 0 14px;
  margin:0 0 16px;
  align-items:center;
}
.httm-reader-native .httm-reader-top a{
  color:#4764bd;
  font-weight:800;
  font-size:14px;
}
.httm-reader-native .httm-reader-top strong{
  color:#1f2f4e;
  font-size:clamp(18px,2vw,24px);
  font-weight:800;
  text-align:center;
}
.httm-reader-native .httm-reader-top button{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid #d7deee;
  background:#fff;
  color:#4860b3;
  box-shadow:0 10px 20px rgba(19,34,67,.08);
}
.httm-reader-native .httm-reader-top button:hover{
  background:#f6f8ff;
}

.httm-reader-native .httm-native-viewer{
  background:#f7f8fb;
  border:1px solid #e4e8f0;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(21,37,70,.08);
}
.httm-native-viewer iframe{
  border:0;
  width:100%;
  height:calc(100vh - 230px);
  min-height:640px;
  max-height:1400px;
  display:block;
  background:#fff;
}
.httm-reader-native .httm-native-help{
  margin-top:14px;
  padding:14px 16px;
  background:#fff;
  border:1px solid #e8ecf3;
  border-radius:14px;
  color:#55657d;
  font-size:14px;
}
.httm-reader-native .httm-native-link{
  background:#fff;
  border:1px solid #e7ebf4;
  border-radius:22px;
  box-shadow:0 14px 32px rgba(21,37,70,.06);
}
.httm-reader-native .httm-native-images{
  background:#f3efe6;
  border:1px solid #e4ddcf;
  padding:22px;
  border-radius:22px;
}

@media (max-width: 1024px){
  .httm-books.httm-reader.httm-reader-native{
    padding:0 16px 20px!important;
  }
  .httm-native-viewer iframe{
    height:calc(100vh - 220px);
    min-height:560px;
  }
}
@media (max-width: 760px){
  .httm-books.httm-reader.httm-reader-native{
    margin:18px auto 34px!important;
    padding:0 12px 18px!important;
  }
  .httm-reader-native .httm-reader-top{
    gap:10px;
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .httm-reader-native .httm-reader-top strong{
    order:3;
    width:100%;
    text-align:left;
    font-size:16px;
    line-height:1.45;
  }
  .httm-native-viewer iframe{
    height:78vh;
    min-height:420px;
  }
}

/* 1.6.2 reliable fix: WordPress container-width native reader only */
body .httm-books.httm-reader.httm-reader-native {
  display:block!important; width:calc(100% - 32px)!important; max-width:1180px!important;
  min-width:0!important; box-sizing:border-box!important;
  margin:12px auto 40px!important; padding:0!important;
  overflow:visible!important; transform:none!important; position:relative!important;
}
body .httm-books.httm-reader.httm-reader-native .httm-reader-top {
  display:grid!important; grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(44px,1fr);
  gap:12px; align-items:center; min-height:56px; background:none!important;
  box-shadow:none!important; border-radius:0!important; border:none!important;
  border-bottom:1px solid #dce4f2!important; color:#213753!important;
  margin:0 0 12px!important; padding:4px 0 10px!important;
}
body .httm-books.httm-reader.httm-reader-native .httm-reader-top a {color:#355bc4!important; font-size:13px!important;text-decoration:none!important;}
body .httm-books.httm-reader.httm-reader-native .httm-reader-top strong {color:#223354!important;font-size:clamp(15px,1.7vw,21px)!important;text-align:center!important;line-height:1.35!important;}
body .httm-books.httm-reader.httm-reader-native .httm-reader-fullscreen {justify-self:end!important; background:#f1f5ff!important;color:#355ac0!important;box-shadow:none!important;border:1px solid #dbe5f8!important;}
body .httm-books.httm-reader.httm-reader-native .httm-native-viewer {width:100%!important;max-width:100%!important;box-shadow:none!important;border:1px solid #e3e8f1!important;border-radius:14px!important;}
body .httm-books.httm-reader.httm-reader-native .httm-native-viewer iframe {width:100%!important;max-width:100%!important;display:block!important;height:calc(100dvh - 205px)!important;min-height:480px!important;max-height:none!important;}
@media(max-width:760px){
 body .httm-books.httm-reader.httm-reader-native {width:calc(100% - 20px)!important;margin:10px auto 25px!important;}
 body .httm-books.httm-reader.httm-reader-native .httm-reader-top{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;}
 body .httm-books.httm-reader.httm-reader-native .httm-reader-top strong {grid-row:2;grid-column:1/-1;order:initial!important;text-align:left!important;width:auto!important;}
 body .httm-books.httm-reader.httm-reader-native .httm-native-viewer iframe{height:calc(100dvh - 250px)!important;min-height:400px!important;}
}
body .httm-books.httm-reader.httm-reader-native:fullscreen{width:100vw!important;max-width:none!important;margin:0!important;padding:12px!important;background:#f8fafc!important;}
body .httm-books.httm-reader.httm-reader-native:fullscreen .httm-native-viewer iframe{height:calc(100dvh - 95px)!important;min-height:300px!important;}


/* HTTM Books 1.6.3 - refined fullscreen icon */
body .httm-books .httm-reader-fullscreen{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
}
body .httm-books .httm-icon-fullscreen{
  width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
}
body .httm-books .httm-icon-fullscreen svg{
  width:20px;
  height:20px;
  display:block;
}
body .httm-books.httm-reader.httm-reader-native .httm-reader-fullscreen{
  width:48px!important;
  height:48px!important;
  border-radius:14px!important;
}
body .httm-books.httm-reader.httm-reader-native .httm-reader-fullscreen:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(53,90,192,.12)!important;
}

/* HTTM Books 1.6.4 — courses beneath the book reader */
.httm-book-course-section{max-width:1180px;width:100%;margin:28px auto 12px;display:grid;gap:36px;color:#1e2f4a}
.httm-book-course-section h2{font-size:clamp(21px,2vw,27px)!important;font-weight:800;line-height:1.3;margin:0 0 8px!important;color:#1d2e4c}
.httm-book-course-main>p{color:#728096;font-size:14px;margin:0 0 16px}
.httm-book-course-card{display:flex;min-width:0;overflow:hidden;background:#fff;border:1px solid #e2e7f0;border-radius:18px;box-shadow:0 6px 24px rgba(29,47,86,.06);transition:box-shadow .2s,transform .2s}
.httm-book-course-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(29,47,86,.1)}
.httm-book-course-cover{display:block;flex:0 0 36%;min-width:0;background:#edf3fb;max-height:205px;overflow:hidden}
.httm-book-course-cover img{width:100%;height:100%;object-fit:cover;display:block}
.httm-book-course-noimage{display:grid;place-items:center;min-height:150px;font-size:48px;height:100%}
.httm-book-course-body{padding:20px;display:flex;flex-direction:column;min-width:0;justify-content:center;gap:7px;flex:1}
.httm-book-course-kicker{font-size:11px;color:#6d4fca;font-weight:800;letter-spacing:.075em}
.httm-book-course-body h3{font-size:17px!important;line-height:1.4;margin:0!important;font-weight:800}
.httm-book-course-body h3 a{color:#20324d!important}
.httm-book-course-body p{font-size:13px;color:#778498;line-height:1.5;margin:0}
.httm-book-course-action{display:inline-flex;align-items:center;gap:8px;color:#345dca!important;font-weight:800;font-size:13px;margin-top:6px}
.httm-book-course-main .httm-book-course-card{max-width:850px}
.httm-book-course-related{display:grid;gap:14px}
.httm-book-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.httm-book-course-grid .httm-book-course-card{flex-direction:column}
.httm-book-course-grid .httm-book-course-cover{flex:auto;max-height:none;height:175px}
.httm-book-course-grid .httm-book-course-body{padding:14px 16px 17px}
.httm-book-course-grid .httm-book-course-body h3{font-size:15px!important}
@media(max-width:800px){.httm-book-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.httm-book-course-grid{grid-template-columns:1fr}.httm-book-course-main .httm-book-course-card{flex-direction:column}.httm-book-course-cover{height:190px;flex:auto}.httm-book-course-body{padding:16px}}

/* Books 1.6.5 — software suggestions below the reader */
.httm-book-software-section{margin:30px 0 18px;padding:26px;background:#fff;border:1px solid #e5e9f3;border-radius:22px;box-shadow:0 12px 35px rgba(31,49,88,.05)}
.httm-book-software-heading>span{display:block;color:#6156bb;font-size:11px;font-weight:800;letter-spacing:.12em}
.httm-book-software-heading h2{font-size:clamp(21px,2.5vw,27px);color:#1e2d49;margin:7px 0!important}
.httm-book-software-heading p{color:#728096;font-size:14px;margin:0 0 22px}
.httm-book-software-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.httm-book-software-card{display:flex;gap:14px;align-items:center;min-width:0;padding:19px 17px;background:#f9faff;border:1px solid #e1e7f7;border-radius:17px;color:#22334f!important;text-decoration:none!important;transition:transform .2s,box-shadow .2s,border-color .2s}
.httm-book-software-card:hover{transform:translateY(-2px);border-color:#b7c7ed;box-shadow:0 12px 25px rgba(42,75,155,.09)}
.httm-book-software-symbol{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:13px;background:linear-gradient(135deg,#4473de,#7354c3);color:#fff;font-size:24px}
.httm-book-software-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.httm-book-software-copy small{font-size:10px;color:#71809c;font-weight:700;letter-spacing:.05em}.httm-book-software-copy strong{font-size:15px;line-height:1.45;overflow-wrap:anywhere}.httm-book-software-copy>span{font-size:12px;color:#3a60c5;font-weight:750}
@media(max-width:900px){.httm-book-software-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.httm-book-software-section{padding:18px}.httm-book-software-grid{grid-template-columns:1fr}}

/* Homepage book section: same visual cards as the Library catalog. Scoped to front-page shelf only. */
.httm-home-library{width:100%;max-width:none;margin:30px 0 45px}
.httm-home-library .httm-home-book-search{display:flex;gap:10px;margin:0 0 19px;align-items:stretch}
.httm-home-library .httm-home-book-search input{flex:1;min-width:0;min-height:45px;height:45px;margin:0!important;padding:0 16px!important;border:1px solid #dae3f4!important;border-radius:12px!important;box-shadow:none!important;background:#fff!important;font-size:14px}
.httm-home-library .httm-home-book-search button{border:0;border-radius:12px;background:#395dd2;color:#fff;padding:0 20px;font-weight:750;font-size:13px;cursor:pointer;white-space:nowrap;margin:0}
.httm-home-library .httm-home-book-search button:hover{background:#274bbb}
.httm-home-library .httm-home-books-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.httm-home-library .httm-book-card,.httm-home-library .httm58-teacher-book{display:flex;flex-direction:column;min-width:0;height:100%;border-radius:16px;border:1px solid #e1e7f1;box-shadow:0 5px 18px rgba(24,43,67,.06);overflow:hidden;background:#fff}
.httm-home-library .httm-book-cover{display:flex;align-items:center;justify-content:center;width:100%;height:auto;aspect-ratio:4/4.3;background:linear-gradient(135deg,#edf2ff,#f9ecdf);overflow:hidden;min-height:0}
.httm-home-library .httm-book-cover img{width:100%;height:100%;object-fit:cover;display:block}
.httm-home-library .httm-book-no-cover{min-height:0;height:100%;font-size:44px}
.httm-home-library .httm-book-card-body{padding:13px 14px 16px;display:flex;flex-direction:column;flex:1;align-items:stretch;gap:7px}
.httm-home-library .httm-book-card h3,.httm-home-library .httm58-teacher-book h3{font-size:15px!important;line-height:1.45!important;margin:2px 0 0!important;min-height:44px;max-height:44px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.httm-home-library .httm-book-card p{margin:1px 0 6px;color:#7c8ba4;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.httm-home-library .httm-book-read-link{margin-top:auto;display:flex;justify-content:space-between;align-items:center;color:#3459ca;font-weight:750}
@media(max-width:850px){.httm-home-library .httm-home-books-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:480px){.httm-home-library .httm-book-card-body{padding:11px 11px 13px}.httm-home-library .httm-book-card h3{font-size:13px!important;min-height:38px;max-height:38px}.httm-home-library .httm-book-category{font-size:10px}.httm-home-library .httm-home-book-search button{padding:0 13px}}

/* 2.1.2: the homepage uses the actual Library cards, never a 3-D bookshelf. */
.httm-home-library .httm-home-book-search{display:grid;grid-template-columns:minmax(0,2fr) minmax(130px,1fr) minmax(130px,1fr) auto;gap:10px;padding:11px;border:1px solid #dce5ed;border-radius:14px;background:#fff}
.httm-home-library .httm-home-book-search input,.httm-home-library .httm-home-book-search select{min-width:0;width:100%;height:46px;min-height:46px;border:1px solid #d9e2f0!important;border-radius:11px!important;padding:0 13px!important;color:#243950;background:#fff!important;box-shadow:none!important;margin:0!important}
.httm-home-library .httm-home-book-search button{height:46px;min-height:46px;padding:0 20px;background:#167278;border-radius:11px}
.httm-home-library .httm-home-book-search button:hover{background:#115d62}
.httm-home-library .httm-home-books-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.httm-home-library .httm-book-card{min-width:0;transform:none!important;perspective:none!important;rotate:0deg!important}
.httm-home-library .httm-book-cover{aspect-ratio:4/4.25;max-height:none;min-height:0!important}
.httm-home-library .httm-book-cover img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:980px){.httm-home-library .httm-home-book-search{grid-template-columns:repeat(2,minmax(0,1fr))}.httm-home-library .httm-home-books-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.httm-home-library .httm-home-book-search{grid-template-columns:1fr 1fr;gap:8px;padding:9px}.httm-home-library .httm-home-book-search input{grid-column:1/-1}.httm-home-library .httm-home-book-search button{grid-column:1/-1}.httm-home-library .httm-home-books-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}

/* 2.1.5: The books section shares the actual homepage content frame.
   No independent max-width, centering offset or viewport calculations. */
body.home .httm-home-library,
body.front-page .httm-home-library,
.httm-home-library[data-httm-library-flat-replaced]{
  position:static!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  width:100%!important;
  max-width:none!important;
  min-width:0;
  box-sizing:border-box;
  margin:28px 0 45px!important;
  padding:0!important;
}
.httm-home-library .es-section-heading{
  display:flex;justify-content:space-between;gap:16px;align-items:end;flex-wrap:wrap;
}
.httm-home-library .httm-home-book-search,
.httm-home-library .httm-home-books-grid{
  width:100%;max-width:100%;min-width:0;box-sizing:border-box;
}
@media(max-width:600px){
  body.home .httm-home-library,
  body.front-page .httm-home-library,
  .httm-home-library[data-httm-library-flat-replaced]{
    margin:20px 0 30px!important;
  }
  .httm-home-library .es-section-heading{align-items:start;}
}
