/* VastuIQ — /vastu-ebooks/ (27 Nov 2026). Uses the site tokens from includes/header.php. */
.ebk{--navy:#1F2E4D;--acc:#E07A1F;--accd:#B85E10;overflow-x:clip;}
.ebk-wrap{max-width:1160px;margin:0 auto;padding:0 20px;}
.ebk-narrow{max-width:820px;}
.ebk-sec{padding:64px 0;}
.ebk-h2{font-family:'Cormorant Garamond',serif;font-size:clamp(1.9rem,4.2vw,2.7rem);line-height:1.12;color:var(--mn);text-align:center;margin-bottom:.6rem;}
.ebk-sub{text-align:center;color:var(--tm);max-width:660px;margin:0 auto 2.2rem;font-size:1.03rem;line-height:1.6;}
.ebk-note{font-size:.88rem;color:var(--tl);margin-top:1rem;line-height:1.6;}
.ebk-note a{color:var(--sf);text-decoration:underline;}

.ebk-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-weight:600;font-size:1rem;border-radius:12px;padding:.85rem 1.3rem;border:0;cursor:pointer;text-align:center;line-height:1.25;transition:transform .15s,box-shadow .2s;}
.ebk-btn-main{background:var(--acc);color:#fff;box-shadow:0 8px 22px rgba(224,122,31,.32);}
.ebk-btn-main:hover{transform:translateY(-2px);}
.ebk-btn-main:disabled{opacity:.6;cursor:default;transform:none;}
.ebk-btn-ghost{background:#fff;color:var(--navy);border:1.5px solid rgba(31,46,77,.22);}
.ebk-btn-ghost:hover{border-color:var(--navy);}
.ebk-btn-sm{font-size:.92rem;padding:.65rem 1rem;border-radius:10px;}
.ebk-link{color:var(--accd);font-weight:600;font-size:.92rem;align-self:center;}
.ebk-btn:focus-visible,.ebk-link:focus-visible,.ebk-opt input:focus-visible+span{outline:3px solid var(--gd2,#E0B04A);outline-offset:3px;}
.ebk-tag{display:inline-block;background:#F3F0EA;color:var(--tm);font-size:.82rem;font-weight:600;padding:.3rem .7rem;border-radius:99px;}

/* hero */
.ebk-hero{background:radial-gradient(1000px 480px at 90% 0%,rgba(224,122,31,.14),transparent 60%),var(--cr);padding:56px 0 60px;}
.ebk-hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:44px;align-items:center;}
.ebk-eyebrow{display:inline-block;background:#fff;border:1px solid rgba(224,122,31,.35);color:var(--accd);font-weight:600;font-size:.86rem;padding:.4rem .8rem;border-radius:99px;margin-bottom:1rem;}
.ebk h1{font-family:'Cormorant Garamond',serif;font-size:clamp(2.3rem,5.4vw,3.6rem);line-height:1.05;color:var(--mn);margin-bottom:1rem;}
.ebk h1 em{font-style:italic;color:var(--sf);}
.ebk-lead{font-size:1.1rem;line-height:1.65;color:var(--tm);max-width:560px;margin-bottom:1.3rem;}
.ebk-prices{display:flex;flex-wrap:wrap;gap:.7rem;list-style:none;padding:0;margin:0 0 1.4rem;}
.ebk-prices li{background:#fff;border-radius:14px;padding:.6rem .9rem;box-shadow:0 6px 18px rgba(74,16,16,.08);display:flex;flex-direction:column;}
.ebk-prices b{font-size:1.35rem;color:var(--navy);line-height:1.1;}
.ebk-prices span{font-size:.82rem;color:var(--tl);}
.ebk-cta-row{display:flex;flex-wrap:wrap;gap:.7rem;}
.ebk-hero-art{position:relative;height:360px;}
.ebk-stack{position:absolute;width:230px;border-radius:6px;overflow:hidden;box-shadow:0 18px 40px rgba(31,46,77,.28);}
.ebk-stack img{display:block;width:100%;height:auto;}
.ebk-stack-1{left:50%;top:0;transform:translateX(-50%) rotate(-2deg);z-index:3;}
.ebk-stack-2{left:6%;top:30px;transform:rotate(-9deg);z-index:2;}
.ebk-stack-3{right:6%;top:30px;transform:rotate(8deg);z-index:1;}

/* CSS cover for books without a cover image */
.ebk-cover{aspect-ratio:240/341;background:var(--a,#E07A1F);color:#fff;display:flex;flex-direction:column;justify-content:flex-start;padding:16% 12%;position:relative;font-family:inherit;}
.ebk-cover::after{content:"";position:absolute;left:0;right:0;bottom:0;height:22%;background:var(--navy,#1F2E4D);}
.ebk-cover small{font-size:.62rem;letter-spacing:.14em;font-weight:700;opacity:.9;}
.ebk-cover b{font-size:1.55rem;line-height:1.05;margin-top:.6rem;}

/* book grid */
.ebk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr));gap:22px;}
.ebk-card{display:grid;grid-template-columns:120px minmax(0,1fr);min-width:0;gap:16px;background:#fff;border-radius:18px;padding:16px;box-shadow:0 8px 26px rgba(74,16,16,.08);border-top:4px solid var(--a);scroll-margin-top:90px;}
.ebk-card-cover img,.ebk-card-cover .ebk-cover{width:120px;height:auto;border-radius:4px;box-shadow:0 6px 16px rgba(0,0,0,.18);}
.ebk-card-cover img{display:block;}
.ebk-card-cover .ebk-cover b{font-size:1.05rem;}
.ebk-card-cover .ebk-cover small{font-size:.48rem;}
.ebk-no{font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--a);margin:0 0 .2rem;}
.ebk-card h3{font-size:1.12rem;color:var(--navy);line-height:1.25;margin:0 0 .35rem;}
.ebk-for{font-size:.93rem;color:var(--tm);line-height:1.45;margin:0 0 .5rem;}
.ebk-points{margin:0 0 .6rem;padding-left:1.1rem;font-size:.88rem;color:var(--tm);line-height:1.5;}
.ebk-meta{font-size:.84rem;color:var(--tl);margin:0 0 .7rem;}
.ebk-card-btns{display:flex;flex-wrap:wrap;gap:.5rem;}
.ebk-soon{opacity:.92;}
.ebk-soon .ebk-card-cover{filter:saturate(.8);}
.ebk-bundle{margin-top:28px;background:var(--navy);color:#fff;border-radius:18px;padding:22px 24px;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;}
.ebk-bundle h3{font-size:1.3rem;margin:0 0 .3rem;color:#fff;}
.ebk-bundle p{margin:0;color:#D9DEE8;font-size:.95rem;}
.ebk-bundle .ebk-tag{background:rgba(255,255,255,.14);color:#fff;}

/* inside */
.ebk-inside{background:#FBF7F1;}
.ebk-pages{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.ebk-pages figure{margin:0;text-align:center;}
.ebk-pages img{width:100%;height:auto;border-radius:6px;box-shadow:0 10px 26px rgba(31,46,77,.16);background:#fff;}
.ebk-pages figcaption{font-size:.88rem;color:var(--tm);margin-top:.6rem;}

/* why */
.ebk-why-grid{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.ebk-why-grid li{background:#fff;border-radius:16px;padding:18px;box-shadow:0 6px 20px rgba(74,16,16,.06);font-size:.95rem;color:var(--tm);line-height:1.55;}
.ebk-why-grid b{display:block;color:var(--navy);font-size:1.02rem;margin-bottom:.3rem;}

/* faq */
.ebk-faq{background:#fff;border-radius:14px;margin-bottom:10px;box-shadow:0 4px 14px rgba(74,16,16,.05);}
.ebk-faq summary{cursor:pointer;padding:16px 18px;font-weight:600;color:var(--navy);list-style:none;}
.ebk-faq summary::-webkit-details-marker{display:none;}
.ebk-faq summary::after{content:"+";float:right;color:var(--acc);font-size:1.2rem;line-height:1;}
.ebk-faq[open] summary::after{content:"–";}
.ebk-faq p{padding:0 18px 16px;margin:0;color:var(--tm);line-height:1.6;}

/* buy sheet */
.ebk-sheet{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;}
.ebk-sheet[hidden]{display:none;}
.ebk-sheet-bg{position:absolute;inset:0;background:rgba(20,24,36,.55);}
.ebk-sheet-box{position:relative;background:#fff;border-radius:20px;width:min(520px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;padding:22px 22px 18px;box-shadow:0 30px 80px rgba(0,0,0,.35);}
.ebk-x{position:absolute;right:10px;top:8px;background:none;border:0;font-size:1.8rem;line-height:1;color:var(--tl);cursor:pointer;padding:6px 10px;}
.ebk-sheet-h{font-size:1.3rem;color:var(--navy);margin:0 0 14px;}
.ebk-fs{border:0;padding:0;margin:0 0 14px;}
.ebk-fs legend{font-weight:700;color:var(--navy);font-size:.95rem;margin-bottom:6px;}
.ebk-fs legend small{font-weight:400;color:var(--tl);}
.ebk-opts{display:flex;flex-wrap:wrap;gap:8px;}
.ebk-opt{position:relative;cursor:pointer;}
.ebk-opt input{position:absolute;opacity:0;}
.ebk-opt>span{display:inline-block;border:1.5px solid #E3DACD;border-radius:10px;padding:.5rem .75rem;font-size:.93rem;color:var(--td);background:#fff;}
.ebk-opt>span small{color:var(--tl);}
.ebk-opt input:checked+span{border-color:var(--acc);background:#FFF3E6;color:var(--accd);font-weight:600;}
.ebk-opt.ebk-off{cursor:not-allowed;opacity:.5;}
.ebk-form{display:grid;gap:10px;margin:6px 0 12px;}
.ebk-form label{display:flex;flex-direction:column;font-size:.88rem;color:var(--tm);gap:4px;}
.ebk-form input:not([type=checkbox]){border:1.5px solid #E3DACD;border-radius:10px;padding:.7rem .8rem;font-size:1rem;}
.ebk-form input:focus{outline:none;border-color:var(--acc);}
.ebk-form .ebk-check{flex-direction:row;align-items:flex-start;gap:8px;line-height:1.45;}
.ebk-check input{margin-top:3px;width:18px;height:18px;flex:none;}
.ebk-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #EFE7DD;padding-top:12px;margin-bottom:10px;font-size:1rem;color:var(--tm);}
.ebk-total b{font-size:1.5rem;color:var(--navy);}
.ebk-err{background:#FDECEC;color:#A33F3A;border-radius:10px;padding:.6rem .8rem;font-size:.9rem;line-height:1.5;margin:0 0 10px;}
.ebk-pay{width:100%;}
.ebk-secure{text-align:center;font-size:.8rem;color:var(--tl);margin:.6rem 0 0;}
.ebk-dl{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px;}
.ebk-dl .ebk-btn{width:100%;justify-content:flex-start;}

@media (max-width:900px){
  .ebk-hero-grid{grid-template-columns:1fr;}
  .ebk-hero-art{height:300px;}
  .ebk-stack{width:180px;}
  .ebk-pages{grid-template-columns:repeat(2,1fr);}
  .ebk-why-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:560px){
  .ebk-sec{padding:48px 0;}
  .ebk-grid{grid-template-columns:1fr;}
  .ebk-card{grid-template-columns:84px minmax(0,1fr);gap:12px;padding:14px;}
  .ebk-card-cover img,.ebk-card-cover .ebk-cover{width:84px;}
  .ebk-why-grid{grid-template-columns:1fr;}
  .ebk-hero-art{height:250px;}
  .ebk-stack{width:150px;}
  .ebk-sheet{align-items:flex-end;}
  .ebk-sheet-box{border-radius:20px 20px 0 0;width:100vw;max-height:92vh;}
}
.ebk-author a{color:var(--navy);font-weight:600;text-decoration:underline;text-underline-offset:2px;}
.ebk-notify{width:100%;}
.ebk-notify-l{display:block;font-size:.88rem;font-weight:600;color:var(--navy);margin:0 0 .35rem;}
.ebk-notify-row{display:flex;gap:.4rem;}
.ebk-notify-row input[type=email]{flex:1;min-width:0;border:1.5px solid rgba(31,46,77,.22);border-radius:10px;padding:.55rem .7rem;font:inherit;font-size:.92rem;}
.ebk-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0;}
.ebk-notify-msg{font-size:.85rem;color:#2E7D4F;margin:.4rem 0 0;line-height:1.45;}
.ebk-notify-msg.bad{color:#A33F3A;}
/* one page per book (29 Nov 2026) */
.ebk-crumbs{font-size:.86rem;color:var(--tl);margin:0 0 1.2rem;}
.ebk-crumbs a{color:var(--tm);text-decoration:underline;text-underline-offset:2px;}
.ebk-bp-hero{display:grid;grid-template-columns:240px 1fr;gap:40px;align-items:start;}
.ebk-bp-cover img,.ebk-bp-cover .ebk-cover{width:240px;height:auto;display:block;border-radius:6px;box-shadow:0 14px 34px rgba(0,0,0,.22);}
.ebk-bp h1{font-family:'Cormorant Garamond',serif;font-size:clamp(2rem,4.6vw,3rem);line-height:1.08;color:var(--mn);margin:.4rem 0 .4rem;}
.ebk-bp-sub{font-size:1.08rem;color:var(--navy);font-weight:600;margin:0 0 .8rem;}
.ebk-bp-facts{display:flex;flex-wrap:wrap;gap:.45rem;list-style:none;padding:0;margin:0 0 1.2rem;}
.ebk-bp-facts li{background:#fff;border-radius:999px;padding:.35rem .8rem;font-size:.88rem;color:var(--tm);box-shadow:0 3px 10px rgba(74,16,16,.06);}
.ebk-bp-facts a{color:var(--navy);text-decoration:underline;}
.ebk-bp-alt{background:var(--cr);}
.ebk-bp-table{overflow-x:auto;background:#fff;border-radius:14px;box-shadow:0 6px 20px rgba(74,16,16,.06);}
.ebk-bp-table table{width:100%;border-collapse:collapse;font-size:.94rem;min-width:520px;}
.ebk-bp-table th{background:var(--navy);color:#fff;text-align:left;padding:.7rem .9rem;font-weight:600;}
.ebk-bp-table td{padding:.65rem .9rem;border-top:1px solid #EFE7DA;color:var(--tm);vertical-align:top;}
.ebk-bp-table td:first-child{color:var(--td);font-weight:600;}
.ebk-bp-part{font-size:1.08rem;color:var(--navy);margin:1.6rem 0 .5rem;}
.ebk-bp-ch{margin:0 0 0 1.3rem;padding:0;color:var(--tm);line-height:1.7;}
.ebk-bp-pack{margin-top:1.4rem;background:#fff;border-left:4px solid var(--acc);border-radius:10px;padding:.8rem 1rem;color:var(--tm);}
.ebk-bp-tools{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.ebk-bp-tools a{display:block;background:#fff;border-radius:14px;padding:16px;box-shadow:0 6px 20px rgba(74,16,16,.06);color:var(--tm);text-decoration:none;height:100%;}
.ebk-bp-tools b{display:block;color:var(--navy);margin-bottom:.25rem;}
.ebk-bp-tools a:hover{box-shadow:0 8px 24px rgba(74,16,16,.12);}
.ebk-bp-series{list-style:none;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:12px;}
.ebk-bp-series a{display:block;background:var(--a);color:#fff;border-radius:12px;padding:14px;text-decoration:none;min-height:86px;}
.ebk-bp-series small{display:block;opacity:.85;font-size:.75rem;letter-spacing:.06em;}
.ebk-bp-series b{font-size:1rem;line-height:1.2;}
.ebk-card-more{font-size:.88rem;color:var(--navy);text-decoration:underline;text-underline-offset:2px;}
@media (max-width:860px){
  .ebk-bp-hero{grid-template-columns:1fr;gap:22px;}
  .ebk-bp-cover img,.ebk-bp-cover .ebk-cover{width:170px;margin:0 auto;}
  .ebk-bp-tools{grid-template-columns:1fr;}
  .ebk-bp-series{grid-template-columns:1fr 1fr;}
}
.ebk-card h3 a{color:inherit;text-decoration:none;}.ebk-card h3 a:hover{text-decoration:underline;}
/* cards: never wider than the screen (29 Nov 2026) */
.ebk-card-body{min-width:0;}
.ebk-card h3,.ebk-for,.ebk-points,.ebk-meta{overflow-wrap:anywhere;}
.ebk-card-btns>*{max-width:100%;}
@media (max-width:420px){
  .ebk-notify-row{flex-wrap:wrap;}
  .ebk-notify-row input[type=email]{flex:1 1 100%;}
  .ebk-notify-row button{flex:1 1 100%;}
}
@media (max-width:560px){.ebk-card-cover .ebk-cover b{font-size:.82rem;}.ebk-card-cover .ebk-cover small{font-size:.42rem;}}
.ebk-card-body{container-type:inline-size;}
@container (max-width:320px){
  .ebk-notify-row{flex-wrap:wrap;}
  .ebk-notify-row input[type=email]{flex:1 1 100%;}
  .ebk-notify-row button{flex:1 1 100%;}
}
@media (min-width:561px) and (max-width:900px){.ebk-grid{grid-template-columns:1fr;}}
