/*! © 2026 Hacker News Atlas. All rights reserved. */

.doc-research{max-width:1120px}
.doc-research>.cl-intro{max-width:760px;font-size:15px;line-height:1.6}
.research-controls{margin:26px 0 14px;padding:18px;border:1px solid var(--stroke-2);border-radius:var(--r-md);background:var(--glass-2)}
.research-controls label{display:block;margin-bottom:9px;color:var(--ink);font-size:14px;font-weight:650}
.research-search-row{display:flex;gap:8px;align-items:stretch}
.research-search-row input{min-width:0;min-height:48px;flex:1;padding:0 14px;border:1px solid var(--stroke);border-radius:var(--r-sm);background:var(--glass-hi);color:var(--ink);font:inherit;font-size:16px;box-shadow:none}
.research-search-row input::placeholder{color:var(--ink-3)}
.research-search-row input:focus-visible{outline:3px solid var(--accent-soft);outline-offset:2px;border-color:var(--accent)}
.research-search-row button{min-height:48px;padding:0 16px;border:1px solid var(--stroke);border-radius:var(--r-sm);background:var(--glass-hi);color:var(--ink);font:inherit;font-weight:650;cursor:pointer}
.research-search-row button:hover{border-color:var(--accent)}
.research-search-row button:focus-visible,.research-quicklinks a:focus-visible,.research-chapter>summary:focus-visible{outline:3px solid var(--accent-soft);outline-offset:2px}
.doc-research .research-results{min-height:1.5em;margin:9px 0 0;color:var(--ink-3);font-size:13px}
.research-quicklinks{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px}
.doc-research .research-quicklinks a{display:inline-flex;align-items:center;min-height:40px;padding:0 13px;border:1px solid var(--stroke-2);border-radius:var(--r-pill);background:var(--glass-2);color:var(--ink-2);font-size:13px;font-weight:650;text-decoration:none}
.doc-research .research-quicklinks a:hover{border-color:var(--stroke);background:var(--glass-hi);color:var(--ink)}
.research-library-section{scroll-margin-top:24px}
.research-library-section>h2{margin-top:34px}
.research-library-section>.research-index{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#years>.research-index{grid-template-columns:repeat(4,minmax(0,1fr))}
.research-library-section>.research-index a{min-height:76px;padding:14px 15px}
.research-library-section>.research-index strong{font-size:15px}
.research-library-section>.research-index span{font-size:12px}
.research-analysis{margin-top:40px;padding-top:2px;border-top:1px solid var(--stroke-2)}
.research-chapters{display:grid;gap:10px;margin:16px 0 24px}
.research-chapter{overflow:clip;border:1px solid var(--stroke-2);border-radius:var(--r-md);background:var(--glass-2)}
.research-chapter[open]{border-color:var(--stroke);background:var(--glass-hi)}
.research-chapter>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 18px;align-items:center;min-height:68px;padding:12px 46px 12px 16px;position:relative;cursor:pointer;list-style:none}
.research-chapter>summary::-webkit-details-marker{display:none}
.research-chapter>summary::after{content:"+";position:absolute;right:17px;top:50%;translate:0 -50%;color:var(--ink-3);font-size:22px;font-weight:400}
.research-chapter[open]>summary::after{content:"−"}
.research-chapter>summary span{color:var(--ink);font-size:16px;font-weight:680;letter-spacing:-.01em}
.research-chapter>summary small{color:var(--ink-3);font-size:12px;text-align:right}
.research-chapter-body{padding:4px 16px 18px;border-top:1px solid var(--stroke-2)}
.research-chapter-body>.grid{margin-top:16px}
.research-chapter-body>.section-h:first-child{display:none}
.doc-research .research-chapter-fallback{margin:0;padding:14px 16px;border-top:1px solid var(--stroke-2);font-size:14px}
.research-explorer{margin-top:28px!important;padding:16px;border:1px solid var(--stroke-2);border-radius:var(--r-sm);background:var(--glass-2)}
.research-explorer a{font-weight:650}

@media(max-width:860px){
  .research-library-section>.research-index{grid-template-columns:repeat(2,minmax(0,1fr))}
  #years>.research-index{grid-template-columns:repeat(3,minmax(0,1fr))}
  .research-chapter>summary{grid-template-columns:1fr}
  .research-chapter>summary small{text-align:left}
}
@media(max-width:560px){
  .research-controls{margin-inline:-2px;padding:14px}
  .research-search-row{align-items:stretch;flex-direction:column}
  .research-search-row button{width:100%}
  .research-library-section>.research-index,#years>.research-index{grid-template-columns:1fr}
  .research-library-section>.research-index a{min-height:68px}
  .research-chapter-body{padding-inline:12px}
}
@media(prefers-reduced-motion:reduce){
  .research-controls *,.research-chapter *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
