@import url('/assets/card-3d.css');
@font-face{font-family:Ar;src:url(/unit6/assets/arabic.ttf)}*{box-sizing:border-box}body{margin:0;background:#d9e7dc;color:#173e2d;font-family:Ar,Tahoma,sans-serif}main{max-width:1400px;margin:auto;padding:20px}header{display:flex;align-items:center;justify-content:space-between;gap:12px}h1{font-size:clamp(25px,3vw,42px);margin:8px 0}a{text-decoration:none!important;color:inherit}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.card{border-radius:26px;overflow:hidden;background:#34694f;color:white;display:flex;flex-direction:column;box-shadow:0 5px 0 #244b3b}.card img{height:clamp(180px,28vh,340px);width:100%;object-fit:contain;background:white;padding:18px}.copy{padding:16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.card h2{font-size:clamp(20px,2.5vw,30px);margin:0}.cta{border:0;background:#ffe49d;color:#173e2d!important;border-radius:13px;padding:10px 16px;font-size:18px;font-weight:bold;white-space:nowrap}.back{background:white;border-radius:12px;padding:10px 16px;min-height:44px}details{background:#f4f8f3;padding:14px;border-radius:14px;line-height:1.8}summary{cursor:pointer;min-height:32px}footer{font-size:14px;padding:14px}@media(max-width:600px){main{padding:12px}.cards{grid-template-columns:1fr;gap:14px;margin:14px 0}.card img{height:180px}.copy{padding:14px}.cta{font-size:16px}}
body{background:#edf5f4;color:#12394b}.cards{perspective:1400px;gap:28px}.card{overflow:visible;box-shadow:0 7px 0 #244b3b,12px 22px 22px #173c4b25}.card img{border-radius:26px 26px 0 0;box-shadow:none}.card .copy{padding:20px}.card .cta{background:#ffe49d}.cards:has(.card:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:900px){.cards:has(.card:nth-child(3)){grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.cards:has(.card:nth-child(3)){grid-template-columns:1fr}}

/* Consistent visible side and bottom depth on grade unit/review cards. */
.cards{padding:10px 15px 24px 5px;column-gap:36px;row-gap:36px}
.cards>.card{border:2px solid #f8fffc;box-shadow:2px 3px 0 #57816d,5px 6px 0 #47745e,8px 9px 0 #38634d,12px 13px 0 #254d3a,16px 25px 18px #173c4b42;animation:unit-card-depth 6s ease-in-out infinite;transform-origin:center}
@keyframes unit-card-depth{0%,100%{transform:perspective(1300px) rotateY(-6deg) rotateX(3deg) translateY(0)}50%{transform:perspective(1300px) rotateY(-3deg) rotateX(2deg) translateY(-6px)}}
@media(prefers-reduced-motion:reduce){.cards>.card{animation:none!important;transform:none!important}}

@keyframes unit-card-depth{0%,100%{transform:perspective(1300px) rotateY(-4deg) rotateX(0deg) rotateZ(-2deg) translateY(0)}50%{transform:perspective(1300px) rotateY(-3deg) rotateX(0deg) rotateZ(-2deg) translateY(-6px)}}

/* Extra practice retains its links and content, with a navy/gold floating cover. */
.appendix-links,.review-cards>.card{background:linear-gradient(145deg,#182f50,#0b1b35)!important;color:#ffe5a1!important;border:2px solid #fff0bd!important;border-radius:26px!important;box-shadow:2px 3px 0 #d3b66d,5px 6px 0 #9e803e,8px 10px 0 #263e60,12px 16px 0 #142b4b,16px 27px 20px #0b1b354a!important;transform-origin:center;animation:practice-card-float 6s ease-in-out infinite!important;overflow:visible!important}
.appendix-links{max-width:850px!important;margin:40px auto 38px!important;padding:24px!important;width:calc(100% - 42px)}
.appendix-links h2,.review-cards>.card .copy,.review-cards>.card .copy h2,.review-cards>.card .copy p,.review-cards>.card .copy small{color:#ffe5a1!important}
.appendix-links h2{margin:0 0 18px!important;font-size:clamp(23px,4.5vw,30px)!important}
.appendix-links a,.review-cards>.card .cta{display:block!important;text-align:center!important;background:linear-gradient(#ffe9a9,#ffdf84)!important;color:#172e4f!important;border:1px solid #ffe9b3!important;border-bottom:4px solid #b28b3d!important;border-radius:16px!important;padding:14px 12px!important;box-shadow:0 3px 0 #8b6e37,0 7px 10px #0002!important;white-space:normal!important;font-weight:bold!important;text-decoration:none!important;line-height:1.6}
.appendix-links a{margin-top:16px!important}
.appendix-links a:focus-visible,.review-cards>.card:focus-visible{outline:4px solid #f7c24a;outline-offset:5px}
.appendix-links:focus-within,.appendix-links:hover,.review-cards>.card:focus-within{animation-play-state:paused!important}
.review-cards>.card>img{border-radius:24px 24px 0 0!important}
@keyframes practice-card-float{0%,100%{transform:perspective(1300px) rotateY(-3deg) rotateZ(-2deg) translateY(0)}50%{transform:perspective(1300px) rotateY(-2deg) rotateZ(-2deg) translateY(-6px)}}
@media(max-width:600px){.appendix-links{padding:20px 16px!important;margin-top:34px!important}.appendix-links a{font-size:17px!important}}
@media(prefers-reduced-motion:reduce){.appendix-links,.review-cards>.card{animation:none!important;transform:none!important}}

/* Owner choice, 25 Nov 2026: straight unit and lesson cards; retain raised depth. */
html body .cards>.card,html body .unit-card,html body .lesson-card,html body #units-home #units-grid>.unit-card,html body #unit-view.vertical-lessons #lesson-list>.lesson-card,html body .cards>.support-parallel,html body #lesson-list>.support-parallel,html body .appendix-links{transform:none!important;rotate:0deg!important;animation:none!important}
html body .cards>.card:hover,html body .cards>.card:active,html body .unit-card:hover,html body .lesson-card:hover{transform:none!important}

html body #unit-view>.unit-banner,html body main>header:has(h1){transform:none!important;rotate:0deg!important;animation:none!important}
