.sidebar .home-nav { margin-top: 16px; }
.sidebar .home-nav + .nav-section { margin-top: 20px; }
.sidebar { overflow-y: auto; }
.sidebar > * { flex-shrink: 0; }
.home-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-banner {
  display: grid;
  align-items: center;
  min-height: clamp(270px,24vw,380px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #514438;
  border-radius: 12px;
  background: #101a28;
}
.home-panorama, .home-banner::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.home-panorama { object-fit: cover; object-position: 76% 57%; }
.home-banner::after { content: ""; background: linear-gradient(90deg, #0b1528f0, #0b152ac4 23%, #0c152260 49%, transparent 76%); }
.home-intro { width: min(57%,545px); padding: 28px clamp(22px,3.2vw,52px); }
.home-intro h1 { font: 650 clamp(3.1rem,5.9vw,6.1rem)/1 var(--serif); color: #fff3da; letter-spacing: -.064em; margin: 0 0 13px; }
.home-intro h1 span { color: #efb678; }
.home-intro p { width: min(100%,36ch); font-size: clamp(.94rem,1.3vw,1.12rem); line-height: 1.48; color: #f0e9df; text-shadow: 0 1px 5px #111; }
#home-search { display: flex; padding: 4px; background: #121b25ef; border: 1px solid #797263; border-radius: 7px; margin-top: 20px; max-width: 430px; gap: 5px; }
.home-search-input { flex: 1; display: flex; gap: 6px; align-items: center; min-width: 0; padding-left: 7px; }
.home-search-input > i { flex: none; color: #c9c4b8; }
#home-search input { width: 100%; min-width: 0; min-height: 35px; border: 0; padding: 4px 2px; color: #f1e7d9; background: transparent; }
#home-search input::placeholder { color: #bebfc0; opacity: 1; }
#home-search:focus-within { outline: 2px solid #e4a866; outline-offset: 2px; }
#home-search input:focus { outline: none; }
#home-search button { border-radius: 4px; padding: 6px 15px; color: #291a0d; background: #edb47a; font-weight: 700; font-size: .88rem; }
.home-doors { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 15px; }
@media (min-width: 1540px) {
  .home-doors { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
.home-door {
  display: grid; align-items: center; grid-template-columns: clamp(52px,5.1vw,90px) minmax(0,1fr) 12px; gap: 11px;
  overflow: hidden; min-height: 95px; padding-right: 10px; border: 1px solid #403a35; border-radius: 8px; background: var(--panel);
}
.home-door img { object-fit: cover; width: 100%; height: 100%; }
.home-door-copy { display: grid; gap: 5px; }
.home-door-copy strong { color: #f4e3cc; font: 600 clamp(1.05rem,1.5vw,1.32rem)/1.12 var(--serif); }
.home-door-copy > span, .home-forge-links { font-size: .83rem; color: #c4bdb6; line-height: 1.4; }
.home-door > i { color: #d6a77a; }
.home-door > i svg { width: 12px; }
a.home-door:hover, a.home-door:focus-visible { background: #282421; border-color: #926b49; }
.home-forge { grid-template-columns: clamp(52px,5.1vw,90px) minmax(0,1fr); }
.home-forge-links { display: flex; align-items: baseline; gap: 1px 10px; flex-wrap: wrap; }
.home-forge-links a { color: #edb980; text-decoration: underline; text-underline-offset: 3px; padding: 3px 0; }
.home-lab { margin-top: clamp(23px,3.4vw,48px); }
.home-lab header { display: flex; align-items: baseline; justify-content: space-between; gap: 7px 15px; flex-wrap: wrap; margin-bottom: 12px; }
.home-lab h2 { font: 600 clamp(1.45rem,2vw,1.9rem)/1.2 var(--serif); color: #f7ecdc; letter-spacing: -.03em; }
.home-lab header a { display: inline-flex; gap: 3px; align-items: center; font-size: .85rem; color: var(--gold); }
.home-lab header a svg { width: 13px; }
@media (max-width: 820px) {
  .home-doors { gap: 8px; }
  .home-door { gap: 8px; }
}
@media (max-width: 680px) {
  .home-banner { min-height: 275px; align-items: end; }
  .home-panorama { object-position: 70% center; }
  .home-banner::after { background: linear-gradient(0deg,#0b1529fc 1%,#0b1529e6 34%,#0b152930 75%); }
  .home-intro { width: 100%; padding: 20px; }
  .home-intro h1 { font-size: 3.35rem; margin-bottom: 6px; }
  .home-intro p { max-width: 34ch; }
  #home-search { margin-top: 13px; }
  .home-doors { grid-template-columns: 1fr; }
  .home-door, .home-forge { min-height: 68px; grid-template-columns: 68px minmax(0,1fr) 14px; gap: 13px; }
  .home-forge { grid-template-columns: 68px minmax(0,1fr); }
  .home-door img { position: absolute; inset: 0; width: 68px; }
  .home-door { position: relative; }
  .home-door-copy { grid-column: 2; padding: 6px 0; }
  .home-forge-links { column-gap: 16px; }
}
