/* SHEM HAGDOLIM / Edition 1.3 — ENTRY / TRACE / NETWORK
   Research-informed system: editorial column -> live connection -> evidence. */
:root{
  --bg:#f3f2eb;--paper:#fffefa;--card:#fffefa;--ink:#172d28;--muted:#60716a;
  --brand:#215c59;--accent:#b85c42;--warm:#b85c42;--red:#b85c42;--deep:#142f2c;
  --line:#d8e0d6;--person:#247a83;--book:#ac653e;--paper-deep:#e9ede6;
  --wash:#e5eeea;--evidence:#899588;--map-ink:#162c28;
}
html,body{background:var(--bg)!important;color:var(--ink)!important;font-family:Arial,"Noto Sans Hebrew",sans-serif;scroll-behavior:smooth}
body{background-image:none!important}body:before{display:none!important}
button{transition:background-color .17s,border-color .17s,color .17s,transform .17s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #6d9c9a!important;outline-offset:3px}
/* Identity: original linked cross-reference glyph, NOT a text plaque */
.topbar{display:grid!important;grid-template-columns:minmax(250px,1fr) minmax(125px,.58fr) minmax(290px,1fr)!important;min-height:107px!important;gap:18px!important;padding:16px clamp(22px,3.1vw,56px)!important;border-bottom:1px solid #cbd7ce!important;background:#fffefa!important;align-items:center!important;position:relative;z-index:10}
.topbar:after{display:none!important}.brand-link{display:flex;align-items:center;gap:13px;width:max-content;max-width:100%;text-decoration:none!important;color:var(--ink)!important}.project-symbol{width:77px;height:77px;object-fit:contain;flex:none;transition:transform .4s cubic-bezier(.2,.8,.1,1)}.brand-link:hover .project-symbol{transform:rotate(-6deg) translateY(-2px)}
.brand-type{display:flex;flex-direction:column;gap:2px;align-items:start}.brand-kicker{font-size:10px;font-weight:700;letter-spacing:.05em;color:#98745e}.brand-type strong{font:700 clamp(27px,2.5vw,37px)/1.1 David,"Noto Serif Hebrew",serif;letter-spacing:-.025em;color:#132a26}.brand-caption{font:12px/1.4 Arial;color:#49685e}
.masthead-center{text-align:center;font:16px David,serif;color:#45675d;align-self:center}.masthead-spine{display:none}
.header-right{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:18px}.institutional-logos{position:static!important;display:flex!important;align-items:center;gap:10px;opacity:1!important;order:2}
.partner-link{display:inline-flex;border:1px solid #e0e6df;border-radius:50%;height:47px;width:47px;align-items:center;justify-content:center;background:#fff;transition:box-shadow .2s,transform .2s}.partner-link:hover{box-shadow:0 0 0 3px #e3efeb;transform:translateY(-2px)}.partner-link img{height:34px!important;width:34px!important;object-fit:contain!important;filter:none!important}
.topbar-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-end!important;max-width:none!important;gap:7px!important}.topbar-actions .setting{grid-column:auto!important;gap:5px!important}.topbar-actions .setting-check{font-size:11px}.topbar-actions select{height:34px}.topbar-actions button{font-size:11px;padding:9px 10px!important;border-radius:0!important}.topbar-actions .mode-label{font-size:11px;color:#617b70}
.topbar-actions .setting-check:nth-of-type(2){display:none!important}.topbar-actions .setting-check:nth-of-type(3){display:none!important}
main{max-width:1880px!important;padding:0 clamp(18px,3.1vw,56px) 65px!important}.tabs{margin:0!important;min-height:57px;align-items:center;border-bottom:1px solid #cddad1!important}.tab-btn{position:relative;font-size:13px!important;padding:18px 16px!important;font-weight:600!important;color:#5c7169!important}.tab-btn.active{border-color:var(--accent)!important;color:var(--ink)!important;background:#e8eee7!important}.tab-btn:hover{background:#e9eee9!important}.contextbar{background:#f0f3ed;padding:0 15px!important;min-height:49px!important;margin-bottom:20px!important;border-bottom:1px solid #d9e0d8!important}.context-eyebrow{color:#6b776e!important}.context-entity{color:var(--brand)!important}.context-action:last-child{background:var(--brand)!important;color:white!important;padding:8px 12px!important;border-radius:0!important}
.panel{display:none}.panel.active{display:block}
/* Home: unlike old landing, the map is based on real adjacency and is clickable */
.folio-hero{display:grid;grid-template-columns:minmax(350px,.77fr) minmax(0,1.23fr);background:var(--paper);border:1px solid #d9e3da;min-height:690px;box-shadow:0 21px 65px rgba(17,49,42,.055)}
.folio-copy{padding:clamp(35px,4.2vw,73px) clamp(30px,4.2vw,73px);display:flex;flex-direction:column;justify-content:center;min-width:0;background:linear-gradient(130deg,#fffefa,#f9f9f4 85%);position:relative}
.folio-copy:before{content:"";position:absolute;right:0;top:0;bottom:0;width:4px;background:linear-gradient(to bottom,#2d777a 0 35%,#b85c42 35% 60%,#d3c4a0 60% 100%)}
.folio-number{font-size:11px;display:flex;gap:10px;align-items:center;color:#8a6857;font-weight:700;letter-spacing:.06em}.folio-number b{margin-inline-start:auto;font:11px Georgia,serif;color:#839187}.thread-cross{position:relative;width:30px;height:22px;display:inline-block;background:linear-gradient(90deg,transparent 47%,#b75d42 47%,#b75d42 54%,transparent 54%)}.thread-cross:before,.thread-cross:after{content:"";position:absolute;top:6px;height:1.5px;width:28px;right:0;background:#286962;transform:rotate(30deg)}.thread-cross:after{transform:rotate(-30deg);top:14px}
.folio-copy h2{display:flex;flex-direction:column;gap:8px;font:700 clamp(42px,4.8vw,73px)/1.13 David,"Noto Serif Hebrew",serif;color:var(--ink);letter-spacing:-.048em;margin:27px 0 27px!important;max-width:620px}
.folio-copy h2 span{display:block}.title-echo{color:#397a77}.folio-lead{font-size:clamp(14px,1.16vw,17px);line-height:1.94;color:#4c6159;max-width:550px;margin:0 0 30px}
.primary-search{position:relative;max-width:570px}.primary-search label{display:block;margin-bottom:12px;font-size:13px;font-weight:700;color:#284b42}.search-input-wrap{display:flex;height:56px;border:1.5px solid #9bb8ad;background:#fff;align-items:stretch;transition:box-shadow .2s}.search-input-wrap:focus-within{box-shadow:0 0 0 4px #e2efea}.search-symbol{display:grid;place-items:center;font-size:32px;color:#447970;padding:0 12px}.search-input-wrap input{flex:1;min-width:0;border:0!important;box-shadow:none!important;outline:0!important;font-size:14px;background:transparent!important;padding:0 0 0 6px!important}.search-input-wrap button{flex:none;background:var(--brand)!important;color:white!important;border:0!important;padding:0 19px!important;font-size:12px;font-weight:700}.search-input-wrap button:hover{background:#123e3d!important}
.hero-search-results:not([hidden]){position:absolute;top:100%;z-index:60;inset-inline:0;background:white;border:1px solid #b8cfc3;box-shadow:0 18px 40px #1b383127;max-height:325px;overflow:auto}.hero-result{width:100%;background:white!important;border:0!important;border-bottom:1px solid #eff1ec!important;text-align:start;display:flex;justify-content:space-between;gap:8px;padding:12px!important}.hero-result:hover,.hero-result.active{background:#eaf2ee!important}.hero-result b{font-size:13px}.hero-result small{color:#6d857c;font-size:10px;direction:ltr}.hero-no-results{padding:15px;font-size:12px;color:#69766c}
.example-links{display:flex;gap:11px;align-items:center;flex-wrap:wrap;margin-top:18px;font-size:12px}.example-links>span{color:#809184;font-size:10px;flex-basis:100%}.example-links button{background:transparent!important;border:0!important;padding:4px 0!important;border-bottom:1px solid #adc3b8!important;color:var(--brand)!important;font-size:12px!important}.example-links button:hover{color:var(--accent)!important;border-color:var(--accent)!important}
.folio-map{min-width:0;background:#172c28;color:#eff3ee;position:relative;display:flex;flex-direction:column;padding:29px clamp(17px,2vw,35px) 22px;overflow:hidden}
.folio-map:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 58% 48%,#31564a55,transparent 63%),linear-gradient(0deg,transparent 98%,#ffffff0b 100%);background-size:auto,50px 50px}
.folio-map-header{display:flex;justify-content:space-between;gap:15px;align-items:end;position:relative}.folio-map-index{font:10px Georgia,serif;letter-spacing:.14em;color:#b9d3c5}.folio-map-header h3{font:700 31px David,serif;line-height:1.25;color:#fff;margin:9px 0 0}.folio-map-header p{color:#c4d3c9;font-size:12px;max-width:205px;line-height:1.55;margin:0}
.map-stage{position:relative;flex:1;min-height:500px;display:flex;align-items:stretch}.map-stage svg{width:100%;height:100%;overflow:visible;display:block;touch-action:pan-y}.map-loading{position:absolute;inset:0;display:grid;place-items:center;color:#bad4c5;font-size:13px}.map-loading[hidden]{display:none}
.hero-link{fill:none;stroke:#668a78;stroke-width:1.5;opacity:.46;transition:stroke .18s,stroke-width .18s,opacity .18s}.hero-link.explicit{stroke:#d49873;stroke-dasharray:0}.hero-link.mention{stroke:#7eada6}.hero-link.co{stroke:#78918a;stroke-dasharray:3 6}.hero-link.dim{opacity:.07}.hero-link.glow{opacity:.95;stroke-width:2.7}
.hero-node{cursor:pointer;outline:none}.hero-node:hover .hero-node-hit,.hero-node:focus-visible .hero-node-hit{stroke:#fff;stroke-width:2.5}.hero-node.dim{opacity:.2}.hero-node-label{fill:#e7eee7;font-size:14px;font-family:Arial,sans-serif;pointer-events:none}.hero-node-id{fill:#86a79b;font:10px Georgia,serif;pointer-events:none;letter-spacing:.04em}.hero-node-hit{stroke:#263e39;stroke-width:3;transition:stroke .2s,stroke-width .2s}.hero-node.person .hero-node-hit{fill:#3faaa6}.hero-node.book .hero-node-hit{fill:#e8a47a}.hero-node.hub .hero-node-hit{fill:#fbefc9;stroke:#3b5b4c;stroke-width:7}.hero-hub-label{fill:#fff6d9;font:700 25px David,serif;text-anchor:middle;pointer-events:none}.hero-hub-caption{fill:#abcbb6;font:11px Arial;letter-spacing:.1em;text-anchor:middle;pointer-events:none}.hero-network-head{fill:#9fbdac;font:12px Arial;letter-spacing:.1em}.hero-guide-line{stroke:#789484;stroke-width:1;stroke-dasharray:2 8;opacity:.4}
.map-tooltip:not([hidden]){position:absolute;inset:auto auto 20px 20px;background:#f9faf4;border:1px solid #abbaa8;color:#213a31;padding:12px 16px;max-width:320px;min-width:180px;z-index:2;pointer-events:none;box-shadow:0 6px 22px #061a1866;font-size:13px}.map-tooltip span{display:block;margin-top:5px;font-size:10px;color:#697d72}
.map-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #ffffff28;position:relative;padding-top:18px}.edge-modes{display:flex;gap:3px;flex-wrap:wrap}.edge-modes button{color:#c3d5cd!important;background:transparent!important;border:1px solid #6f8e814e!important;border-radius:0!important;font-size:11px!important;padding:9px 12px!important}.edge-modes button.active{background:#dcece2!important;color:#173a35!important;border-color:#dcece2!important}.map-next{font-size:12px!important;color:#fbeaca!important;background:transparent!important;border:0!important;border-bottom:1px solid #bdab8d!important;padding:8px 0!important}
.argument-strip{display:grid;grid-template-columns:1.42fr repeat(3,1fr);gap:0;border:1px solid #d8e0d8;border-top:0;background:#edf1eb}.argument-strip>div{padding:25px 23px;border-inline-start:1px solid #d8e0d8;min-width:0}.argument-strip .argument-heading{border:0}.line-kicker{font:10px Georgia,serif;letter-spacing:.13em;color:#a5644e}.argument-heading h3{font:700 27px David,serif;margin:11px 0 0;color:var(--ink)}.argument-strip b{font-size:13px;color:#1d4b43;display:block;margin:10px 0 6px}.argument-strip p{font-size:12px;color:#65796e;margin:0;line-height:1.6}.trace-symbol{position:relative;display:block;height:23px;width:53px}.trace-symbol:before{content:"";position:absolute;top:10px;right:5px;width:43px;border-top:1.5px solid #428a84}.trace-symbol:after{content:"";position:absolute;top:5px;right:1px;width:10px;height:10px;border-radius:100%;background:#428a84}.trace-two:before{border-top-style:dashed}.trace-two:after{box-shadow:29px 0 0 #a9b9a9}.trace-three:before{border-color:#b85c42;border-top-width:2px}.trace-three:after{background:#b85c42;box-shadow:29px 0 0 #b85c42}
.folio-after{display:flex;justify-content:space-between;gap:32px;align-items:center;margin:26px 0 0;padding:18px 6px 28px;border-bottom:1px solid #d0dbd1}.folio-after p{font-size:13px;line-height:1.85;max-width:640px;color:#65766d;margin:0}.folio-after>div{display:flex;gap:8px;flex-wrap:wrap}.route-action{background:#fffefa!important;border:1px solid #b9d0c1!important;color:var(--brand)!important;padding:12px 16px!important;border-radius:0!important;font-size:12px!important}.route-action:hover{background:#dcebe5!important}
/* Integrated visualizations and legacy analytical tooling */
#tab-lenses>.lenses{padding-top:10px!important}.lenses-intro{border-bottom:2px solid #b6d0c1;padding-bottom:24px!important;margin-bottom:20px!important}.lenses-intro h2{font:700 42px David,serif;color:var(--ink)}.lens-tab{border-radius:0!important;border:1px solid #d1ded5!important;background:#f8faf4!important}.lens-tab.active{background:#1c4440!important;color:#fff!important}.research-workbench{border:1px solid #d5dfd5!important}.research-margin{background:#e9efea!important;border-color:#d7e3db!important}.lens-heading{background:#f7faf5!important;border-bottom:1px solid #d5ded6}.lens-heading h3{color:#1c4540!important}.atlas-viz-stage{background:#fbfcf9!important}.atlas-viz-frame{background:#fffefa}.viz-zoom-button,.zoom-figure,.inline-zoom-button{color:var(--brand)!important;border-color:#a9c6b9!important;background:#eef6ee!important}
.card{background:#fffefa!important;border:1px solid #d8e4db!important;border-radius:0!important;box-shadow:none!important}.card h2,.card h3{color:var(--ink)!important;font-family:David,"Noto Serif Hebrew",serif!important}.help-card{background:#e7eeea!important;border-inline-start:4px solid #2d7b77!important}.workspace-bridge{background:#dfece6!important;border-inline-start:3px solid #31847d!important}.goto-lens{color:#246e68!important}.table th{background:#e8f0e9!important;border-color:#d4e2d7!important;color:#24463c!important}.table tbody tr{cursor:pointer}.table tbody tr:hover{background:#e5f3ea!important}.toolbar input,.toolbar select{border-radius:0!important;border-color:#bacfc1!important;background:#fff!important}.btn,.btn.ghost{border-radius:0!important}.btn:not(.ghost){background:#235e59!important;border-color:#235e59!important}.btn.ghost{color:#286962!important;border-color:#a6c1b5!important;background:#fffefa!important}#network,#egoNetwork,#treeNetwork,#geoMap{background:#fffefa!important;border-radius:0!important;border:1px solid #d8e4db!important}
footer{background:none!important;border-top:1px solid #d7e2d8!important}
/* responsive design: search and interactive SVG NEVER disappear on mobile */
@media(max-width:1320px){.topbar{grid-template-columns:auto 1fr!important}.masthead-center{display:none}.header-right{justify-content:flex-end}.folio-hero{grid-template-columns:minmax(320px,.83fr) minmax(0,1.17fr)}.folio-copy{padding:38px 34px}.folio-map{padding:22px 17px}.hero-node-label{font-size:13px}.map-stage{min-height:460px}.folio-copy h2{font-size:clamp(43px,4vw,59px)}}
@media(max-width:940px){.topbar{grid-template-columns:1fr!important}.header-right{justify-content:space-between}.topbar-actions{justify-content:flex-start!important}.folio-hero{grid-template-columns:1fr}.folio-copy{padding:39px 30px}.folio-copy:before{left:0;right:0;top:auto;bottom:0;height:3px;width:auto;background:linear-gradient(90deg,#2d777a,#b85c42,#d3c4a0)}.folio-copy h2{font-size:clamp(42px,6vw,68px)}.folio-map{min-height:580px}.map-stage{min-height:450px}.argument-strip{grid-template-columns:repeat(3,1fr)}.argument-heading{grid-column:1/-1;border-bottom:1px solid #d8e0d8!important}.folio-after{flex-direction:column;align-items:start}}
@media(max-width:600px){.topbar{padding:13px 17px!important;gap:9px!important}.project-symbol{height:57px;width:57px}.brand-type strong{font-size:29px}.brand-kicker{font-size:9px}.brand-caption{font-size:11px}.partner-link{width:35px;height:35px}.partner-link img{width:24px!important;height:24px!important}.topbar-actions{width:100%}.mobile-settings-toggle{display:inline-block!important;font-size:11px}.topbar-actions:not(.expanded){display:none!important}.topbar-actions.expanded{display:flex!important}.topbar-actions.expanded .setting-check{display:inline-flex!important}.topbar-actions .setting-check:nth-of-type(2),.topbar-actions .setting-check:nth-of-type(3){display:none!important}main{padding:0 11px 40px!important}.tabs{min-height:50px}.tab-btn{padding:13px 11px!important}.contextbar{flex-wrap:wrap;gap:7px;padding:8px 6px!important}.context-entity{max-width:170px}.context-action{font-size:11px!important}.folio-copy{padding:27px 23px}.folio-number{font-size:10px}.folio-copy h2{font-size:43px!important;margin:20px 0!important}.folio-lead{font-size:14px;line-height:1.75;margin-bottom:20px}.search-input-wrap{height:53px}.search-input-wrap button{padding:0 11px!important}.folio-map{padding:16px 7px!important;min-height:520px}.folio-map-header{padding:0 13px;align-items:start}.folio-map-header p{font-size:10px;max-width:125px}.folio-map-header h3{font-size:25px}.map-stage{min-height:390px}.hero-node-label{font-size:13px}.map-bottom{flex-wrap:wrap;padding:12px}.edge-modes{width:100%}.edge-modes button{font-size:10px!important;padding:8px 9px!important}.map-next{margin-inline-start:auto}.argument-strip{grid-template-columns:1fr!important}.argument-strip>div{padding:12px 17px!important;border:0;border-bottom:1px solid #d8e0d8}.argument-heading{grid-column:auto}.argument-heading h3{font-size:23px}.folio-after{padding:20px 5px}.research-margin{display:block!important}.lens-tab b{font-size:17px!important}.lenses-intro h2{font-size:34px!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Final small-screen and masthead refinements */
.topbar{grid-template-columns:minmax(260px,.8fr) minmax(520px,1.2fr)!important;min-height:90px!important}
.masthead-center{display:none!important}.header-right{flex-wrap:nowrap!important;gap:12px!important}.institutional-logos{order:0!important;flex:none!important}.topbar-actions{flex-wrap:nowrap!important;gap:6px!important;white-space:nowrap}
html,body{overflow-x:hidden}
.search-input-wrap input{width:0!important;min-width:0!important;flex:1 1 0!important}.search-input-wrap button{width:auto!important;min-width:94px;white-space:nowrap;flex:0 0 auto!important}
@media(max-width:1100px){.topbar{grid-template-columns:1fr!important}.header-right{justify-content:space-between!important}.topbar-actions{flex-wrap:wrap!important;justify-content:flex-end!important}}
@media(max-width:600px){.header-right{flex-wrap:wrap!important}.topbar-actions.expanded{flex-wrap:wrap!important}.folio-map{max-width:100%;min-width:0!important}.map-stage{overflow-x:auto;overflow-y:hidden;min-height:405px}.map-stage svg{min-width:615px;height:380px}.search-input-wrap input{font-size:12px!important}.search-input-wrap button{min-width:88px;padding:0 9px!important}}
.entity-insight:not([hidden]){display:grid;grid-template-columns:minmax(260px,1fr) auto auto;align-items:center;gap:26px;background:#dcebe3;border:1px solid #acc9ba;border-inline-start:5px solid var(--brand);padding:20px 26px;margin:0 0 18px;min-height:113px}
.entity-insight-heading h2{font:700 35px/1.18 David,serif;margin:5px 0;color:var(--ink)}.entity-category{font:10px Arial;letter-spacing:.07em;color:#598176}.entity-insight-heading>span:last-child{font:11px Georgia;color:#698277}.entity-insight-numbers{display:flex;gap:32px}.entity-insight-numbers>div{display:flex;flex-direction:column;align-items:center;gap:5px}.entity-insight-numbers strong{font:700 26px/1 Georgia,serif;color:#1a514d}.entity-insight-numbers span{font-size:11px;color:#657d72;white-space:nowrap}.entity-insight-actions{display:flex;flex-direction:column;gap:5px}.entity-insight-actions button{font-size:12px;padding:7px 11px;border:1px solid #a3bbad;background:#fff;color:#245f58;white-space:nowrap}
@media(max-width:1100px){.entity-insight:not([hidden]){grid-template-columns:1fr auto}.entity-insight-actions{grid-column:1/-1;flex-direction:row}}
@media(max-width:600px){.entity-insight:not([hidden]){display:flex;flex-direction:column;align-items:stretch;padding:18px;gap:14px}.entity-insight-numbers{justify-content:space-between;gap:12px}.entity-insight-heading h2{font-size:28px}.entity-insight-actions{flex-direction:row;flex-wrap:wrap}}
.entity-open{border:none!important;border-bottom:1px solid #8cb9ab!important;background:transparent!important;color:#1d6b66!important;font:inherit!important;font-weight:700!important;cursor:pointer;padding:3px 0!important;text-align:start;white-space:normal}.entity-open:hover{color:#ae563e!important;border-color:#ae563e!important}
@media(max-width:600px){.map-stage:after{content:"↔";position:sticky;right:0;top:0;align-self:flex-start;z-index:2;pointer-events:none;color:#d9e6df;background:#18342f;font-size:16px;padding:3px 7px;opacity:.78}}
/* Do not force scholarly names to wrap into tiny table columns */
#nodeTableWrap{overflow-x:auto;scrollbar-width:thin}
#nodeTableWrap table{min-width:1060px;table-layout:auto}
#nodeTableWrap th:nth-child(2),#nodeTableWrap td:nth-child(2){min-width:230px;max-width:340px}
#nodeTableWrap th,#nodeTableWrap td{white-space:nowrap}
#nodeTableWrap td:nth-child(2){white-space:normal}
#nodeTableWrap .entity-open{max-width:320px;white-space:normal!important;line-height:1.5}
