/* Homepage layout and illustrated topic covers. The chapter reader stays unchanged. */
.atlas-hero{background:#f8f5ef;color:#17334e;border-block-end:1px solid #e3e3da}
.atlas-hero-grid{min-height:clamp(375px,48vw,575px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);align-items:center;gap:clamp(23px,6vw,102px);padding-block:clamp(24px,4.4vw,66px)}
.atlas-hero .home-flag{color:#326f69;font-weight:850}
.atlas-hero .home-flag>span{background:#326f69}
.atlas-hero .home-copy h1{color:#132d48;font-size:clamp(2.6rem,6.25vw,5.5rem);line-height:1.14;letter-spacing:-.03em}
.atlas-hero .home-copy p{color:#36516a;font-size:clamp(.99rem,1.6vw,1.22rem);line-height:1.8;margin-block:16px 24px}
.atlas-hero .home-actions{gap:11px 15px}
.atlas-hero .atlas-hero-action{background:linear-gradient(132deg,#254b68,#15354e);color:#fff;border:1px solid #31546c;box-shadow:0 8px 21px #16364b21}
.atlas-hero .atlas-hero-action:hover{background:#214f65}
.atlas-hero .atlas-hero-search{color:#1b605a;border:1px solid #adc6bd;background:#fbfcf9}
.atlas-hero .atlas-hero-search:hover{background:#e7f3ee}
.atlas-hero-portrait{position:relative;margin:0;align-self:center;isolation:isolate;display:flex;align-items:end;justify-content:center;aspect-ratio:1.41/1;overflow:hidden;border-radius:clamp(21px,3vw,38px) clamp(21px,3vw,38px) 7px clamp(21px,3vw,38px);background:radial-gradient(ellipse at 33% 22%,#e7f5f7,#c3dce8 63%,#a6c5d9);border:1px solid #aec7d0;box-shadow:0 16px 38px #1d405325}
.atlas-hero-portrait img{width:103%;height:auto;max-width:none;display:block;clip-path:polygon(0 0,100% 0,100% 16%,51% 16%,51% 26.5%,100% 26.5%,100% 100%,0 100%);object-fit:contain;object-position:bottom}
.atlas-hero-portrait figcaption{position:absolute;inset-inline-end:13px;inset-block-start:13px;padding:3px 13px;border-radius:99px;background:#163c52;color:#fff;font-size:.74rem;font-weight:800;line-height:1.7}
.atlas-shortcuts{background:#fff;border-block-end:1px solid #dae5e7;padding-block:17px 23px}
.atlas-strip-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-block-end:8px}
.atlas-strip-head h2{color:#16354d;font-size:clamp(1.12rem,2.1vw,1.6rem);font-weight:900;margin:0}
.atlas-strip-head a{display:flex;align-items:center;gap:6px;color:#256b63;font-size:.88rem;text-decoration:underline;text-underline-offset:4px;font-weight:800;min-height:44px}
.atlas-strip-head svg,.atlas-strip a>svg{width:16px;height:16px;flex:none}
.atlas-strip{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:0}
.atlas-strip li+li{border-inline-start:1px solid #d2e2e5}
.atlas-strip a{display:flex;gap:10px;align-items:center;padding:12px clamp(8px,1.5vw,22px);color:#15354b;height:100%;min-height:58px}
.atlas-strip a:hover{background:#f0f8f6}
.atlas-strip a>strong{flex:1;font-size:clamp(.82rem,1.12vw,1.06rem);line-height:1.55}
.atlas-strip-mark{display:flex;align-items:center;gap:5px;color:#54776b;font-size:.72rem;flex:none}
.atlas-strip-mark>span{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#e2f0e9;color:#226359}
.atlas-strip-mark svg{width:16px;height:16px}
.atlas-section{background:radial-gradient(ellipse at 50% 36%,#fff,#f1f7f8 82%);padding-block:clamp(28px,4vw,59px) 30px}
.atlas-section-head{text-align:center;margin-block-end:24px}
.atlas-section-head>span{color:#337368;font-weight:850;font-size:.84rem}
.atlas-section-head h2{scroll-margin-block-start:calc(var(--sanad-header-height,64px) + 12px);color:#142f49;font-weight:900;font-size:clamp(1.85rem,4.5vw,3.35rem);margin:0;line-height:1.4}
.atlas-section-head p{color:#365b68;font-weight:650;margin:7px 0 0;font-size:clamp(.87rem,1.6vw,1rem)}
.topic-atlas{--atlas-node-height:90px;--atlas-map-height:324px;position:relative;max-width:1090px;margin-inline:auto;display:grid;grid-template-columns:minmax(0,27.5fr) minmax(0,45fr) minmax(0,27.5fr);grid-template-rows:repeat(3,1fr) auto;grid-template-areas:"side0 core side3" "side1 core side4" "side2 core side5" "details details details";row-gap:12px;isolation:isolate}
.atlas-lines{z-index:-1;position:absolute;inset-block-start:0;inset-inline-start:0;width:100%;height:var(--atlas-map-height);fill:none;stroke:#8eb5bd;stroke-width:2}
.atlas-hub{grid-area:core;align-self:center;justify-self:center;width:clamp(145px,20vw,233px);aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;gap:2px;background:radial-gradient(ellipse at 18% 10%,#3c7488,transparent 65%),linear-gradient(137deg,#1e4b64,#132d47);box-shadow:0 0 0 10px #dbeceb,0 0 0 11px #bfd7da,0 15px 30px #19435b35;text-align:center;color:#fff}
.atlas-hub svg{width:27px;height:27px;color:#b1e6dc}
.atlas-hub strong{font-size:clamp(1.2rem,2.5vw,1.82rem);font-weight:900;line-height:1.5}
.atlas-hub>span{font-size:.81rem;color:#c7e6e6;font-weight:750}
.atlas-family{display:contents;--atlas-wash:#edf5f9;--atlas-border:#b4d0de;--atlas-ink:#24526a}
.atlas-family-0{--atlas-wash:#e5f3ed;--atlas-border:#abcdbf;--atlas-ink:#245b50}
.atlas-family-2{--atlas-wash:#fbf4e6;--atlas-border:#dacbb1;--atlas-ink:#654b29}
.atlas-family-3{--atlas-wash:#e8f2f1;--atlas-border:#b4d1d1;--atlas-ink:#285956}
.atlas-family-4{--atlas-wash:#edf0f6;--atlas-border:#bdc8de;--atlas-ink:#394b72}
.atlas-family-5{--atlas-wash:#f0f3ed;--atlas-border:#c5d0b9;--atlas-ink:#425c45}
.atlas-family-0>.atlas-node{grid-area:side0}.atlas-family-1>.atlas-node{grid-area:side1}.atlas-family-2>.atlas-node{grid-area:side2}
.atlas-family-3>.atlas-node{grid-area:side3}.atlas-family-4>.atlas-node{grid-area:side4}.atlas-family-5>.atlas-node{grid-area:side5}
.atlas-node{display:grid;grid-template-columns:37px minmax(0,1fr) 13px;gap:8px;align-items:center;min-width:0;min-height:var(--atlas-node-height);text-align:start;padding:9px 12px;border:1px solid var(--atlas-border);border-radius:16px;color:var(--atlas-ink);background:linear-gradient(156deg,#fff,var(--atlas-wash) 67%);box-shadow:inset 0 1px 0 #fff,0 4px 12px #284b5d14}
.atlas-node strong{font-size:clamp(.9rem,1.45vw,1.13rem);font-weight:900;line-height:1.48}
.atlas-node:hover{border-color:#337b75}
.atlas-node[aria-expanded="true"]{border-color:#27625f;background:linear-gradient(136deg,#286d68,#164d50);color:#fff;box-shadow:0 6px 14px #20585631}
.atlas-glyph{width:36px;height:36px;border-radius:50%;color:inherit;background:#ffffff8c;display:grid;place-items:center}
.atlas-node[aria-expanded="true"] .atlas-glyph{background:#ffffff25}
.atlas-glyph svg{width:21px;height:21px}
.atlas-plus{position:relative;width:13px;height:13px}
.atlas-plus::before,.atlas-plus::after{position:absolute;content:"";height:1.5px;width:11px;top:5.75px;left:1px;background:currentColor;border-radius:2px}
.atlas-plus::after{transform:rotate(90deg)}
.atlas-node[aria-expanded="true"] .atlas-plus::after{display:none}
.atlas-pane{grid-area:details;min-width:0;margin-block-start:12px;padding:15px 17px;border-block:1px solid var(--atlas-border);background:#fcfefe}
.atlas-pane[hidden]{display:none!important}
.atlas-pane h3{color:var(--atlas-ink);font-size:1.04rem;margin:0 0 9px;font-weight:900}
.atlas-pane ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.atlas-pane li+li{border-inline-start:1px solid #d8e5e6;padding-inline-start:11px}
.atlas-topic{display:grid;grid-template-columns:68px minmax(0,1fr) 15px;gap:8px;align-items:center;min-height:65px;color:#183d54;padding:4px;border-radius:8px}
.atlas-topic:hover{background:var(--atlas-wash)}
.atlas-thumb{width:68px;aspect-ratio:1.5;overflow:hidden;border-radius:6px;background:var(--atlas-wash)}
.atlas-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.atlas-topic-text{min-width:0;display:grid;gap:1px}
.atlas-topic-text strong{font-size:.89rem;line-height:1.48;font-weight:850;overflow-wrap:anywhere}
.atlas-topic-text small{color:#466979;font-size:.72rem;line-height:1.4}
.atlas-go{font-size:.89rem}
.ed-cover-scene .ed-cover-frame{min-height:285px;grid-template-columns:minmax(0,1fr) minmax(240px,40%);padding-block:27px}
.ed-cover-scene .ed-cover-copy h1{font-size:clamp(1.86rem,4.15vw,3.25rem)}
.ed-door-scene{width:100%;min-width:0;margin:0;border-radius:19px;border:1px solid #95c4cc8a;overflow:hidden;background:#112d44;box-shadow:0 12px 27px #0a213366}
.ed-door-scene img{display:block;width:100%;height:auto;aspect-ratio:1.55;object-fit:cover}
.ed-door-scene figcaption{color:#e2f0ef;background:#163952;font-size:.82rem;font-weight:720;padding:8px 13px;line-height:1.6}
@media(max-width:840px){
 .topic-atlas{--atlas-node-height:75px;--atlas-map-height:249px}
 .atlas-node{grid-template-columns:32px minmax(0,1fr) 12px;padding:7px 9px;gap:5px}
 .atlas-glyph{width:30px;height:30px}
 .atlas-glyph svg{width:17px;height:17px}
 .atlas-topic{grid-template-columns:59px minmax(0,1fr) 13px;gap:6px}
 .atlas-thumb{width:59px}
}
@media(max-width:630px){
 .atlas-hero-grid{grid-template-columns:minmax(0,1fr);gap:20px;min-height:0}
 .atlas-hero .home-copy h1{font-size:clamp(2.24rem,9vw,3.55rem)}
 .atlas-hero .home-copy p{margin-block:11px 15px}
 .atlas-hero-portrait{max-width:510px;width:100%;margin-inline:auto}
 .atlas-strip{grid-template-columns:minmax(0,1fr)}
 .atlas-strip li+li{border-inline-start:0;border-block-start:1px solid #d2e2e5}
 .atlas-strip a{min-height:50px;padding-block:6px}
 .atlas-section-head{text-align:start;margin-block-end:15px}
 .topic-atlas{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:none;gap:8px}
 .atlas-lines,.atlas-hub{display:none}
 .atlas-family{display:block;min-width:0}
 .atlas-node{width:100%;min-height:53px;grid-template-columns:33px minmax(0,1fr) 16px}
 .atlas-pane{margin:0;min-width:0;padding:2px 8px 4px;border-block-start:0}
 .atlas-pane h3{display:none}
 .atlas-pane ul{grid-template-columns:minmax(0,1fr);gap:0}
 .atlas-pane li+li{padding:0;border-inline-start:0;border-block-start:1px solid #d8e5e6}
 .atlas-topic{min-height:56px}
 .ed-cover-scene .ed-cover-frame{min-height:0;grid-template-columns:minmax(0,1fr);gap:14px;padding-block:19px 22px}
 .ed-cover-scene .ed-cover-copy h1{font-size:clamp(1.62rem,6.6vw,2.36rem)}
 .ed-door-scene{width:min(100%,440px);border-radius:13px}
}
@media print{
 .atlas-lines,.atlas-hub{display:none}
 .ed-door-scene figcaption{color:#193449;background:#fff}
}
