/*! Copyright (c) 2026 Mark T. Fulwider. All rights reserved. */
.research-room{--research-paper:#fffdf7;--research-border:#c4cfca;background:#f5f5ef;font-size:16px}
.research-search-head{position:relative;background:#071119;color:#fff;overflow:hidden;padding:40px 0 34px}
.research-head-art{position:absolute;right:0;top:0;width:43%;height:100%;object-fit:cover;object-position:right center;opacity:1}
.research-search-head:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#071119 49%,rgba(7,17,25,.84) 67%,rgba(7,17,25,0) 100%);pointer-events:none}
.research-head-content{position:relative;z-index:1}
.research-head-content>.eyebrow{color:#dbba8b;font-size:14px;margin-bottom:13px}
.research-head-content h1{font:400 clamp(2rem,4vw,3.5rem)/1.1 var(--serif);letter-spacing:-.035em;margin:0 0 15px;max-width:850px}
.research-head-content>p{font-size:18px;line-height:1.6;color:#ccd8da;margin-bottom:26px}
.research-search-form{max-width:790px}
.research-search-form>label{display:block;font-size:15px;margin-bottom:9px;color:#dfebea}
.research-query-row{display:flex;gap:0;background:#fff;border:1px solid #dbba8b;padding:5px}
.research-query-row input{font:400 18px/1.5 var(--sans);width:100%;min-width:0;border:0;background:#fff;color:#122b33;padding:11px 13px}
.research-query-row .button{font-size:16px;background:#dbba8b;border-color:#dbba8b;color:#071119;cursor:pointer;padding-inline:27px}
.research-search-options{display:flex;flex-wrap:wrap;gap:15px 23px;border:0;padding:0;margin:18px 0 9px}
.research-search-options legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.research-search-options label{font-size:15px;display:flex;align-items:center;gap:8px;cursor:pointer}
.research-search-options input{accent-color:#dbba8b;width:17px;height:17px}
.research-search-hint{font-size:14px;line-height:1.6;color:#c3d3d5;max-width:750px;margin:0}
.research-seeds{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin-top:20px;font-size:14px;color:#c3d3d5}
.research-seeds button{border:1px solid #617d83;background:#122a34;color:#e7ece5;padding:6px 13px;font:inherit;cursor:pointer}
.research-seeds button:hover{background:#254552}
.research-body{padding-bottom:65px}
.research-tabs{display:flex;gap:27px;border-bottom:1px solid var(--research-border);margin-bottom:33px;overflow-x:auto}
.research-tabs button{font:500 17px/1.5 var(--sans);padding:21px 0 16px;border:0;border-bottom:3px solid transparent;background:none;color:#5b6b6d;white-space:nowrap;cursor:pointer}
.research-tabs button[aria-pressed=true]{color:#153d44;border-color:#a77940}
.research-tabs button span{display:inline-block;padding:0 7px;font-size:13px;background:#e1e8e1;margin-left:5px;border-radius:12px}
.research-explore-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:48px;align-items:start}
.research-room h2{font:400 30px/1.2 var(--serif);letter-spacing:-.02em;margin:0 0 12px}
.research-results-head>p{font-size:15px;color:#536769;line-height:1.65;margin-bottom:22px}
.research-result{border-top:1px solid var(--research-border);padding:24px 0}
.research-result-kind{font-size:13px;line-height:1.6;color:#536b6c;display:block;margin-bottom:9px}
.research-result h3,.research-note h3{font:400 25px/1.25 var(--serif);letter-spacing:-.015em;margin:0 0 12px}
.research-result h3 a{color:#153840;text-decoration:none}
.research-result h3 a:hover{text-decoration:underline;text-underline-offset:5px}
.research-result p,.research-note p{font-size:16px;line-height:1.7;color:#445c60;margin:0 0 14px;overflow-wrap:anywhere;white-space:pre-line}
.research-result .research-doi{font-size:13px}
.research-result-actions,.research-note-actions{display:flex;gap:20px;flex-wrap:wrap;align-items:center}
.research-result-actions a,.research-result-actions button,.research-note-actions a,.research-note-actions button{font:500 14px/1.6 var(--sans);color:#176069;background:none;border:0;padding:4px 0;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.research-keep{padding:26px;background:#e8eeea;border-top:4px solid #a77940}
.research-keep .eyebrow{font-size:13px;margin-bottom:16px}
.research-keep h2{font-size:27px}
.research-keep p{font-size:15px;line-height:1.75;margin:18px 0}
.research-room .button{font-size:15px;cursor:pointer}
.research-keep .research-storage-status{font-size:13px;color:#415e60}
.research-ai-entry{border-top:1px solid #c1cfc6;margin-top:27px;padding-top:24px}
.research-ai-entry h3{font:400 23px/1.2 var(--serif)}
.research-ai-entry .meta{font-size:13px;line-height:1.6}
.research-search-followup{display:flex;gap:12px;flex-wrap:wrap;border-top:1px solid var(--research-border);padding-top:22px}
.research-notebook-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:27px}
.research-notebook-heading p,.research-tools-heading p{font-size:16px;line-height:1.7;max-width:760px;color:#445c60;margin-top:12px}
.research-notebook-heading .actions{margin:0;flex-shrink:0}
.research-notebook-filters{display:grid;grid-template-columns:2fr 1fr;gap:22px}
.research-room label:not(.research-search-options label){font-size:15px;line-height:1.6;font-weight:500}
.research-notebook-filters input,.research-notebook-filters select,.research-dialog input,.research-dialog textarea,.research-dialog select{display:block;width:100%;min-width:0;padding:11px 12px;background:#fff;color:#142c35;border:1px solid #93a9a4;border-radius:0;font:400 16px/1.6 var(--sans);margin-top:7px}
.research-dialog textarea{resize:vertical}
.research-notebook-summary{font-size:14px;line-height:1.6;color:#506969;margin:22px 0}
.research-note-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.research-note{padding:25px;background:var(--research-paper);border:1px solid var(--research-border);border-top:3px solid #b98c56}
.research-note .meta{font-size:13px;margin:15px 0 0}
.research-empty{grid-column:1/-1;padding:40px;background:#e8eeea}
.research-empty h3{font:400 26px/1.3 var(--serif);margin-bottom:12px}
.research-empty p{font-size:16px;line-height:1.6}
.research-tools-heading{margin-bottom:28px}
.research-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start;margin-bottom:20px}
.research-tool{position:relative;background:#10262e;padding:7px;overflow:hidden}
.research-tool-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;opacity:1}
.research-tool summary{position:relative;display:flex;justify-content:space-between;gap:18px;align-items:center;min-height:142px;margin-right:37px;padding:24px;background:#10262eeb;color:#fff;cursor:pointer;list-style:none}
.research-tool summary::-webkit-details-marker{display:none}
.research-tool summary strong{display:block;font:400 25px/1.25 var(--serif);margin-bottom:13px}
.research-tool summary span span{display:block;font:400 15px/1.6 var(--sans);color:#cfdddc}
.research-tool-toggle{font-size:13px;color:#e7c590;border-bottom:1px solid #b68e57;padding-bottom:3px}
.research-tool-body{position:relative;background:#fffdf7;color:#16323a;padding:25px;margin-top:7px}
.research-tool-body h3{font:400 23px/1.3 var(--serif);margin:0 0 12px}
.research-tool-body p{font-size:16px;line-height:1.75;margin:0 0 19px}
.research-tool-body .research-tool-scope{font-size:14px;line-height:1.7;color:#536c6d;padding-top:15px;border-top:1px solid var(--research-border)}
.research-guide{padding-top:25px;padding-bottom:15px}
.research-guide>a{font-size:15px;color:#176069}
.research-guide details{border-left:3px solid #ac814e;padding:15px 22px;background:#e8eeea;margin-top:18px;max-width:900px}
.research-guide summary{font-size:16px;font-weight:600;cursor:pointer}
.research-guide p{font-size:16px;line-height:1.75;margin:13px 0 0}
.research-dialog{width:min(760px,calc(100vw - 28px));max-height:calc(100dvh - 44px);padding:28px;background:#fffdf7;color:#142c35;border:1px solid #91a7a1;box-shadow:0 24px 80px #07111955;overflow:auto;margin:auto}
.research-dialog::backdrop{background:#061319ad}
.research-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.research-dialog-heading h2{margin:0;font-size:30px}
.research-dialog-heading button{font:400 15px/1.6 var(--sans);background:none;color:#16474c;border:1px solid #9fb2aa;padding:6px 13px;cursor:pointer}
.research-dialog-intro,.research-dialog>p{font-size:15px;line-height:1.7;margin-bottom:23px;color:#52696a}
.research-dialog label{display:block;margin-bottom:21px;font-size:15px;font-weight:500}
.research-form-pair{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}
.research-note-details{border-block:1px solid var(--research-border);padding:15px 0;margin:10px 0 24px}
.research-note-details summary{font-size:16px;cursor:pointer;margin-bottom:12px}
.research-dialog-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:18px}
.research-dialog [role=status]{font-size:14px;line-height:1.7;margin-top:18px;color:#526769}
.research-room button:disabled{opacity:.55;cursor:wait}
.research-room :is(input,textarea,select,button,summary):focus-visible{outline:3px solid #b98748;outline-offset:3px}
.research-room .meta{font-size:13px;line-height:1.7}
@media(max-width:1000px){.research-explore-grid{grid-template-columns:minmax(0,1fr) 285px;gap:28px}.research-notebook-heading{align-items:flex-start;flex-direction:column}.research-tool summary{margin-right:18px;padding:21px}.research-tool summary strong{font-size:23px}}
@media(max-width:760px){.research-search-head{padding-top:31px}.research-head-art{width:100%;object-position:right center}.research-search-head:after{background:linear-gradient(90deg,#071119f7 25%,#071119b8 100%)}.research-head-content>p{font-size:16px}.research-query-row input{font-size:16px}.research-query-row .button{padding-inline:16px}.research-tabs{gap:20px}.research-tabs button{font-size:15px}.research-explore-grid,.research-note-grid,.research-tool-grid{grid-template-columns:1fr}.research-keep{padding:24px}.research-tool summary{margin-right:35px}.research-notebook-filters{grid-template-columns:1fr;gap:15px}.research-notebook-heading .actions{flex-wrap:wrap}.research-dialog{padding:22px}.research-form-pair{grid-template-columns:1fr;gap:0}.research-room h2{font-size:27px}}
