/* 9D is a visual direction: layered CSS depth, never a change to the reference data. */
#recordsView{--depth-ink:#e9edf5;--depth-muted:#acb9ca;--depth-surface:#0e1c2c;--depth-inner:#0a1422;--depth-line:#354d65;--depth-accent:#e8ad6c}
.depth-intro{position:relative;isolation:isolate;overflow:hidden;border:1px solid #5c4e41;border-radius:24px;min-height:230px;margin:0 0 24px;padding:30px clamp(20px,3vw,40px);background:radial-gradient(ellipse at 82% 20%,#446da630,transparent 55%),radial-gradient(ellipse at 3% 100%,#af622a25,transparent 50%),linear-gradient(125deg,#14273b,#09111d 75%);color:#ebeff7;box-shadow:0 22px 50px #02070c33,inset 0 1px #ffffff0a}
.depth-grid{position:absolute;z-index:-1;inset:0;background-image:linear-gradient(#8dbfe008 1px,transparent 1px),linear-gradient(90deg,#8dbfe008 1px,transparent 1px);background-size:36px 36px;transform:perspective(400px) rotateX(47deg) scale(1.5);transform-origin:center 90%;opacity:.7;pointer-events:none}
.depth-intro-copy{position:relative;max-width:70%;z-index:1}.depth-eyebrow{font-size:10px;font-weight:650;letter-spacing:.18em;color:#efbb81}.depth-intro h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(26px,3vw,40px);font-weight:400;line-height:1.25;letter-spacing:-.02em;margin:15px 0 12px;text-wrap:balance;color:#f3e1ca}.depth-intro p{color:#bdcadb;font-size:13px;line-height:1.8;max-width:540px}.depth-statistics{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:20px;font-size:10px;color:#b8c5d5}.depth-statistics b{font:500 20px Georgia,serif;color:#efb575;margin-inline-end:5px}
.depth-orbit{position:absolute;inset-inline-end:-16px;top:-8px;width:280px;height:280px;display:grid;place-items:center;opacity:.85;pointer-events:none;transform:rotate(-15deg)}.depth-orbit i{position:absolute;inset:21px;border:1px solid #e4b27855;border-radius:50%;box-shadow:inset 0 0 24px #d39d4310,0 0 15px #b4d7ff0a}.depth-orbit i:nth-child(2){inset:45px 5px;transform:rotate(55deg) rotateX(58deg);border-color:#7eaed575}.depth-orbit i:nth-child(3){inset:8px 45px;transform:rotate(-30deg) rotateY(56deg);border-color:#b29adc70}.depth-orbit>span{font:400 92px Georgia,serif;color:#e6bd8188;transform:rotate(15deg);text-shadow:0 3px #010711,0 0 40px #dc9d3730}.depth-orbit>span>span{font-size:28px;margin-inline-start:-17px}
.depth-motion{position:relative;z-index:2;margin-top:22px;border:1px solid #79634c;background:#1a2d40;color:#efc58c;padding:9px 13px;border-radius:30px;font-size:11px;cursor:pointer;min-height:40px}.depth-motion:disabled{color:#bcc9d8;border-color:#4c6073;cursor:default}.depth-motion:focus-visible{outline:2px solid #f0ba78;outline-offset:4px}
#recordsView[data-layout=depth] .table-shell{background:transparent;border:0;overflow:visible;box-shadow:none}#recordsView[data-layout=depth] .table-top,#recordsView[data-layout=depth] .table-footer{background:var(--depth-surface);border:1px solid var(--depth-line);border-radius:12px;padding:16px}#recordsView[data-layout=depth] .table-scroll{overflow:visible}#recordsView[data-layout=depth] #q99Index{display:block;min-width:0;width:100%;border:0}#recordsView[data-layout=depth] #q99Index thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}#recordsView[data-layout=depth] #rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding:24px 2px;isolation:isolate}
#recordsView[data-layout=depth] #rows>tr{--card-accent:#e2ac70;--depth-rx:0deg;--depth-ry:0deg;--depth-lx:50%;--depth-ly:20%;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px 12px;position:relative;min-width:0;align-content:start;padding:23px;border:1px solid var(--depth-line);border-top-color:#77705e;border-radius:19px;background:radial-gradient(ellipse at var(--depth-lx) var(--depth-ly),#92c9ff0c,transparent 65%),linear-gradient(150deg,var(--depth-surface),var(--depth-inner));box-shadow:0 5px 0 -1px var(--depth-inner),0 6px 0 -1px #4c4f59,0 15px 30px #00000024,inset 0 1px #ffffff0c;transform:perspective(1200px) rotateX(var(--depth-rx)) rotateY(var(--depth-ry));transform-origin:center;transition:transform .18s ease-out,border-color .2s ease-out,box-shadow .2s ease-out;color:var(--depth-ink);scroll-margin-top:90px}
#recordsView[data-layout=depth] #rows>tr::before{content:'';position:absolute;inset:0 18px auto;height:1px;background:linear-gradient(90deg,transparent,var(--card-accent),transparent);opacity:.8;pointer-events:none}#recordsView[data-layout=depth] #rows>tr::after{content:'';position:absolute;inset:8px;border:1px solid #a1c7eb08;border-radius:13px;pointer-events:none}#recordsView[data-layout=depth] #rows>tr[data-depth-tone="1"],#recordsView[data-layout=depth] #rows>tr[data-depth-tone="4"]{--card-accent:#83c4ce}#recordsView[data-layout=depth] #rows>tr[data-depth-tone="2"],#recordsView[data-layout=depth] #rows>tr[data-depth-tone="5"]{--card-accent:#b49ddd}
#recordsView[data-layout=depth] #rows>tr:focus-within{border-color:var(--card-accent);box-shadow:0 5px 0 -1px var(--depth-inner),0 6px 0 -1px var(--card-accent),0 16px 38px #00000033,inset 0 0 35px #a6caff05}#recordsView[data-layout=depth] #rows>tr[data-depth-active]{border-color:var(--card-accent);z-index:2}
#recordsView[data-layout=depth] #rows>tr>td{display:block;min-width:0;width:auto;max-width:none;padding:0;border:0;position:relative;color:var(--depth-ink);overflow-wrap:anywhere;z-index:1}#recordsView[data-layout=depth] #rows>tr>td::before{display:block;content:attr(data-label);font-size:9px;line-height:1.5;letter-spacing:.04em;color:var(--depth-muted);margin-bottom:8px}#recordsView[data-layout=depth] #rows>tr>td:nth-child(1){grid-column:1/3;grid-row:1;align-self:start;font:400 35px/1.1 Georgia,serif;color:var(--card-accent);border-inline-end:1px solid var(--depth-line);padding-inline-end:10px}#recordsView[data-layout=depth] #rows>tr>td:nth-child(1)::before{font-family:Arial,sans-serif}#recordsView[data-layout=depth] #rows>tr>td:nth-child(2){grid-column:3/-1;grid-row:1;padding-inline-start:7px}#recordsView[data-layout=depth] .lemma-button{font:400 clamp(21px,2vw,29px)/1.35 Georgia,'Times New Roman',serif;color:var(--depth-accent);text-align:start}#recordsView[data-layout=depth] .lemma-sub{font-size:9px;letter-spacing:.08em;margin-top:8px;color:var(--depth-muted)}
#recordsView[data-layout=depth] #rows>tr>.witness-cell{grid-column:1/-1;padding:17px;border:1px solid var(--depth-line);border-radius:12px;background:linear-gradient(140deg,#ffffff03,transparent),var(--depth-inner);box-shadow:inset 0 2px 8px #00000018}#recordsView[data-layout=depth] .witness-cell>.arabic{color:var(--depth-ink);font-size:25px;line-height:1.95;text-shadow:0 2px #00000018;margin:8px 0 18px}#recordsView[data-layout=depth] .witness-reading{border-top:1px solid var(--depth-line);padding-top:12px}#recordsView[data-layout=depth] .reading-label{font-size:9px;color:var(--depth-muted)}#recordsView[data-layout=depth] .latin-reading{color:var(--depth-muted);font-size:12px;line-height:1.8}#recordsView[data-layout=depth] .turkish-meaning{color:var(--depth-ink);font-size:13px;line-height:1.8}#recordsView[data-layout=depth] #rows>tr>td:nth-child(4){grid-column:1/5}#recordsView[data-layout=depth] #rows>tr>td:nth-child(5){grid-column:5/-1}#recordsView[data-layout=depth] .verse-ref{border:1px solid var(--depth-line);border-radius:8px;padding:8px 12px;color:var(--card-accent);background:var(--depth-inner);display:inline-flex;min-height:38px;align-items:center;box-sizing:border-box}#recordsView[data-layout=depth] .relationship{max-width:none;display:flex;flex-wrap:wrap;gap:7px;align-items:center}#recordsView[data-layout=depth] .parent-link{color:var(--depth-muted);font-size:10px;line-height:1.7}#recordsView[data-layout=depth] #rows>tr>td:last-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--depth-line);padding-top:13px;position:static}#recordsView[data-layout=depth] .row-actions{display:flex;gap:8px;margin:0}#recordsView[data-layout=depth] .row-actions button,#recordsView[data-layout=depth] .row-open{min-width:42px;min-height:40px;border-radius:9px;background:var(--depth-inner);border:1px solid var(--depth-line);color:var(--depth-accent)}#recordsView[data-layout=depth] :is(a,button,select):focus-visible{outline:2px solid var(--depth-accent);outline-offset:4px}#recordsView:not([data-layout=depth]) .depth-motion{display:none}
html[data-theme=light] #recordsView{--depth-ink:#172b3d;--depth-muted:#4d6378;--depth-surface:#f2f6fa;--depth-inner:#e7eef5;--depth-line:#b4c4d3;--depth-accent:#8b4d14}html[data-theme=light] #recordsView[data-layout=depth] #rows>tr{--card-accent:#8b4d14;background:radial-gradient(ellipse at var(--depth-lx) var(--depth-ly),#ffffffa0,transparent 65%),linear-gradient(145deg,#fcfdff,#e9f0f7)}html[data-theme=light] #recordsView[data-layout=depth] #rows>tr[data-depth-tone="1"],html[data-theme=light] #recordsView[data-layout=depth] #rows>tr[data-depth-tone="4"]{--card-accent:#286677}html[data-theme=light] #recordsView[data-layout=depth] #rows>tr[data-depth-tone="2"],html[data-theme=light] #recordsView[data-layout=depth] #rows>tr[data-depth-tone="5"]{--card-accent:#70528a}html[data-theme=light] #recordsView[data-layout=depth] .witness-cell>.arabic{text-shadow:none}
@media(max-width:1250px){#recordsView[data-layout=depth] #rows{grid-template-columns:1fr}}@media(max-width:640px){.depth-intro{min-height:220px;padding:23px 20px}.depth-intro-copy{max-width:100%}.depth-intro-copy p{max-width:90%}.depth-orbit{opacity:.18;inset-inline-end:-90px;top:15px}.depth-eyebrow{font-size:8px}.depth-intro h2{font-size:28px;max-width:95%}.depth-statistics{gap:16px}.depth-motion{max-width:100%;font-size:10px}#recordsView[data-layout=depth] #rows{padding:18px 0;gap:22px}#recordsView[data-layout=depth] #rows>tr{padding:19px 16px;gap:16px 10px}#recordsView[data-layout=depth] #rows>tr>td:nth-child(1){font-size:31px}#recordsView[data-layout=depth] .lemma-button{font-size:24px}#recordsView[data-layout=depth] #rows>tr>.witness-cell{padding:13px}#recordsView[data-layout=depth] .witness-cell>.arabic{font-size:23px;line-height:2}#recordsView[data-layout=depth] #rows>tr>td:nth-child(4){grid-column:1/5}#recordsView[data-layout=depth] #rows>tr>td:nth-child(5){grid-column:5/-1}}
@media(prefers-reduced-motion:reduce){#recordsView[data-layout=depth] #rows>tr{transform:none!important;transition:none!important}.depth-grid{transform:none}}@media(hover:none),(pointer:coarse){#recordsView[data-layout=depth] #rows>tr{transform:none!important;transition:none!important}}@media print{.depth-intro{display:none}#recordsView[data-layout=depth] #rows{display:block}#recordsView[data-layout=depth] #rows>tr{transform:none!important;box-shadow:none;background:white;color:black;break-inside:avoid;margin-bottom:15px}#recordsView[data-layout=depth] #rows>tr>td{color:black}#recordsView{--depth-ink:#000;--depth-muted:#333;--depth-surface:#fff;--depth-inner:#fff;--depth-line:#bbb;--depth-accent:#000}}
html[lang=ar] .depth-intro h2,html[lang=ar] #recordsView[data-layout=depth] .lemma-button{font-family:'Noto Kufi Arabic',Tahoma,Arial,sans-serif;letter-spacing:normal;line-height:1.8}html[lang=ar] .depth-eyebrow{letter-spacing:normal}
