.research-header, .research-footer, .research-shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.research-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 24px; border-bottom: 1px solid var(--stroke); }
.research-brand { font: 700 1.6rem var(--font-display); color: var(--text); text-decoration: none; }
.research-header nav, .research-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.research-header nav a, .research-footer nav a { color: var(--text-secondary); font-size: .9rem; }
.research-shell { padding-block: 64px 48px; color: var(--text); }
.research-article-shell { max-width: 800px; }
.research-hero { max-width: 850px; margin-bottom: 48px; }
.research-eyebrow { color: var(--text-secondary); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.research-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.16; letter-spacing: -.035em; margin: 16px 0 24px; }
.research-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.65; color: var(--text-secondary); }
.research-byline, .research-breadcrumbs { font-size: .83rem; color: var(--text-secondary); line-height: 1.7; }
.research-breadcrumbs { margin-bottom: 32px; }
.research-prose { max-width: 72ch; font-size: 1.075rem; line-height: 1.85; }
.research-prose h2, .research-sources h2, .research-note h2, .research-card h2 { font-family: var(--font-display); line-height: 1.35; font-size: 1.4rem; }
.research-prose section { margin-bottom: 36px; }
.research-prose p { margin-block: 16px; }
.research-shell a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: .2em; }
.research-shell a:hover, .research-header a:hover, .research-footer a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); }
.research-citation { font-size: .78em; white-space: normal; }
.research-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; }
.research-card { padding-block: 24px; border-top: 3px solid var(--accent); }
.research-card p { color: var(--text-secondary); line-height: 1.7; }
.research-search { display: grid; grid-template-columns: minmax(240px, 2fr) minmax(210px, 1fr) auto; gap: 16px; align-items: end; padding: 24px; margin-bottom: 16px; background: var(--surface-alt); border-left: 3px solid var(--accent); }
.research-search-field { display: grid; gap: 8px; color: var(--text-secondary); font-size: .82rem; font-weight: 700; }
.research-search input, .research-search select { width: 100%; min-height: 44px; padding: 9px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--stroke); border-radius: 4px; font: inherit; }
.research-search input:focus-visible, .research-search select:focus-visible, .research-search button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.research-search-actions { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.research-search button { min-height: 44px; padding: 9px 18px; color: var(--surface); background: var(--text); border: 1px solid var(--text); border-radius: 4px; font: 700 .9rem var(--font-body); cursor: pointer; }
.research-search button:hover { background: var(--accent); border-color: var(--accent); }
.research-results-count { margin: 0 0 24px; color: var(--text-secondary); font-size: .9rem; }
.research-empty { padding: 32px; background: var(--surface-alt); line-height: 1.7; }
.research-empty h2 { margin-top: 0; font-family: var(--font-display); }
.research-note { padding: 28px; margin-top: 40px; background: var(--surface-alt); border-left: 3px solid var(--accent); line-height: 1.7; }
.research-note a + a { margin-left: 24px; }
.research-sources { border-top: 1px solid var(--stroke); padding-top: 28px; font-size: .9rem; line-height: 1.7; }
.research-sources ul { padding-left: 20px; }
.research-sources li { margin-bottom: 16px; overflow-wrap: anywhere; }
.research-sources li span { display: block; color: var(--text-secondary); }
.research-related { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 32px; }
.research-related a { flex: 1 1 240px; }
.research-footer { border-top: 1px solid var(--stroke); padding-block: 24px 40px; color: var(--text-secondary); line-height: 1.7; }
.research-skip { position: fixed; top: -100px; left: 16px; background: var(--surface); color: var(--text); padding: 12px; z-index: 1000; }
.research-skip:focus { top: 12px; }
.research-header a:focus-visible, .research-shell a:focus-visible, .research-footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.chat-research-intro { max-width: 64ch; margin: 12px auto 0; font-size: .86rem; line-height: 1.55; color: var(--text-secondary); }
.chat-research-intro summary { cursor: pointer; }
.chat-research-intro nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin-top: 12px; }
.chat-research-intro a { color: inherit; text-underline-offset: .2em; }
.calculator-research-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .8rem; margin-top: 12px; }
.calculator-research-links a { color: var(--text-secondary); text-underline-offset: .2em; }
.research-workspace-shell { overflow: visible; background: var(--workspace-canvas); }
.research-workspace-shell .chat-workspace-main { min-height: 100vh; min-height: 100dvh; overflow: visible; }
.research-workspace-content { min-width: 0; min-height: 100vh; min-height: 100dvh; background: var(--workspace-canvas); }
.research-workspace-shell .chat-workspace-new { text-decoration: none; }
@media (max-width: 640px) {
    .research-header, .research-footer, .research-shell { width: calc(100% - 32px); }
    .research-header { align-items: flex-start; flex-direction: column; gap: 16px; }
    .research-header nav { gap: 12px 20px; }
    .research-shell { padding-top: 36px; }
    .research-hero { margin-bottom: 32px; }
    .research-search { grid-template-columns: 1fr; padding: 20px; }
    .research-search-actions { flex-wrap: wrap; }
    .research-note { padding: 20px; }
}
