:root{--ink:#1b2b29;--muted:#6e7b76;--green:#205c51;--green-dark:#16453d;--pale:#e9efea;--paper:#f6f7f3;--line:#dfe6df;--serif:Georgia,'Times New Roman',serif;--sans:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #81ac98;outline-offset:3px}.topbar{border-bottom:1px solid var(--line);background:#fbfcf9}.topbar-inner{max-width:1220px;margin:auto;min-height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.brand{text-decoration:none;display:flex;align-items:center;gap:12px;font-size:20px;letter-spacing:-.8px;font-weight:700}.brand i,.footer-brand i{font-style:normal;font-weight:400;color:#61716a}.brand-mark{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:var(--green);border-radius:8px;color:white;font:700 25px var(--serif);letter-spacing:-3px;padding-right:4px}.brand-mark span{color:#b8d2ba}.workspace-link{font-size:13px;font-weight:600;color:#52655c;text-decoration:none}.workspace-link span{font-size:16px;padding-left:4px}.workspace-link:hover{color:var(--green)}.shell{max-width:1220px;margin:auto;padding:0 28px}.eyebrow,.small-label{font-size:10px;font-weight:750;letter-spacing:1.65px;color:var(--green);text-transform:uppercase}.eyebrow{display:flex;align-items:center;gap:9px}.eyebrow>span{height:7px;width:7px;border-radius:50%;background:#6c9f80}.intro-copy>p{max-width:485px;color:var(--muted);font-size:16px;line-height:1.75;margin:0}.intro-note p{font:italic 16px/1.65 var(--serif);color:#67776e;margin:10px 0 0}.finder{background:#edf2ed;border:1px solid #dfe8df;border-radius:15px 15px 0 0;padding:22px 24px 0}.search{background:#fff;border:1px solid #dce5dd;border-radius:9px;min-height:58px;padding:0 17px;display:flex;align-items:center;gap:12px;color:var(--green)}.search:focus-within{border-color:#87ab96;box-shadow:0 0 0 3px #dcebe0}.search input{border:0;outline:0!important;min-width:0;width:100%;background:transparent;color:var(--ink);font-size:15px}.search input::placeholder{color:#a0aaa3}.search kbd{background:#f3f5f1;border:1px solid #e7ebe6;padding:4px 6px;border-radius:4px;font:11px var(--sans);color:#a0aaa3;white-space:nowrap}.filters{display:flex;align-items:center;gap:9px;overflow:auto;padding:16px 0 14px;scrollbar-width:none}.filters::-webkit-scrollbar{display:none}.filter{white-space:nowrap;border:1px solid transparent;background:transparent;color:#718078;padding:8px 12px;border-radius:7px;font-size:13px;cursor:pointer}.filter span{font-size:10px;margin-left:3px;opacity:.65}.filter.active{background:#dfeae0;color:var(--green-dark);font-weight:700}.filter:hover{color:var(--green-dark)}.filter-hint{margin-left:auto;color:#87968c;white-space:nowrap;font-size:11px}.workspace{min-height:505px;display:grid;grid-template-columns:minmax(260px,37%) minmax(0,1fr);background:#fff;border:1px solid #e1e8e1;border-top:0;border-radius:0 0 15px 15px;overflow:hidden;box-shadow:0 10px 28px rgba(28,57,43,.035)}.results-panel{border-right:1px solid #e7ece7;min-width:0}.panel-heading{display:flex;align-items:end;justify-content:space-between;padding:25px 25px 16px}.panel-heading h2{font:400 27px var(--serif);letter-spacing:-.5px;margin:8px 0 0}.panel-heading h2 span{font:12px var(--sans);color:#8d9a91;margin-left:4px}.sort-note{font-size:11px;color:#9ca99f}.results{max-height:650px;overflow:auto;padding:0 11px 12px;overscroll-behavior:contain}.result{width:100%;border:0;border-radius:8px;background:transparent;text-align:left;padding:14px;display:flex;gap:12px;align-items:center;cursor:pointer;color:var(--ink)}.result:hover{background:#f5f8f4}.result.selected{background:#eaf2eb}.result-copy{flex:1;min-width:0}.result-word{font:400 19px var(--serif);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-description{display:block;color:#88968b;font-size:12px;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-type{font-size:10px;letter-spacing:.6px;font-weight:700;color:#819286;white-space:nowrap}.result-arrow{color:#98b09e;font-size:15px}.state{font-size:14px;color:#7d8b81;line-height:1.6;padding:25px 14px}.detail-panel{min-width:0}.detail-placeholder{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:500px;padding:56px clamp(30px,6vw,85px)}.placeholder-icon{display:grid;place-items:center;color:#6b9a79;background:#eff5ee;width:52px;height:52px;border-radius:14px;font-size:24px;margin-bottom:26px}.detail-placeholder h2{font:400 38px/1.16 var(--serif);letter-spacing:-1px;margin:15px 0;white-space:pre-line}.detail-placeholder p{color:#859389;font-size:14px;line-height:1.7;max-width:300px;margin:0}.detail{padding:38px clamp(28px,5vw,66px) 60px}.detail-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.language-badge{display:inline-block;color:#38745d;background:#e9f2e9;border-radius:5px;padding:6px 9px;font-size:10px;font-weight:750;letter-spacing:1px;text-transform:uppercase}.back{border:0;background:transparent;color:var(--green);font-size:13px;font-weight:600;cursor:pointer;padding:8px 0;display:none}.detail h2{font:400 clamp(38px,4.4vw,58px)/1.1 var(--serif);letter-spacing:-1.6px;margin:20px 0 8px;overflow-wrap:anywhere}.part{color:#809087;font-size:13px}.detail-rule{height:1px;background:#e7ece7;margin:27px 0}.meaning-heading{display:flex;gap:13px;align-items:baseline}.meaning-index{font:italic 18px var(--serif);color:#a2b5a2}.meaning{font:400 19px/1.55 var(--serif);color:#243e35;margin:0}.meaning-label{font-size:11px;color:#7d8e81;margin:8px 0 0 30px}.meaning-block+.meaning-block{margin-top:26px}.detail-section{margin-top:31px}.detail-section>.small-label{color:#8b9b8f;letter-spacing:1.3px}.usage{font-size:14px;color:#718078;line-height:1.8;margin:11px 0 0}.variants{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.variant{background:#f1f5f0;color:#5d7363;border-radius:5px;padding:6px 9px;font-size:12px}.examples{margin:15px 0 4px 30px;display:grid;gap:11px}.example{border-left:2px solid #b9d3be;padding:2px 0 2px 14px}.quotation{font:italic 16px/1.55 var(--serif);color:#35564a;margin:0}.translation{font-size:13px;line-height:1.6;color:#75857a;margin:5px 0 0}.example-source{color:#99a79b;font-size:11px;line-height:1.5;margin-top:6px}.example-source a{text-decoration:underline}.empty-example{margin:13px 0 0 30px;color:#a1aba2;font-size:12px;line-height:1.6}.about{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center;margin:80px 0;padding:40px 0;border-top:1px solid var(--line)}.about h2{font:400 34px var(--serif);letter-spacing:-.8px;margin:14px 0 0}.about p{color:#7b8a7e;font-size:14px;line-height:1.8;max-width:520px;margin:0}footer{background:#e8eee8;border-top:1px solid #dde5dd}.footer-inner{max-width:1220px;margin:auto;padding:30px 28px;display:flex;align-items:center;gap:25px}.footer-brand{font-weight:700;letter-spacing:-.5px}.footer-brand>span{color:var(--green)}.footer-inner p{color:#89978d;font-size:12px;flex:1}.footer-inner a{color:#657c6a;text-decoration:none;font-size:12px;font-weight:600}.footer-inner a:hover{text-decoration:underline}@media(max-width:700px){.topbar-inner{min-height:65px;padding:0 20px}.brand{font-size:18px}.workspace-link{font-size:12px}.shell{padding:0 16px}.intro-copy>p{font-size:14px;line-height:1.7}.finder{padding:14px 14px 0}.search{min-height:53px}.search kbd{display:none}.filters{padding:12px 0}.filter-hint{display:none}.workspace{grid-template-columns:minmax(0,1fr);min-height:380px}.results-panel{border-right:0}.results{max-height:none}.detail-panel:has(.detail-placeholder){display:none}.workspace.has-detail .results-panel{display:none}.workspace.has-detail .detail-panel{display:block}.detail{padding:25px 23px 38px}.detail h2{font-size:42px}.back{display:block}.about{margin:48px 4px;grid-template-columns:1fr;gap:17px;padding-top:30px}.about h2{font-size:30px}.footer-inner{align-items:flex-start;flex-wrap:wrap;gap:10px 15px;padding:25px 20px}.footer-inner p{flex-basis:100%;order:3}.footer-inner a{margin-left:auto}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
:root .example-label{color:#71977b;font-size:9px;letter-spacing:1.1px;font-weight:750;margin-bottom:7px}:root .example-source{color:#6b8170;font-weight:600}
/* Dictionary directory and explicit search directions. */
[hidden]{display:none!important}.dictionary-directory{padding:0 0 42px}.directory-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin:0 0 22px}.directory-heading h2{font:400 35px/1.15 var(--serif);letter-spacing:-.9px;margin:12px 0 0}.directory-heading p{margin:0 0 2px;max-width:380px;color:var(--muted);font-size:13px;line-height:1.65}.dictionary-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.dictionary-card{min-width:0;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:23px 25px 22px;border:1px solid #dfe8df;border-radius:12px;color:var(--ink);background:#fff;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}.dictionary-card:hover{border-color:#a2bfa9;box-shadow:0 5px 18px rgba(28,57,43,.06)}.dictionary-card.active{border-color:#77a48a;background:#f1f7f0;box-shadow:inset 0 0 0 1px #b4d0ba}.card-top{display:flex;justify-content:space-between;align-items:center;width:100%;margin-bottom:19px}.card-code{color:#669179;font-size:10px;font-weight:750;letter-spacing:1.3px}.card-code span{color:#a3b8a7;margin:0 3px}.card-arrow{font-size:20px;color:#83a98e}.card-title{font:400 27px/1.15 var(--serif);letter-spacing:-.6px}.card-description{font-size:13px;line-height:1.6;color:#7b8d80;margin:9px 0 16px}.card-count{margin-top:auto;color:#6c8975;font-size:11px}.card-count strong{font-weight:700}.dictionary-directory.has-selection{padding-bottom:20px}.has-selection .directory-heading{display:none}.has-selection .dictionary-card{padding:14px 18px}.has-selection .card-top{margin-bottom:8px}.has-selection .card-title{font-size:21px}.has-selection .card-description{display:none}.has-selection .card-count{margin-top:8px}.finder{padding-bottom:0}.finder-context{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 2px 17px}.finder-context h2{font:400 24px/1.2 var(--serif);letter-spacing:-.4px;margin:6px 0 0}.directory-back{border:0;background:transparent;padding:6px 0;color:var(--green);font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}.directory-back:hover{text-decoration:underline}.search-direction{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:13px}.direction{border:1px solid #d7e4d9;background:transparent;color:#64786c;border-radius:7px;font-size:12px;font-weight:600;padding:8px 11px;cursor:pointer}.direction:hover{border-color:#a5c3ad;color:var(--green-dark)}.direction.active{border-color:#bdd5c2;background:#dfeae0;color:var(--green-dark)}.search-hint{margin:9px 2px 0;padding:0 0 15px;color:#718679;font-size:12px;line-height:1.5}.dictionary-card,.card-title,.card-description{overflow-wrap:anywhere}@media(max-width:700px){.dictionary-directory{padding-bottom:30px}.directory-heading{display:block}.directory-heading h2{font-size:30px}.directory-heading p{margin-top:10px}.dictionary-cards{gap:10px}.dictionary-card{padding:16px 13px;min-height:155px}.card-top{margin-bottom:14px}.card-title{font-size:22px}.card-description{font-size:12px;margin:8px 0 12px}.has-selection .dictionary-card{min-height:0;padding:12px}.has-selection .card-title{font-size:17px}.has-selection .card-code{font-size:9px}.has-selection .card-top{margin-bottom:5px}.has-selection .card-count{margin-top:6px}.finder-context{margin-bottom:12px}.finder-context h2{font-size:21px}.search-direction{gap:5px}.direction{font-size:11px;padding:8px 9px}.search-hint{font-size:11px}.search kbd{display:none}}
@media(max-width:420px){.dictionary-cards{grid-template-columns:minmax(0,1fr)}.dictionary-card{min-height:0}.card-top{margin-bottom:8px}.card-description{margin-bottom:10px}}

/* Source references belong to the meaning; editorial examples remain separate. */
.meaning-references{margin:2px 0 0 30px;display:flex;justify-content:flex-end}
.example .meaning-references{margin:0}
.reference-toggle{display:inline-grid;place-items:center;width:40px;height:40px;padding:0;border:0;background:transparent;color:#728579;cursor:pointer}
.reference-icon{display:grid;place-items:center;width:18px;height:18px;border:1px solid currentColor;border-radius:50%;font:600 12px/1 sans-serif}
.reference-toggle:hover{color:var(--green-dark)}
.reference-toggle:focus-visible,.reference-close:focus-visible{outline:3px solid #81ac98;outline-offset:3px;border-radius:4px}
.reference-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 32px));max-width:none;max-height:min(75vh,500px);overflow:auto;margin:auto;padding:20px 22px;border:1px solid #dfe8df;border-radius:14px;color:var(--ink);background:#fff;box-shadow:0 16px 45px rgba(28,57,43,.18);overflow-wrap:anywhere}
.reference-dialog::backdrop{background:rgba(20,35,27,.38)}
.reference-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.reference-dialog-title{font:400 22px/1.25 var(--serif);margin:0}
.reference-close{display:grid;place-items:center;width:40px;height:40px;flex:none;border:0;border-radius:8px;background:#eff4ef;color:#516b5b;font-size:23px;cursor:pointer}
.reference-list{display:grid;gap:14px}
.reference-entry{display:grid;gap:2px}
.reference-label{color:#728579;font-size:11px;font-weight:600;line-height:1.5}
.reference-text{display:block;margin:0;color:#5e7468;font-size:12px;line-height:1.65}
a.reference-text{text-decoration:underline;text-underline-offset:2px}
.dictionary-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:900px){.dictionary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.dictionary-cards{grid-template-columns:minmax(0,1fr)}.meaning-references{margin-left:0}}

/* Forms are independent of interface direction; Arabic text remains isolated. */
.ottoman-script-block{margin:20px 0 14px}.ottoman-script-block .small-label{color:#8b9b8f;letter-spacing:1.3px}.ottoman-script-forms{display:flex;flex-wrap:wrap;gap:12px 20px;margin-top:6px}.ottoman-script{font:400 30px/1.5 'Geeza Pro','Noto Naskh Arabic',serif;color:#35564a;unicode-bidi:isolate}

/* Optional script keyboard: keep text direction independent of site layout. */
.search-row{display:flex;gap:9px;align-items:stretch}.search-row>.search{flex:1;min-width:0}.keyboard-toggle{flex:none;border:1px solid #c9dacd;border-radius:9px;background:#f8fbf7;color:var(--green-dark);font-size:12px;font-weight:700;padding:0 15px;cursor:pointer;white-space:nowrap}.keyboard-toggle span{font-size:18px;margin-right:5px;vertical-align:middle}.keyboard-toggle:hover,.keyboard-toggle[aria-expanded="true"]{background:#dfece0;border-color:#9cbca4}.ottoman-keyboard{margin-top:12px;padding:15px;border:1px solid #d8e5d9;border-radius:10px;background:#f8fbf7}.keyboard-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;color:#829589;font-size:11px;line-height:1.4}.keyboard-heading span:first-child{color:var(--green);font-weight:750;letter-spacing:1.2px}.keyboard-keys{direction:rtl;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:7px;margin-top:12px}.keyboard-key,.keyboard-actions button{min-width:42px;height:42px;border:1px solid #d7e4d9;border-radius:7px;background:#fff;color:#2a5548;cursor:pointer}.keyboard-key{font:400 23px/1 'Geeza Pro','Noto Naskh Arabic',serif}.keyboard-key:hover,.keyboard-actions button:hover{background:#e9f2e9;border-color:#a3c1aa}.keyboard-actions{display:flex;gap:7px;justify-content:flex-end;margin-top:10px}.keyboard-actions button{padding:0 14px;font-size:12px;font-weight:650}.keyboard-actions button[data-key-action="space"]{min-width:110px}
@media(max-width:700px){.search-row{flex-wrap:wrap}.search-row>.search{flex:1 1 100%}.keyboard-toggle{min-height:39px;padding:0 12px}.ottoman-keyboard{padding:12px}.keyboard-keys{gap:6px}.keyboard-key{min-width:40px;height:40px}.keyboard-heading span:last-child{font-size:10px}.keyboard-actions{justify-content:stretch}.keyboard-actions button{flex:1}.keyboard-actions button[data-key-action="space"]{min-width:0;flex:2}}

/* Source counts refer only to published, source-attested examples. */
.dictionary-directory{padding-top:48px}
.card-count{display:flex;flex-wrap:wrap;gap:4px 12px}
.card-source-count{white-space:nowrap}
.corpus-sources{margin:0 0 16px;border:1px solid #d7e4d9;border-radius:8px;background:#f8fbf8;color:#2b594a;font-size:12px}
.corpus-sources summary{cursor:pointer;padding:10px 12px;font-weight:700}
.corpus-help{margin:0;padding:0 12px;color:#718679;font-size:11px;line-height:1.5}
.corpus-sources ul{list-style:none;padding:0 12px 8px;margin:8px 0 0}
.corpus-work{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid #e5eee6}
.corpus-work-date{color:#718679;text-align:right}
@media(max-width:700px){.dictionary-directory{padding-top:28px}.corpus-work{display:block}.corpus-work-date{display:block;text-align:left;margin-top:3px}}

.corpus-heading{padding:8px 12px;color:#638375;font-weight:700;letter-spacing:.08em;font-size:10px}.corpus-empty{color:#718679;padding:6px 0}.card-ref-count{white-space:nowrap}
