/* Stage 8 celestial editorial and tools — fully scoped, responsive, RTL. */
.psd-article .psd-s8-banner{position:relative;overflow:hidden;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.18fr) minmax(220px,.82fr);align-items:center;gap:22px;border:1px solid rgba(245,201,123,.7);border-radius:27px;padding:35px;background:radial-gradient(ellipse at 25% 10%,rgba(141,86,205,.28),transparent 48%),linear-gradient(125deg,#0b163f,#151044 62%,#20164e);color:#fff;box-shadow:0 12px 40px rgba(24,19,66,.2);margin:12px 0 25px}
.psd-s8-banner:after{content:'✦  ·  ✧  ·  ✦  ·  ✧';position:absolute;top:12px;right:10%;color:rgba(250,207,122,.3);font-size:18px;pointer-events:none}.psd-s8-banner>div{position:relative;z-index:1}.psd-s8-banner h1{color:#fff;font-size:clamp(27px,3vw,39px);line-height:1.65;margin:8px 0}.psd-s8-banner h1 em{color:#f8ca74;font-style:normal}.psd-s8-banner p{color:#e8e8ff;line-height:2.15;font-size:15px;margin:0 0 18px}.psd-s8-banner img{width:100%;aspect-ratio:6/5;object-fit:cover;max-height:330px;border-radius:22px;border:1px solid #f4c876;box-shadow:0 0 0 5px rgba(246,199,118,.07)}.psd-s8-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.psd-s8-hero-actions a{font-size:13px}
.psd-s8-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.psd-s8-tile{display:flex;flex-direction:column;min-width:0;text-decoration:none!important;color:#211f42!important;border-radius:19px;overflow:hidden;background:linear-gradient(155deg,#fff,#f4f1ff);border:1px solid #d9d1f2;box-shadow:0 5px 16px rgba(35,30,82,.09);transition:transform .18s,box-shadow .18s}.psd-s8-tile:hover,.psd-s8-tile:focus-visible{transform:translateY(-4px);box-shadow:0 10px 26px rgba(30,23,74,.19)}.psd-s8-tile-photo{display:block;height:164px;overflow:hidden;background:#121243}.psd-s8-tile-photo img{width:100%;height:100%;object-fit:cover;display:block}.psd-s8-tile-content{display:flex;flex-direction:column;gap:9px;padding:16px}.psd-s8-tile-content small{font-size:12px;color:#67509c}.psd-s8-tile-content strong{font-size:17px;line-height:1.75;color:#28204d}.psd-s8-tile-content>span{line-height:1.9;font-size:13px;color:#605875}.psd-s8-tile-content em{font-style:normal;color:#6651a2;font-size:13px;font-weight:800}
.psd-s8-intro,.psd-s8-method,.psd-s8-study-intro,.psd-s8-next,.psd-s8-sky-current,.psd-s8-sky-resources{padding:26px!important;border-radius:20px;background:linear-gradient(130deg,#fffaf2,#f4f2ff)!important;border:1px solid #eee2d8!important}.psd-s8-intro p,.psd-s8-method p,.psd-s8-study-intro p,.psd-s8-next p{line-height:2.25;color:#363149}.psd-s8-prose{position:relative;padding:24px 28px!important;border-radius:17px;background:#fff!important;border:1px solid #e7e2f4!important;margin-bottom:17px!important;scroll-margin-top:24px}.psd-s8-prose h2{color:#302264;margin:5px 0 11px;font-size:21px}.psd-s8-prose h3{color:#55428c;margin:24px 0 8px;font-size:17px}.psd-s8-prose p{font-size:15px;color:#332e40;line-height:2.42;margin:8px 0 12px;text-align:justify}.psd-s8-index{font-size:12px;font-weight:800;color:#7e6399}.psd-s8-toc{border:1px solid #cbbef0;background:#f8f5ff;padding:20px 23px;border-radius:17px;margin:20px 0;display:flex;flex-direction:column;gap:14px}.psd-s8-toc strong{font-size:17px;color:#291962}.psd-s8-toc>div{display:flex;flex-wrap:wrap;gap:9px}.psd-s8-toc a{padding:8px 12px;border:1px solid #d9cef0;background:#fff;border-radius:12px;font-size:12px;line-height:1.5;text-decoration:none;color:#4a327b}.psd-s8-citations{border:1px dashed #d1c3a9;border-radius:17px;padding:20px!important;background:#fffef9!important}.psd-s8-citations li{line-height:2.15;overflow-wrap:anywhere}
.psd-s8-searchbox,.psd-s8-quiz{padding:25px!important;background:linear-gradient(120deg,#faf7ff,#fffaf0)!important;border:1px solid #d6c5f3!important;border-radius:20px}.psd-s8-searchbox>label{font-size:18px;font-weight:800;color:#271856}.psd-s8-searchrow{display:flex;gap:10px;margin-top:13px}.psd-s8-searchrow input{min-width:0;flex:1;border:2px solid #b7a8df;background:white;color:#262142;outline:0;border-radius:13px;padding:14px 16px;font:inherit;font-size:15px}.psd-s8-searchrow input:focus{border-color:#9272c7;box-shadow:0 0 0 4px rgba(139,109,205,.11)}.psd-s8-searchrow button,.psd-s8-chips button{border:1px solid #c5b2e6;background:#fff;color:#4d367c;padding:9px 12px;border-radius:12px;cursor:pointer;font:inherit}.psd-s8-searchbox>p{line-height:1.9;color:#534966;font-size:13px}.psd-s8-chips{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}.psd-s8-search-filters{display:flex;gap:11px;align-items:center;flex-wrap:wrap}.psd-s8-search-filters label{font-size:14px;font-weight:700}.psd-s8-search-filters select{border:1px solid #b7a8df;background:#fff;border-radius:11px;padding:9px;font:inherit}.psd-s8-count{font-weight:800;color:#2c205d!important}.psd-s8-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.psd-s8-result{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px;background:#fff;border-radius:12px;border:1px solid #e4daf3;text-decoration:none!important;min-width:0}.psd-s8-result>span{display:flex;flex-direction:column;gap:7px;min-width:0}.psd-s8-result strong{color:#2f2457;font-size:14px}.psd-s8-result span span{font-size:12px;color:#645d70;line-height:1.6}.psd-s8-result em{white-space:nowrap;font-size:11px;color:#7d61a7;font-style:normal}.psd-s8-result:focus-visible,.psd-s8-result:hover{border-color:#ae8ade;box-shadow:0 3px 12px #ded3eb}.psd-s8-empty,.psd-s8-more{grid-column:1/-1}
.psd-s8-quiz-head{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:14px;font-weight:800;color:#4e3a77}.psd-s8-progress-track{display:block;width:min(270px,50%);height:10px;background:#e5ddf4;border-radius:99px;overflow:hidden;direction:ltr}.psd-s8-progress-track>span{display:block;width:0;height:100%;background:linear-gradient(90deg,#9470d5,#f5b856);transition:width .2s}.psd-s8-quiz-panel{text-align:center;padding:22px 10px}.psd-s8-quiz-panel h2{color:#2c1c58;font-size:23px}.psd-s8-quiz-panel p{max-width:640px;margin:12px auto;line-height:2.1}.psd-s8-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px auto;max-width:750px}.psd-s8-choice{font:inherit;font-size:14px;line-height:1.8;padding:18px 14px;text-align:right;border:1px solid #c7b6e7;background:#fff;border-radius:15px;color:#302448;cursor:pointer}.psd-s8-choice:hover,.psd-s8-choice:focus-visible,.psd-s8-choice.is-selected{background:#eee7ff;border-color:#866bc0}.psd-s8-quiz-actions{display:flex;gap:10px;flex-wrap:wrap}.psd-s8-quiz [hidden]{display:none!important}.psd-s8-score-bars{max-width:620px;margin:20px auto;text-align:right}.psd-s8-score-line{margin:11px 0;display:flex;flex-direction:column;gap:7px;font-size:13px}.psd-s8-score-track{width:100%;height:10px;background:#e5def3;border-radius:99px;overflow:hidden;direction:ltr}.psd-s8-score-track>span{display:block;background:linear-gradient(90deg,#8571ca,#e6b760);height:100%}.psd-s8-result-note{color:#655f78;font-size:13px!important}
.psd-s8-sky-current{display:flex;flex-direction:column;gap:10px}.psd-s8-moon{display:flex;gap:22px;align-items:center}.psd-s8-moon-icon{height:110px;width:110px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;background:radial-gradient(circle at 35% 30%,#d2bcfc,#161345);font-size:88px;color:#f5e5ae;box-shadow:0 0 30px #9993e777}.psd-s8-moon h2{font-size:28px;color:#2c2460;margin:5px 0}.psd-s8-moon p{margin:4px 0}.psd-s8-sky-note{padding:12px 17px;border-right:3px solid #b4a3df;background:#f7f3ff;border-radius:9px;font-size:13px;line-height:2;color:#61586f}.psd-s8-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.psd-s8-event{background:linear-gradient(135deg,#141544,#262160);color:#fff;border:1px solid #cda96e;border-radius:16px;padding:19px}.psd-s8-event time{color:#f3c581;font-size:12px;font-weight:800}.psd-s8-event h3{color:#fff;margin:8px 0;font-size:17px}.psd-s8-event p{color:#e8e6f7;line-height:2.1;font-size:13px}.psd-s8-sky-empty{border:1px solid #d5c6ec;padding:22px;border-radius:15px;background:#f8f4ff}.psd-s8-resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.psd-s8-resource-grid a{background:#fff;border:1px solid #dcd1ed;padding:16px;border-radius:14px;text-decoration:none}.psd-s8-resource-grid strong{color:#3a276b;font-size:15px}.psd-s8-resource-grid p{line-height:1.9;color:#665d71;font-size:13px}
@media(max-width:950px){.psd-s8-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.psd-s8-resource-grid{grid-template-columns:1fr}.psd-s8-banner{grid-template-columns:minmax(0,1fr) minmax(170px,.65fr)}}
@media(max-width:670px){.psd-article .psd-s8-banner{display:flex;flex-direction:column-reverse;padding:17px;gap:13px;border-radius:19px}.psd-s8-banner img{max-height:210px;aspect-ratio:16/9;object-fit:cover}.psd-s8-banner h1{font-size:25px}.psd-s8-banner p{font-size:13px}.psd-s8-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.psd-s8-tile-photo{height:120px}.psd-s8-tile-content{padding:10px;gap:6px}.psd-s8-tile-content strong{font-size:14px}.psd-s8-tile-content>span{font-size:12px}.psd-s8-prose{padding:17px!important}.psd-s8-prose h2{font-size:18px}.psd-s8-prose p{font-size:14px;line-height:2.25}.psd-s8-toc{padding:13px}.psd-s8-toc a{font-size:11px}.psd-s8-searchbox,.psd-s8-quiz{padding:14px!important}.psd-s8-searchrow input{padding:12px;font-size:13px}.psd-s8-searchrow button{padding:8px}.psd-s8-results,.psd-s8-choices,.psd-s8-events{grid-template-columns:1fr}.psd-s8-moon{gap:12px}.psd-s8-moon-icon{height:82px;width:82px;font-size:60px}.psd-s8-moon h2{font-size:21px}.psd-s8-intro,.psd-s8-method,.psd-s8-sky-current{padding:16px!important}}
@media(max-width:380px){.psd-s8-grid{grid-template-columns:1fr}.psd-s8-tile{flex-direction:row}.psd-s8-tile-photo{min-width:105px;max-width:105px;height:auto}.psd-s8-tile-content{padding:10px}.psd-s8-tile-content>span{display:none}.psd-s8-banner h1{font-size:22px}.psd-s8-hero-actions a{width:100%;text-align:center}.psd-s8-moon{flex-direction:column;text-align:center}}
/* Site-wide theme may set more-specific heading colors; keep dark hero legible. */
.psd-article .psd-s8-banner h1{color:#fff!important}
.psd-article .psd-s8-banner h1 em{color:#f8ca74!important}
