:root{--hsr-navy:#041f39;--hsr-navy2:#062a4d;--hsr-gold:#d8a62e;--hsr-cream:#fff7e8;--hsr-blue:#2676b9;--hsr-teal:#087f78;--hsr-purple:#6653ad;--hsr-burgundy:#8e3f5b;--hsr-green:#257348;--hsr-ink:#173757;--hsr-muted:#607489;--hsr-line:rgba(6,42,77,.15);--hsr-shadow:0 25px 75px rgba(4,31,57,.14)}
.hsc-research-hub{max-width:1500px;margin:30px auto;padding:0 12px;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--hsr-ink)}.hsc-research-hub *{box-sizing:border-box}.hsc-research-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,.6fr);gap:28px;align-items:center;overflow:hidden;padding:clamp(30px,6vw,76px);border:3px solid var(--hsr-gold);border-radius:32px;background:radial-gradient(circle at 92% 10%,rgba(102,83,173,.3),transparent 30%),linear-gradient(135deg,#041f39,#0b416e);color:#fff;box-shadow:var(--hsr-shadow)}
.hsc-research-kicker{margin:0 0 8px;color:#f1cd70;font-size:11px;font-weight:950;letter-spacing:.12em;text-transform:uppercase}.hsc-research-hero h1,.hsc-research-panel-heading h2{margin:.08em 0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(40px,6vw,76px);line-height:1.01}.hsc-research-foundation{max-width:920px;font-size:1.08rem;line-height:1.75;color:#d9e7f1}.hsc-research-foundation strong{color:#fff7e8}.hsc-research-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.hsc-research-actions button,.hsc-research-searchbar button,.hsc-research-ask-form button,.hsc-research-library-form button,.hsc-research-sefaria-form button,.hsc-research-note-form button{border:0;border-radius:13px;padding:13px 18px;background:linear-gradient(135deg,#ebc75f,#b9780a);color:#071d30;font:inherit;font-weight:950;cursor:pointer;box-shadow:0 12px 27px rgba(183,120,10,.24)}
.hsc-research-orbit{position:relative;width:min(330px,70vw);aspect-ratio:1;margin:auto;border:1px solid rgba(255,255,255,.2);border-radius:50%;animation:hsrFloat 7s ease-in-out infinite}.hsc-research-orbit:before,.hsc-research-orbit:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(216,166,46,.38)}.hsc-research-orbit:before{inset:16%}.hsc-research-orbit:after{inset:31%}.hsc-research-orbit strong{position:absolute;inset:0;display:grid;place-items:center;font-size:70px;color:var(--hsr-gold);text-shadow:0 0 30px rgba(216,166,46,.42)}.hsc-research-orbit span{position:absolute;padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.1);backdrop-filter:blur(12px);font-weight:900}.hsc-research-orbit span:nth-child(1){top:8%;left:38%}.hsc-research-orbit span:nth-child(2){top:44%;right:-4%}.hsc-research-orbit span:nth-child(3){bottom:6%;left:38%}.hsc-research-orbit span:nth-child(4){top:44%;left:-5%}@keyframes hsrFloat{50%{transform:translateY(-8px) rotate(2deg)}}
.hsc-research-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:18px 0}.hsc-research-stats article{padding:20px;border:1px solid var(--hsr-line);border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(6,42,77,.07)}.hsc-research-stats span{display:block;color:var(--hsr-muted);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.hsc-research-stats strong{display:block;margin-top:7px;font-size:clamp(27px,4vw,40px);color:var(--hsr-navy2)}
.hsc-research-tabs{position:sticky;top:calc(var(--hsc-rh-height,0px) + var(--hsc-rh-top,0px));z-index:15;display:flex;gap:7px;overflow:auto;padding:10px;margin:18px 0;border:1px solid var(--hsr-line);border-radius:17px;background:rgba(255,255,255,.9);backdrop-filter:blur(20px);box-shadow:0 12px 34px rgba(6,42,77,.08)}.hsc-research-tabs button{flex:0 0 auto;white-space:nowrap;border:0;border-radius:11px;padding:11px 15px;background:transparent;color:var(--hsr-navy2);font-weight:900;cursor:pointer}.hsc-research-tabs button.is-active{background:var(--hsr-navy2);color:#fff}.hsc-research-hub>[data-hsc-research-panel]{padding:clamp(20px,3vw,38px);border:1px solid var(--hsr-line);border-radius:25px;background:linear-gradient(135deg,#f8fbfd,#fffaf0);box-shadow:0 16px 50px rgba(6,42,77,.07);animation:hsrIn .28s ease}@keyframes hsrIn{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
.hsc-research-search-form,.hsc-research-ask-form,.hsc-research-library-form,.hsc-research-sefaria-form,.hsc-research-note-form{display:grid;gap:14px}.hsc-research-search-form>label,.hsc-research-ask-form>label,.hsc-research-sefaria-form>label,.hsc-research-note-form>label{font-family:Georgia,serif;font-size:clamp(24px,3vw,38px);font-weight:800;color:var(--hsr-navy2)}.hsc-research-searchbar{display:grid;grid-template-columns:1fr auto;gap:10px}.hsc-research-searchbar input,.hsc-research-filters select,.hsc-research-ask-form textarea,.hsc-research-ask-form select,.hsc-research-library-form input,.hsc-research-library-form select,.hsc-research-sefaria-form input,.hsc-research-sefaria-form select,.hsc-research-note-form input,.hsc-research-note-form textarea{width:100%;padding:14px;border:2px solid #bfd0dc;border-radius:13px;background:#fff;color:var(--hsr-ink);font:inherit}.hsc-research-searchbar input{font-size:1.05rem}.hsc-research-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.hsc-research-filters label,.hsc-research-ask-options label{display:grid;gap:5px;color:var(--hsr-navy2);font-size:12px;font-weight:900;text-transform:uppercase}.hsc-research-tip{margin:0;color:var(--hsr-muted)}
.hsc-research-search-output,.hsc-research-ask-output,.hsc-research-library-output,.hsc-research-sefaria-output,.hsc-research-notes-output{margin-top:20px}.hsc-research-empty{padding:28px;border:2px dashed #aabecb;border-radius:20px;background:rgba(255,255,255,.65);color:var(--hsr-muted)}.hsc-research-empty strong{display:block;color:var(--hsr-navy2);font-size:20px}.hsc-research-results-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0 12px}.hsc-research-results-head h2{margin:0;font-family:Georgia,serif;color:var(--hsr-navy2)}
.hsc-research-result-grid,.hsc-research-work-grid,.hsc-research-source-grid,.hsc-research-ai-sources,.hsc-research-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hsc-research-result,.hsc-research-work,.hsc-research-source-grid article,.hsc-research-ai-summary,.hsc-research-ai-source,.hsc-research-compare-card,.hsc-research-note-card,.hsc-sefaria-card{padding:20px;border:1px solid var(--hsr-line);border-radius:18px;background:#fff;box-shadow:0 9px 25px rgba(6,42,77,.05)}.hsc-research-result{border-left:7px solid var(--hsr-blue)}.hsc-research-result[data-scope*="Dead Sea"]{border-left-color:var(--hsr-purple)}.hsc-research-result[data-scope*="Holy Bible"]{border-left-color:var(--hsr-gold)}.hsc-research-result-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.hsc-research-badges{display:flex;gap:5px;flex-wrap:wrap}.hsc-research-badge{display:inline-block;padding:5px 8px;border-radius:999px;background:#eaf2f8;color:var(--hsr-navy2);font-size:10px;font-weight:900}.hsc-research-badge.scope{background:#fff2c7}.hsc-research-result h3,.hsc-research-work h3,.hsc-research-source-grid h3,.hsc-research-compare-card h3{margin:.45em 0 .2em;font-family:Georgia,serif;font-size:25px;color:var(--hsr-navy2)}.hsc-research-result blockquote,.hsc-research-compare-card blockquote,.hsc-sefaria-card blockquote{margin:13px 0;font-family:Georgia,serif;font-size:1.08rem;line-height:1.7;color:#173757}.hsc-research-result-meta,.hsc-research-work-meta{display:flex;gap:6px;flex-wrap:wrap;color:var(--hsr-muted);font-size:11px}.hsc-research-result-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.hsc-research-result-actions button,.hsc-research-work a{border:1px solid #b9ccd9;border-radius:10px;padding:8px 11px;background:#f6f9fb;color:var(--hsr-navy2);font-weight:850;text-decoration:none;cursor:pointer}
.hsc-research-work{border-top:5px solid var(--hsr-teal)}.hsc-research-work[data-status="lost_reference"]{border-top-color:var(--hsr-burgundy)}.hsc-research-work-status{display:inline-block;padding:5px 8px;border-radius:999px;background:#edf7f2;color:var(--hsr-green);font-size:10px;font-weight:900;text-transform:uppercase}.hsc-research-work[data-status="metadata_only"] .hsc-research-work-status,.hsc-research-work[data-status="licensed_import"] .hsc-research-work-status{background:#fff1ed;color:#8b3b22}.hsc-research-panel-heading{max-width:1000px;margin-bottom:22px}.hsc-research-panel-heading h2{font-size:clamp(36px,5vw,62px);color:var(--hsr-navy2)}.hsc-research-panel-heading>p:last-child{font-size:1.04rem;line-height:1.7;color:var(--hsr-muted)}.hsc-research-ask-options{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}.hsc-research-ai-summary{border:2px solid var(--hsr-gold);background:linear-gradient(135deg,#fff8e8,#fff)}.hsc-research-ai-summary h3{font-family:Georgia,serif;font-size:30px;color:var(--hsr-navy2)}.hsc-research-ai-summary ul{line-height:1.65}.hsc-research-confidence{display:inline-flex;padding:7px 11px;border-radius:999px;background:var(--hsr-navy2);color:#fff;font-weight:900}.hsc-research-external-answer{margin-top:14px;padding:20px;border-left:7px solid var(--hsr-purple);border-radius:16px;background:#f6f2ff;line-height:1.7}.hsc-research-ai-source strong,.hsc-research-ai-source span{display:block}.hsc-research-ai-source span{color:var(--hsr-muted);font-size:11px}
.hsc-research-compare-card{border-top:6px solid var(--hsr-gold)}.hsc-research-compare-card button{border:0;background:transparent;color:var(--hsr-burgundy);font-weight:900;cursor:pointer}.hsc-research-library-form{grid-template-columns:1fr minmax(220px,.35fr) auto}.hsc-research-source-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hsc-research-source-grid article{border-top:5px solid var(--hsr-gold)}.hsc-research-source-grid span{display:inline-block;margin-top:10px;padding:5px 8px;border-radius:999px;background:#e9f3fa;font-size:10px;font-weight:900}.hsc-research-sefaria-form{grid-template-columns:1fr 180px auto;align-items:end;margin-top:22px}.hsc-research-sefaria-form label{font-size:20px}.hsc-sefaria-card{margin-top:13px;border-left:7px solid var(--hsr-teal)}.hsc-research-note-form{max-width:900px}.hsc-research-note-form>label{font-size:18px;font-family:inherit}.hsc-research-note-card{margin-top:11px}.hsc-research-note-card time{color:var(--hsr-teal);font-size:11px;font-weight:900}.hsc-research-note-card h3{color:var(--hsr-navy2)}.hsc-research-status{display:flex;gap:8px;flex-wrap:wrap;padding:14px;border-radius:14px;background:#fff8e8}.hsc-research-status>*{padding:5px 8px;border-radius:999px;background:#fff}.hsc-research-loading{padding:24px;border-radius:17px;background:#fff;color:var(--hsr-navy2);font-weight:900}.hsc-research-error{padding:16px;border-radius:14px;background:#fff0ec;color:#7b2515;border-left:6px solid #b64a2e}
@media(max-width:1000px){.hsc-research-hero{grid-template-columns:1fr}.hsc-research-orbit{display:none}.hsc-research-source-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.hsc-research-stats{grid-template-columns:repeat(2,1fr)}.hsc-research-result-grid,.hsc-research-work-grid,.hsc-research-ai-sources,.hsc-research-compare-grid,.hsc-research-source-grid{grid-template-columns:1fr}.hsc-research-filters{grid-template-columns:1fr}.hsc-research-searchbar,.hsc-research-ask-options,.hsc-research-library-form,.hsc-research-sefaria-form{grid-template-columns:1fr}.hsc-research-hub>[data-hsc-research-panel]{padding:18px 12px}}@media(max-width:470px){.hsc-research-stats{grid-template-columns:1fr}.hsc-research-hero{border-radius:22px;padding:28px 20px}.hsc-research-hero h1{font-size:42px}}@media(prefers-reduced-motion:reduce){.hsc-research-hub *{animation:none!important;scroll-behavior:auto!important}}

.hsc-research-suggestions{position:relative;z-index:30;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:-8px;padding:10px;border:1px solid var(--hsr-line);border-radius:15px;background:#fff;box-shadow:0 20px 45px rgba(4,31,57,.17)}
.hsc-research-suggestions[hidden]{display:none}.hsc-research-suggestions button{display:grid;grid-template-columns:80px 1fr;gap:8px;align-items:center;border:0;border-radius:10px;padding:10px;background:#f5f8fa;color:var(--hsr-navy2);text-align:left;cursor:pointer}.hsc-research-suggestions button:hover{background:#eaf3fa}.hsc-research-suggestions span{font-size:9px;font-weight:950;text-transform:uppercase;color:var(--hsr-teal)}
.hsc-research-query-help{border:1px solid var(--hsr-line);border-radius:14px;background:#fff}.hsc-research-query-help summary{padding:13px 15px;cursor:pointer;color:var(--hsr-navy2);font-weight:900}.hsc-research-query-help>div,.hsc-research-query-help>p{padding:0 15px 15px}.hsc-research-query-help>div{display:flex;gap:7px;flex-wrap:wrap}.hsc-research-query-help code{padding:6px 9px;border-radius:8px;background:#041f39;color:#f4d271}
.hsc-research-insight-ribbon{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px;padding:15px;border:1px solid rgba(102,83,173,.25);border-radius:16px;background:linear-gradient(135deg,#f6f2ff,#fffaf0)}.hsc-research-insight-ribbon>div{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.hsc-research-insight-ribbon strong{width:100%;color:var(--hsr-navy2)}.hsc-research-insight-ribbon button{border:1px solid #c4b9e9;border-radius:999px;padding:6px 9px;background:#fff;color:#4c3c91;font-weight:850;cursor:pointer}
.hsc-research-lens-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.hsc-research-lens-grid article{padding:18px;border:1px solid var(--hsr-line);border-radius:16px;background:#fff}.hsc-research-lens-grid h3{margin:.1em 0;color:var(--hsr-navy2);font-family:Georgia,serif}.hsc-research-lens-grid ul{line-height:1.55}
@media(max-width:760px){.hsc-research-suggestions,.hsc-research-insight-ribbon,.hsc-research-lens-grid{grid-template-columns:1fr}}

/* Batch M: public form names, pale-panel contrast and keyboard targets. */
.hsc-research-panel-heading .hsc-research-kicker{color:var(--hsr-navy2)}
.hsc-research-library-form,.hsc-research-sefaria-form{align-items:end;grid-template-columns:minmax(0,1fr) minmax(0,.6fr) auto}
.hsc-research-library-form>label,.hsc-research-sefaria-form>label{display:grid;gap:6px;min-width:0;font:700 16px/1.5 system-ui,sans-serif;color:var(--hsr-navy2)}
.hsc-research-hub :is(.hsc-research-search-form,.hsc-research-ask-form,.hsc-research-library-form,.hsc-research-sefaria-form) :is(input,select,textarea){min-width:0;min-height:44px;font-size:16px;border-color:#607489}
.hsc-research-hub :is(.hsc-research-search-form,.hsc-research-ask-form,.hsc-research-library-form,.hsc-research-sefaria-form) :is(input,textarea)::placeholder{color:#607489;opacity:1}
.hsc-research-hub :is(.hsc-research-search-form,.hsc-research-ask-form,.hsc-research-library-form,.hsc-research-sefaria-form) :is(input,select,textarea):hover:not(:disabled):not([aria-invalid="true"]){border-color:var(--hsr-navy2)}
.hsc-research-hub :is(.hsc-research-search-form,.hsc-research-ask-form,.hsc-research-library-form,.hsc-research-sefaria-form) :is(input,select,textarea)[aria-invalid="true"]{border-color:#7b2515}
.hsc-research-hub :is(.hsc-research-tabs,.hsc-research-actions,.hsc-research-compare-card,.hsc-research-library-form,.hsc-research-sefaria-form) button{min-width:44px;min-height:44px}
.hsc-research-hub :is(.hsc-research-tabs,[data-hsc-research-panel="search"],[data-hsc-research-panel="ask"],[data-hsc-research-panel="compare"],[data-hsc-research-panel="library"],[data-hsc-research-panel="sources"]) :focus-visible{outline:3px solid #062a4d;outline-offset:3px}
.hsc-research-hero .hsc-research-actions :focus-visible{outline:3px solid #f1cd70;outline-offset:3px}
.hsc-research-compare-status,.hsc-research-sefaria-status{color:var(--hsr-navy2);overflow-wrap:anywhere}
@media(max-width:900px){.hsc-research-library-form,.hsc-research-sefaria-form{grid-template-columns:minmax(0,1fr)}}

/* Locked P: exact Reader continuation shares the existing result actions. */
.hsc-research-result-actions{display:flex;flex-wrap:wrap;gap:8px}.hsc-research-result-actions button{min-height:44px;min-width:44px}.hsc-research-result-actions a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:10px 14px;border:1px solid currentColor;border-radius:8px;overflow-wrap:anywhere}.hsc-research-result-actions a:focus-visible{outline:3px solid currentColor;outline-offset:3px}@media(max-width:480px){.hsc-research-result-actions>a,.hsc-research-result-actions>button{flex:1 1 100%}}

/* Explicit recovery for the public comparison read. */
.hsc-research-hub [data-retry-compare]{min-width:44px;min-height:44px;max-width:100%;padding:10px 16px;border:1px solid currentColor;border-radius:8px;background:#fff;color:#062a4d;font:inherit;font-weight:700;overflow-wrap:anywhere;cursor:pointer}

/* BT: returned version display and separately retained API evidence. */
.hsc-sefaria-card{min-width:0;overflow-wrap:anywhere}.hsc-sefaria-card .hsc-research-badge{margin:0 4px 4px 0;white-space:normal}.hsc-sefaria-card blockquote,.hsc-sefaria-notes{white-space:pre-wrap}.hsc-sefaria-caption{font-size:.85rem;color:#425a70}.hsc-sefaria-card h4{margin:18px 0 8px;color:#173757}.hsc-sefaria-notes{padding:14px 14px 14px 34px;border-left:3px solid #607489;background:#f3f7fa;color:#173757}.hsc-sefaria-notes li+li{margin-top:10px}.hsc-sefaria-card .hsc-research-result-actions a,.hsc-sefaria-evidence summary{display:inline-flex;align-items:center;min-height:44px;padding:8px 10px;box-sizing:border-box;color:#173757;text-decoration:underline;cursor:pointer}.hsc-sefaria-evidence summary{display:list-item}.hsc-sefaria-card a:focus-visible,.hsc-sefaria-evidence summary:focus-visible{outline:3px solid #173757;outline-offset:3px}.hsc-sefaria-evidence pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8rem;max-width:100%;padding:12px;background:#f3f7fa;color:#173757}
