:root{font-family:system-ui,-apple-system,sans-serif;color:#263e34;background:#f4f5ef;--ink:#263e34;--muted:#637266;--line:#dfe5d9;--gold:#a2803d;--green:#416848}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a17a33;outline-offset:3px}a{color:#416848}button{color:inherit}.lab-header{height:92px;padding:0 32px;display:flex;gap:24px;align-items:center;background:#fff;border-bottom:1px solid var(--line)}.lab-brand{display:flex;gap:15px;align-items:center;text-decoration:none;color:var(--ink)}.lab-brand b{font:40px Georgia,serif}.lab-brand span{font-size:10px;letter-spacing:1.8px}.lab-brand small{display:block;font-size:10px;letter-spacing:.2px;margin-top:6px;color:var(--muted)}.lab-header nav{display:flex;gap:5px;margin:auto}.lab-header nav button{border:0;background:transparent;padding:12px 17px;border-radius:24px;font-size:13px}.lab-header nav button[aria-pressed=true]{background:#eaf0e5;color:#305337}.lab-header>a:last-child{font-size:12px}#lab{max-width:1700px;margin:auto;padding:27px 32px}.eyebrow{font-size:10px;letter-spacing:2px;color:#816a37;text-transform:uppercase}.intro{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.intro h1{font:clamp(24px,2.5vw,36px) Georgia,serif;letter-spacing:-.6px;margin:9px 0}.intro p{font-size:13px;line-height:1.7;color:var(--muted);margin:5px 0;max-width:760px}.controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.controls button,.controls select,.toolbar button{border:1px solid var(--line);border-radius:9px;background:#fff;padding:9px 12px;font-size:12px}.controls [aria-pressed=true]{border-color:#416848;background:#eaf0e5}.journey{display:flex;gap:8px;margin-bottom:16px}.journey button{border:1px solid var(--line);background:#fff;flex:1;text-align:start;padding:13px 17px;border-radius:13px}.journey button[aria-pressed=true]{background:#2e4f3b;color:white}.journey small{display:block;opacity:.7;margin-top:5px;font-size:11px}.experience-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(270px,1fr);gap:16px;height:calc(100dvh - 310px);min-height:390px;max-height:800px}.card{background:#fff;border:1px solid var(--line);border-radius:18px;min-width:0;overflow:hidden}.graph-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto}.card-heading{padding:18px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0e9;gap:12px}.card-heading h2{font-size:15px;margin:0}.card-heading small{font-size:11px;color:var(--muted)}.graph-stage{position:relative;min-height:200px;background-image:radial-gradient(#dce3d7 .8px,transparent .8px);background-size:22px 22px;overflow:hidden}.graph-stage>svg{position:absolute;inset:0;width:100%;height:100%}.graph-edge{stroke:#95a98c;stroke-width:.35;fill:none}.graph-edge.context{stroke-dasharray:1 1}.graph-node{position:absolute;transform:translate(-50%,-50%);border:1px solid #b9cbb0;background:#f3f6ee;border-radius:12px;min-width:72px;max-width:130px;padding:10px 9px;text-align:center;box-shadow:0 3px 10px #263e3406;font-size:11px;line-height:1.5}.graph-node strong{display:block}.graph-node small{display:block;font-size:9px;color:#586956;margin-top:3px}.graph-node[data-kind=hadith]{background:#304f3b;color:#fff;border-color:#304f3b;max-width:170px;min-width:115px}.graph-node[data-kind=hadith] small{color:#e1eadc}.graph-node[data-kind=book]{border-radius:5px;background:#fbf6e8;border-color:#c8b67d}.graph-node[data-kind=context]{border-radius:18px;border-style:dashed;background:#faf9f3}.graph-node[data-selected=true]{outline:3px solid #b99a53;outline-offset:4px}.graph-node.route{font-size:9px;max-width:82px;min-width:60px;padding:7px 5px}.graph-caption{padding:13px 20px;font-size:11px;color:var(--muted);border-top:1px solid var(--line);line-height:1.6;display:flex;justify-content:space-between;gap:12px}.graph-caption button{font-size:11px;white-space:nowrap;border:0;background:transparent;text-decoration:underline;color:#416848}.reading-card{display:flex;flex-direction:column}.reading-body{padding:18px 22px;overflow:auto;min-height:0;flex:1}.reading-body h3{font:23px Georgia,serif;margin:3px 0 12px}.reading-body p{font-size:13px;line-height:1.85}.source-quote{font:25px/1.9 Georgia,serif;background:#f4f6f0;border-radius:10px;padding:14px;text-align:right;margin:12px 0}.tag{display:inline-block;border:1px solid var(--line);border-radius:20px;font-size:10px;line-height:1.6;padding:4px 9px;margin:3px 4px 3px 0;color:#52654e}.note{border-inline-start:3px solid #b99a53;padding:8px 12px;color:#5e674f;background:#faf9f3;font-size:11px;line-height:1.8}.turn{border-bottom:1px solid #edf0e9;padding:11px 0}.turn b{font-size:11px;color:#416848}.turn p{margin:4px 0;font-size:13px}.source-footer{padding:12px 22px;border-top:1px solid var(--line);font-size:11px;display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between}.explainer{background:#f4f7ef;padding:12px;border-radius:10px;margin-top:12px;font-size:12px;line-height:1.8}.toolbar{display:flex;gap:10px;margin:18px 0}.toolbar input{padding:12px 15px;border:1px solid var(--line);border-radius:11px;background:white;flex:1;min-width:0}.toolbar select{border:1px solid var(--line);background:#fff;border-radius:11px;padding:8px 12px}.catalog-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px}.cap-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;max-height:calc(100dvh - 300px);overflow:auto;padding:3px}.cap-button{text-align:start;border:1px solid var(--line);background:white;border-radius:12px;padding:15px;min-height:105px}.cap-button[aria-pressed=true]{border-color:#416848;background:#edf2e7}.cap-button strong{font-size:13px;display:block;line-height:1.6}.cap-button span{display:block;font-size:13px;line-height:1.8;margin:5px 0;color:#4f694c}.cap-button small{font-size:10px;color:var(--muted)}.detail{padding:23px;max-height:calc(100dvh - 300px);overflow:auto}.detail h2{font:26px Georgia,serif;margin:5px 0 12px}.detail h3{font-size:11px;text-transform:uppercase;letter-spacing:1px;margin:22px 0 8px;color:#78663c}.detail p,.detail li{font-size:12px;line-height:1.8}.detail ul{padding-inline-start:18px}.detail blockquote{margin:10px 0;padding:12px 14px;background:#f6f7f2;border-radius:10px;font:19px/1.9 Georgia,serif}.detail code{font-size:11px;overflow-wrap:anywhere}.stats{display:flex;gap:20px;flex-wrap:wrap;margin:14px 0}.stats span{font-size:11px;color:var(--muted)}.stats b{font:24px Georgia,serif;color:var(--ink);margin-inline-end:6px}.model-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.model-list details{border:1px solid var(--line);border-radius:12px;background:#fff;padding:15px;min-width:0}.model-list summary{font-size:12px;cursor:pointer;overflow-wrap:anywhere}.model-list p,.model-list li{font-size:11px;line-height:1.8;overflow-wrap:anywhere}.model-list ul{padding-inline-start:17px}.model-list code{font-size:10px}.live{font-size:11px;color:#637266;min-height:18px;margin-top:10px}[hidden]{display:none!important}[dir=rtl] .intro h1,[dir=rtl] .reading-body h3{font-family:Georgia,serif;letter-spacing:0}[dir=rtl] .graph-node{direction:rtl}.text-view{height:100%;overflow:auto;padding:18px 25px}.text-view li{font-size:12px;line-height:2;margin-bottom:8px}.text-view button{border:0;background:transparent;text-decoration:underline;font:inherit}.prototype-label{font-size:10px;border:1px solid #c9ba91;border-radius:20px;padding:5px 9px;color:#7a6431}@media(max-width:1050px){.lab-header{padding:0 18px;gap:10px}.lab-brand span{display:none}.experience-grid{grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr)}.graph-node{min-width:65px;font-size:10px;max-width:100px}.graph-node.route{min-width:48px;max-width:62px;font-size:8px}.model-list{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.lab-header{height:auto;min-height:78px;padding:12px;flex-wrap:wrap}.lab-brand b{font-size:29px}.lab-header nav{gap:0}.lab-header nav button{padding:9px;font-size:11px}.lab-header>a:last-child{display:none}#lab{padding:16px 12px}.intro{align-items:start;margin-bottom:14px}.intro h1{font-size:25px}.intro p{font-size:11px}.controls{max-width:140px;justify-content:end}.controls button,.controls select{font-size:10px;padding:7px}.journey{gap:5px}.journey button{padding:10px 7px;font-size:11px}.journey small{font-size:9px}.experience-grid{height:calc(100dvh - 335px);min-height:390px;grid-template-columns:1fr;grid-template-rows:minmax(190px,1fr) minmax(160px,.9fr);gap:10px}.card-heading{padding:11px 15px}.card-heading h2{font-size:12px}.graph-node{font-size:9px;padding:6px;min-width:55px;max-width:96px}.graph-node small{font-size:8px}.graph-node.route{min-width:38px;max-width:45px;font-size:7px;padding:4px 2px}.graph-node[data-kind=hadith]{min-width:95px}.graph-caption{font-size:9px;padding:8px 12px}.reading-body{padding:12px 15px}.reading-body h3{font-size:19px}.source-quote{font-size:21px;margin:6px 0}.source-footer{padding:9px 15px;font-size:10px}.catalog-layout{grid-template-columns:1fr}.cap-list{max-height:280px}.detail{max-height:550px}.model-list{grid-template-columns:1fr}.stats{gap:12px}.stats b{font-size:19px}.toolbar select{max-width:130px}.eyebrow{font-size:8px}.prototype-label{display:none}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep the study in one viewport; long explanations scroll inside their cards. */
body{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.lab-header{flex-shrink:0}#lab{width:100%;flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto}.intro,.journey,.toolbar,.live{flex-shrink:0}.experience-grid{flex:1;height:auto;min-height:0;max-height:none}.graph-stage{min-height:0}.catalog-layout{min-height:0;flex:1}.model-list{overflow:auto;min-height:0;padding:3px}.cap-list,.detail{max-height:none}.graph-node.route small{display:none}@media(max-width:700px){.experience-grid{height:auto;min-height:0;grid-template-rows:minmax(0,1fr) minmax(0,.9fr)}.catalog-layout{display:flex;flex-direction:column;overflow:auto}.cap-list{max-height:250px;flex-shrink:0}.detail{max-height:none;overflow:visible;flex-shrink:0}.intro .controls{font-size:10px}.intro p{max-width:70ch}.graph-node.route{max-width:40px}.card-heading small{font-size:9px}}@media(max-height:700px){.intro h1{font-size:23px;margin:5px 0}.intro p{font-size:11px}.intro{margin-bottom:10px}.journey button{padding:8px}.journey small{display:none}#lab{padding-top:14px;padding-bottom:10px}.lab-header{height:72px;min-height:60px}.card-heading{padding:10px 14px}}
.phrase-link{font:inherit;border:0;background:transparent;color:inherit;text-align:inherit;padding:2px 4px;cursor:pointer;border-radius:5px;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:5px}.phrase-link[aria-pressed=true],.phrase-link.aligned{background:#eee5cb;text-decoration:none}.phrase-link.paraphrase{text-align:start;font-size:13px;line-height:1.85}.source-quote .phrase-link{font-size:inherit}
@media(max-width:700px){.lab-header{flex-wrap:nowrap;min-height:62px;height:62px;gap:6px;padding:8px 12px}.lab-header nav{margin:0 0 0 auto}.lab-header nav button{padding:8px 7px;font-size:10px}.lab-brand b{font-size:25px}.intro p{display:none}.intro h1{font-size:23px;line-height:1.25;margin-bottom:4px}.intro{min-height:76px;gap:10px}.intro .controls{max-width:95px}.intro .controls select{max-width:95px}.journey{margin-bottom:12px}.journey button{font-size:10px}.journey small{font-size:9px}.experience-grid{grid-template-rows:minmax(140px,.85fr) minmax(170px,1.15fr)}.graph-card .card-heading{padding:9px 12px}.graph-card .card-heading h2{font-size:11px;max-width:160px}.graph-card .card-heading .controls{max-width:160px;gap:4px}.graph-card .card-heading .controls button{padding:6px;font-size:9px}.graph-caption>span{display:none}.graph-caption{padding:7px 12px;justify-content:end}.reading-body h3{font-size:20px}.source-quote{font-size:22px;padding:8px}.graph-node[data-kind=book]{max-width:76px}.graph-node[data-kind=hadith]{max-width:125px}}@media(max-width:700px) and (max-height:700px){.intro{min-height:60px}.intro h1{font-size:20px}.journey small{display:none}.experience-grid{grid-template-rows:minmax(130px,.75fr) minmax(150px,1.25fr)}}
.sample-finding,.field-row{border-bottom:1px solid var(--line);padding:10px 0 16px}.field-row p{margin:5px 0}.field-row small{font-size:10px;color:var(--muted)}.profile-follow{background:#edf2e7;border:1px solid #c8d7bf;border-radius:9px;padding:10px 14px;color:#38543d}.toolbar a{align-self:center;margin-inline-start:auto;font-size:12px}.toolbar button[aria-pressed=true]{background:#304f3b;color:#fff}.lab-header nav{min-width:0;overflow-x:auto;white-space:nowrap}.lab-header nav button{flex-shrink:0}@media(max-width:700px){.toolbar{flex-wrap:wrap}.toolbar a{font-size:10px;margin:0}.lab-header nav button{font-size:9px;padding:8px 6px}.cap-list{min-height:200px}}
.atomic-field-link{display:inline-block;border:1px solid #d3dec9;background:#f7f9f2;border-radius:8px;padding:6px 10px;font-size:13px;text-decoration:none}.atomic-status{display:block;font-size:9px;color:#7d876b;margin-bottom:5px}
