/* 1.25 — the supplied book identity, measured containers and original artwork.
   The reader's protected page images and its dimensions are intentionally untouched. */
@font-face{font-family:EmpCairo;src:url('fonts/Cairo.woff2') format('woff2'),url('fonts/Cairo.ttf') format('truetype');font-weight:200 1000;font-style:normal;font-display:swap}
@font-face{font-family:EmpTajawal;src:url('fonts/Tajawal-Regular.woff2') format('woff2'),url('fonts/Tajawal-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
:root{--emp-navy:#102a6b;--emp-teal:#0e6f78;--emp-gold:#d08a1f;--emp-surface:#f9fbfc;--emp-line:#dbe8ea;--emp-text:#2e3a45;--sans:EmpTajawal,QiraahArabic,Tahoma,Arial,sans-serif}
.qiraah-reference{background:var(--emp-surface);color:var(--emp-text)}
.qiraah-reference .container{width:min(1200px,calc(100% - 64px));max-width:1200px}
.qiraah-reference :is(.emp-home,.single-book-page,.consultations-page,.page-main){font-family:var(--sans)}
.qiraah-reference :is(h1,h2,h3){font-family:EmpCairo,QiraahArabic,Tahoma,sans-serif;letter-spacing:0;font-weight:750}
.emp-home :is(h1,h2,h3),.single-book-page :is(h1,h2,h3){color:var(--emp-navy)}
.emp-home p,.single-book-page p{color:var(--emp-text)}
.emp-home .emp-stars{color:var(--emp-gold)}
.emp-home .emp-section-title{font-size:clamp(24px,2.5vw,36px);margin-bottom:24px}
.emp-home .emp-section-title:before,.emp-home .emp-section-title:after{background:linear-gradient(90deg,transparent,var(--emp-teal))}
.qiraah-reference .button{border-radius:100px}
.emp-home .button,.single-book-page .button{background:var(--emp-teal);color:#fff;box-shadow:0 6px 14px #0e6f7812}
.emp-home .button--outline,.single-book-page .button--outline{background:#fff;color:var(--emp-teal);border-color:var(--emp-teal)}

/* Shared section rhythm prevents nested page gutters from shrinking the book. */
.qiraah-reference.qiraah-wide-book .page-main{width:100%;max-width:none;padding:0}
.qiraah-wide-book .page-content{padding:0;margin:0;background:transparent;border:0;box-shadow:none}
.emp-home > .container{padding-block:44px;margin-block:0}
.emp-home .emp-about{padding-top:48px;padding-bottom:26px}
.emp-home .emp-author{padding-block:32px 48px}
.emp-home .emp-products{padding-top:20px}
.emp-author-layout{max-width:1050px;gap:32px;align-items:center}
.emp-author-portrait{width:136px;flex-shrink:0;box-shadow:0 8px 25px #102a6b0d;background:#fff}
.emp-author-layout p{font-size:17px;line-height:1.95}
.emp-author-layout h3{font-size:24px;margin-bottom:12px}

/* A single high-resolution illustration replaces the two small reference crops.
   Native image dimensions reserve space; the entire scene remains visible on phones. */
.emp-hero{height:auto;aspect-ratio:2.6;min-height:0;max-height:none;background:#f4f9fb}
.emp-hero-art{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:contain;object-position:center}
.emp-hero-copy{width:48%;right:18%;top:5%;background:radial-gradient(ellipse,#ffffffec,#ffffffb0 58%,transparent 80%)}
.emp-hero-logo{height:clamp(40px,9vw,125px);object-fit:contain}
.emp-hero h1{font-size:clamp(22px,3.8vw,54px);color:var(--emp-teal);line-height:1.35}
.emp-tagline{font-size:clamp(14px,2.35vw,34px);color:var(--emp-navy);margin-bottom:20px}
.emp-hero-copy > p:last-child{font-size:clamp(11px,1.2vw,17px);color:var(--emp-text)}
.emp-hero li{font-size:clamp(10px,1.1vw,15px);color:var(--emp-teal)}
.emp-hero li svg{color:var(--emp-teal)}
.emp-product-grid{align-items:stretch;gap:24px;grid-auto-rows:1fr}
.emp-product-grid article{display:flex;flex-direction:column;border:1px solid var(--emp-line);box-shadow:0 5px 20px #102a6b05;padding:12px;background:#fff}
.emp-product-grid article > div{display:flex;flex:1;flex-direction:column;align-items:center;padding:18px 10px 8px}
.emp-product-grid p{min-height:0;flex:1;font-size:16px;line-height:1.8}
.emp-product-grid h3{font-size:24px;min-height:3.4em;line-height:1.7}
.emp-card-image{height:auto;aspect-ratio:2;overflow:hidden;border-radius:14px}
.emp-home .emp-product-grid .emp-card-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.emp-book-campaign a{display:block;border:1px solid var(--emp-line);border-radius:22px;overflow:hidden;background:#eff6f8;box-shadow:0 8px 28px #102a6b07}
.emp-book-campaign img{display:block;width:100%;height:auto;aspect-ratio:1280/426;object-fit:contain}
.emp-home > .emp-book-campaign{padding-block:12px 40px}
.emp-facts{background:#edf6f8;border:1px solid var(--emp-line);border-radius:20px}
.emp-home > .emp-facts{padding:24px;margin-block:0 35px}
.emp-review-grid{gap:24px;align-items:stretch}
.emp-review-grid figure{padding:24px;display:flex;flex-direction:column;border-color:var(--emp-line)}
.emp-review-grid blockquote{flex:1;font-size:16px;line-height:1.9}

/* Exact front/back image: no synthetic back cover or distorted perspective. */
.single-book-page{background:#fff}
.single-book-hero{background:linear-gradient(110deg,#edf5f7,#fff 55%,#edf5f7)}
.single-book-hero-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:50px;min-height:0;padding-block:48px}
.single-book-copy h1{font-size:clamp(28px,3.2vw,46px);line-height:1.5;margin:8px 0 12px}
.single-book-subtitle{font-size:clamp(22px,2.2vw,32px);color:var(--emp-teal)!important}
.single-book-copy > p:not(.single-book-subtitle){font-size:17px;line-height:1.8}
.single-book-pillars{gap:16px;margin-block:24px}
.single-book-pillars svg,.single-book-facts svg,.single-book-cards svg{color:var(--emp-teal)}
.single-book-actions{gap:12px;align-items:stretch}
.single-book-actions .button{min-width:170px;display:inline-flex;align-items:center;justify-content:center}
.single-book-page .single-book-mockup--original{width:100%;max-width:560px;height:auto;aspect-ratio:1280/1119;margin:0 auto;perspective:none;overflow:hidden;border-radius:20px;background:#edf4f6;border:1px solid var(--emp-line);box-shadow:0 18px 40px #102a6b0b}
.single-book-page .single-book-mockup--original > img{position:static;display:block;width:100%;height:auto;max-height:none;object-fit:contain;transform:none;filter:none;border-radius:0}
.single-book-info{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:48px;padding-block:48px}
.single-book-page .single-book-secondary-art{display:flex;flex-direction:column;gap:22px;align-items:center}
.single-book-secondary-art .single-book-mockup--original{max-width:330px}
.single-book-facts{gap:14px;margin-block:4px 28px}
.single-book-facts > div{min-height:128px;border-color:var(--emp-line);background:var(--emp-surface)}
.single-book-facts strong{max-width:100%;font-size:16px}
.single-book-info-copy p{font-size:17px;line-height:1.95}
.single-book-preview{padding:26px 32px!important;margin-block:0 30px;gap:24px;border:1px solid var(--emp-line);background:#edf6f8}
.single-book-section{padding-block:40px}
.single-book-page h2{font-size:clamp(25px,2.4vw,34px);line-height:1.6}
.single-book-page h2:after{width:46px;background:var(--emp-teal)}
.single-book-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:24px;align-items:stretch}
.single-book-cards article{padding:26px 20px;border-color:var(--emp-line);background:linear-gradient(145deg,#fff,#f0f6f8);border-radius:18px;box-shadow:0 5px 20px #102a6b04}
.single-book-cards h3{font-size:18px;line-height:1.8;min-height:3.6em}
.single-book-cards p{font-size:16px;line-height:1.8}
.book-audience-scene{width:min(780px,100%);margin:26px auto 12px;border-radius:24px;overflow:hidden;aspect-ratio:1659/948;background:#edf6f8}
.book-audience-scene img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.single-book-learning{padding-block:44px;background:linear-gradient(135deg,#edf6f8,#f9fbfc)}
.single-book-learning ol{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:28px}
.single-book-learning li{padding:26px 24px;border:1px solid var(--emp-line);border-radius:18px;background:#ffffffde;box-shadow:0 5px 20px #102a6b04}
.single-book-learning li:after{display:none}
.single-book-step{width:72px;height:72px;border-color:#bfd9de;background:#edf6f8;margin:0 auto 18px}
.single-book-step b{background:var(--emp-teal)}
.single-book-step svg{color:var(--emp-teal)}
.single-book-learning h3{font-size:20px;line-height:1.7;margin-bottom:10px}
.single-book-learning li p{font-size:16px;line-height:1.85;margin-bottom:0}
.single-book-closing{padding-block:36px;background:#edf6f8}
.single-book-closing .container{display:flex;flex-direction:column;align-items:center;gap:16px}
.single-book-closing h2{margin:0;font-size:26px}
.single-book-closing h2:after{display:none}
.author-footer :is(h2,h3){color:#fff}

@media(max-width:1000px){
 .qiraah-reference .container{width:calc(100% - 48px)}
 .single-book-hero-grid{gap:30px;padding-block:36px}
 .single-book-info{gap:28px}
 .single-book-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .emp-product-grid h3{font-size:20px}
 .emp-product-grid p{font-size:15px}
}
@media(max-width:760px){
 .qiraah-reference .container{width:calc(100% - 32px)}
 .emp-home > .container{padding-block:30px}
 .emp-hero{aspect-ratio:2.25;min-height:170px}
 .emp-hero-art{object-fit:contain;background:#edf5f7}
 .emp-hero-copy{right:17%;width:55%;top:6%;padding:0}
 .emp-hero-logo{height:clamp(34px,9vw,65px);max-width:30%}
 .emp-hero h1{font-size:clamp(17px,4.1vw,30px)}
 .emp-tagline{font-size:clamp(11px,2.7vw,19px);margin-bottom:8px}
 .emp-hero li{font-size:clamp(8px,1.85vw,12px);padding-inline:3px}
 .emp-hero-copy > p:last-child{font-size:clamp(9px,2vw,13px);margin-top:6px;line-height:1.6}
 .emp-author-layout{grid-template-columns:110px minmax(0,1fr);gap:22px;align-items:start;text-align:right}
 .emp-author-portrait{width:104px}
 .emp-author-layout h3{font-size:21px}
 .emp-author-layout p,.emp-about > p{font-size:16px;line-height:1.9}
 .emp-home .emp-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
 .emp-product-grid article{padding:8px}
 .emp-product-grid article > div{padding:12px 2px 4px}
 .emp-product-grid h3{font-size:16px;line-height:1.7}
 .emp-product-grid p{font-size:13px;line-height:1.85}
 .emp-product-grid .button{font-size:12px;padding:8px;min-height:44px;min-width:0}
 .emp-home > .emp-book-campaign{padding-block:8px 26px}
 .emp-book-campaign a{border-radius:12px}
 .emp-home > .emp-facts{padding:18px;margin-bottom:20px}
 .emp-review-grid figure{padding:22px}
 .single-book-hero-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px;padding-block:26px;align-items:center}
 .single-book-copy h1{font-size:clamp(20px,4.3vw,30px);line-height:1.5}
 .single-book-subtitle{font-size:clamp(16px,3vw,23px)}
 .single-book-copy > p:not(.single-book-subtitle){font-size:14px;line-height:1.8}
 .single-book-kicker{font-size:13px}
 .single-book-pillars{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-block:17px}
 .single-book-pillars span{font-size:12px;line-height:1.5}
 .single-book-actions .button,.single-book-actions .actions,.single-book-actions .qiraah-buy-form{min-width:0;width:100%}
 .single-book-page .button{font-size:14px;padding:10px 12px;min-height:44px}
 .single-book-page .single-book-mockup--original{border-radius:12px}
 .single-book-info{grid-template-columns:minmax(0,1fr);gap:26px;padding-block:32px}
 .single-book-secondary-art{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:18px}
 .single-book-secondary-art .single-book-mockup--original{max-width:260px}
 .single-book-info-copy p{font-size:16px}
 .single-book-facts{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
 .single-book-facts > div{padding:13px 7px;min-height:118px}
 .single-book-facts strong{font-size:13px;line-height:1.8}
 .single-book-preview{grid-template-columns:48px minmax(0,1fr);padding:20px!important;gap:14px;margin-bottom:12px}
 .single-book-preview h2{font-size:24px}
 .single-book-preview p{font-size:15px}
 .single-book-preview .button{grid-column:1/-1}
 .single-book-section{padding-block:30px}
 .single-book-page h2{font-size:25px}
 .single-book-cards{gap:14px;margin-top:20px}
 .single-book-cards article{padding:22px 16px}
 .single-book-cards h3{font-size:18px;min-height:0}
 .single-book-cards p{font-size:15px;line-height:1.85}
 .book-audience-scene{aspect-ratio:1.7;margin-top:22px;border-radius:16px}
 .single-book-learning{padding-block:32px}
 .single-book-learning ol{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:24px}
 .single-book-learning li{padding:22px 16px}
 .single-book-learning h3{font-size:18px;line-height:1.75}
 .single-book-learning li p{font-size:15px;line-height:1.85}
 .single-book-step{width:62px;height:62px;margin-bottom:16px}
 .single-book-closing h2{font-size:23px;text-align:center}
}
@media(max-width:420px){
 .qiraah-reference .container{width:calc(100% - 28px)}
 .emp-home .emp-product-grid{grid-template-columns:1fr;gap:16px}
 .emp-home .emp-product-grid article{display:flex;flex-direction:column;padding:12px;gap:0}
 .emp-home .emp-product-grid .emp-card-image{display:block;flex:none;width:100%;min-width:0;aspect-ratio:2;height:auto;min-height:0;align-self:stretch;padding:0}
 .emp-home .emp-product-grid article > div{display:flex;flex:1;align-items:stretch;text-align:center;padding:18px 8px 6px}
 .emp-home .emp-product-grid h3{display:flex;justify-content:center;gap:8px;align-items:center;font-size:22px;min-height:3.4em}
 .emp-home .emp-product-grid h3 svg{display:inline-block;margin:0}
 .emp-home .emp-product-grid p{font-size:16px;flex:1}
 .emp-home .emp-product-grid .button{font-size:15px;width:100%;margin-top:auto}
 .emp-author-layout{grid-template-columns:92px minmax(0,1fr);gap:18px}
 .emp-author-portrait{width:88px}
 .emp-author-layout h3{font-size:19px}
 .emp-author-layout p{font-size:15px}
 .single-book-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .single-book-learning li,.single-book-cards article{padding:19px 12px}
 .single-book-learning h3,.single-book-cards h3{font-size:17px}
 .single-book-learning li p,.single-book-cards p{font-size:15px}
}

/* Align actual inner content across each card row; no clipping or text truncation. */
.single-book-secondary-actions{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-width:0;width:100%}
.single-book-cards article,.single-book-learning li{display:flex;flex-direction:column;align-items:center}
.single-book-cards h3,.single-book-learning h3{min-height:3.6em}
.single-book-cards p,.single-book-learning li p{flex:1;width:100%}
.single-book-cards svg,.single-book-step{flex-shrink:0}
@supports(grid-template-rows:subgrid){
 .single-book-cards,.single-book-learning ol{grid-auto-rows:auto}
 .single-book-cards article,.single-book-learning li{display:grid;grid-template-rows:subgrid;grid-row:span 3;justify-items:center;align-items:start;row-gap:12px}
 .single-book-cards h3,.single-book-learning h3{min-height:0;margin-bottom:0;width:100%}
 .single-book-cards p,.single-book-learning li p{margin-bottom:0}
 .single-book-cards svg,.single-book-step{margin-bottom:0}
}
@media(max-width:760px){
 .emp-home .emp-section-title{font-size:22px;gap:9px}
 .emp-home .emp-section-title:before,.emp-home .emp-section-title:after{width:20px;max-width:20px;flex-shrink:0}
 .emp-home .emp-product-grid .emp-card-image{min-width:0;width:100%;padding:0;flex:none}
 .single-book-secondary-actions .button{width:100%;white-space:normal}
}

/* 1.26: readable mobile storefront. Keep the desktop grid, stack the phone hero.
   display:contents keeps the existing semantic text/order and purchase forms intact. */
@media(max-width:760px){
 .single-book-page .single-book-hero-grid{display:flex;flex-direction:column;align-items:stretch;gap:14px;padding-block:28px 32px}
 .single-book-page .single-book-copy{display:contents}
 .single-book-hero-grid > .single-book-copy > *{max-width:100%;text-align:center;margin-inline:0}
 .single-book-hero-grid .single-book-kicker{order:1;margin-bottom:0}
 .single-book-hero-grid .single-book-copy h1{order:2;font-size:clamp(26px,6.6vw,36px);line-height:1.55;margin-block:0}
 .single-book-hero-grid .single-book-subtitle{order:3;margin-block:0!important;font-size:23px}
 .single-book-hero-grid .single-book-copy > p:not(.single-book-subtitle){order:4;font-size:17px;line-height:1.85;margin-block:0}
 .single-book-page .single-book-hero-art{order:5;width:min(100%,430px);max-width:430px;margin:4px auto 8px;flex:none;align-self:center}
 .single-book-hero-grid .single-book-pillars{order:6;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-block:4px 8px}
 .single-book-hero-grid .single-book-pillars > div{min-width:0;padding:12px 8px;background:#ffffffa8;border:1px solid var(--emp-line);border-radius:14px}
 .single-book-hero-grid .single-book-pillars span{font-size:15px;line-height:1.7}
 .single-book-hero-grid .single-book-actions{order:7;display:flex;flex-direction:column;align-items:stretch;gap:14px;margin:0;width:100%}
 .single-book-hero-grid .single-book-actions > *{width:100%;max-width:100%;min-width:0;box-sizing:border-box;text-align:center;margin:0}
 .single-book-hero-grid .single-book-actions .button{font-size:16px;line-height:1.7;min-height:52px;padding:13px 18px;white-space:normal;border-radius:16px}
 .single-book-hero-grid .single-book-copy > p.single-book-price{order:8;font-size:16px;margin-top:6px}
 .single-book-hero-grid .single-book-price small{display:block;font-size:14px}
 .single-book-page .single-book-info{padding-block:30px}
 .single-book-page .single-book-secondary-art{gap:20px}
 .single-book-page .single-book-secondary-art .single-book-mockup--original{max-width:360px}
}
/* Eye buttons are distinct keyboard-accessible controls; existing Woo buttons stay native. */
.q-password-field{display:block;position:relative;width:100%;min-width:0;margin-top:6px}
.q-password-field input{width:100%;padding-inline-end:56px!important;margin-block:0!important;box-sizing:border-box;min-height:52px}
.q-password-field .q-password-toggle{position:absolute;inset-inline-end:5px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:9px;margin:0;border:0;border-radius:10px;background:transparent;color:#0e6f78;box-shadow:none;line-height:1;cursor:pointer}
.q-password-toggle:hover{background:#eaf4f5}
.q-password-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.q-password-toggle .q-password-slash{display:none}
.q-password-toggle[aria-pressed="true"] .q-password-slash{display:block}
.q-password-toggle:focus-visible{outline:3px solid #d08a1f;outline-offset:1px}
.q-password-field input::-ms-reveal{display:none}

.single-book-page .single-book-info{grid-template-columns:minmax(0,1fr)}

.emp-home .emp-product-grid .emp-card-image svg{display:block;width:100%;height:100%}

.single-book-hero-grid .single-book-purchase {
    order: 7;
    width: 100%;
    padding: clamp(14px, 2vw, 22px);
    border: 1px solid #cfe2e1;
    border-radius: 18px;
    background: #f0f8f7;
}
.single-book-purchase .single-book-price { margin: 0 0 12px; }
.single-book-purchase .single-book-actions { margin: 0; }
