/* Sacralib V2.11 owner HOME only; never style public home/article layouts. */
body.codex-site-v2-home #sv23MainNav .sv23-top-group>summary {
 display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;
 line-height:1.25!important;min-height:38px!important;
}
body.codex-site-v2-home #sv23MainNav .sv23-top-group>summary::after,
body.codex-site-v2-home #sv23MainNav .sv23-top-group>summary::before {
 position:static!important;top:auto!important;bottom:auto!important;transform:none!important;vertical-align:middle!important;
 flex:none!important;align-self:center!important;margin-left:0!important;
}
body.codex-site-v2-home #sv23MainNav .sv23-top-group>summary::after {
 content:''!important;display:block!important;position:static!important;
 width:0!important;height:0!important;
 border-left:4px solid transparent!important;border-right:4px solid transparent!important;
 border-top:5px solid #795535!important;border-bottom:0!important;
 margin:2px 0 0 1px!important;transform:none!important;line-height:0!important;
}
/* Give each card a wider text field while preserving Figma's feathered art edge. */
body.codex-site-v2-home .sv2-live-grid{gap:12px!important;}
body.codex-site-v2-home .sv2-live-card{min-height:112px!important;}
body.codex-site-v2-home .sv2-live-card::before{width:31%!important;}
body.codex-site-v2-home .sv2-find-player::before{width:24%!important;}
body.codex-site-v2-home .sv2-online .sv2-live-copy,
body.codex-site-v2-home .sv2-chaos .sv2-chaos-copy {margin:0 9px 0 33%!important; min-width:0!important;}
body.codex-site-v2-home .sv2-find-player .sv2-player-form{margin:0 9px 0 28%!important;min-width:0!important;}
body.codex-site-v2-home .sv2-player-controls{display:flex!important;gap:7px!important;width:100%!important;min-width:0!important;}
body.codex-site-v2-home .sv2-player-controls input{flex:1 1 0!important;width:100%!important;min-width:0!important;padding:0 8px!important;}
body.codex-site-v2-home .sv2-player-controls button{flex:0 0 auto!important;padding:0 11px!important;white-space:nowrap!important;}
body.codex-site-v2-home .sv2-player-form label{margin-bottom:5px!important;}
body.codex-site-v2-home .sv2-online .sv2-live-copy small::before{align-self:center!important;}
/* Better matched original, transparent artwork for section labels. */
body.codex-site-v2-home .sv2-fresh .sv2-section-header h2::before {
 background-image:url('/assets/codex-v29-transparent-icons/map-book.webp?v=211')!important;
 width:34px!important;height:34px!important;vertical-align:middle!important;
}
body.codex-site-v2-home .sv2-patches .sv2-section-header h2::before {
 background-image:url('/assets/codex-v29-transparent-icons/world.webp?v=211')!important;
 width:34px!important;height:34px!important;vertical-align:middle!important;
}
/* Highest quality achievable from original 2x art: render at native-ish height and never stretch sideways. */
body.codex-site-v2-home .sv2-patch-hero {
 position:relative!important;min-height:165px!important;
 background-color:#0b1b2b!important;
 background-image:
  linear-gradient(90deg,#0b1b2b 0%,#0b1b2b 25%,rgba(11,27,43,.95) 43%,rgba(11,27,43,.62) 63%,rgba(11,27,43,0) 90%),
  url('/assets/codex-v27-figma/patch-landscape.webp')!important;
 background-position:center,right center!important;background-repeat:no-repeat!important;
 background-size:100% 100%,auto 100%!important;
}
body.codex-site-v2-home .sv2-explore {
 position:relative!important;min-height:94px!important;
 display:flex!important;flex-direction:column!important;justify-content:center!important;
 padding:12px 78px 12px 22px!important;
 background-color:#0b1b2b!important;
 background-image:
  linear-gradient(90deg,#0b1b2b 0%,#0b1b2b 23%,rgba(11,27,43,.91) 43%,rgba(11,27,43,.58) 67%,rgba(11,27,43,0) 100%),
  url('/assets/codex-v27-figma/explore.webp')!important;
 background-repeat:no-repeat!important;background-position:center,right center!important;
 background-size:100% 100%,auto 100%!important;
}
body.codex-site-v2-home .sv2-explore>.sv2-icon,
body.codex-site-v2-home .sv2-explore>span.sv2-icon {
 position:absolute!important;right:14px!important;left:auto!important;top:50%!important;bottom:auto!important;
 transform:translateY(-50%)!important;
 display:grid!important;place-items:center!important;
 width:42px!important;height:42px!important;border:1px solid #cbb38c!important;border-radius:50%!important;
 background:rgba(11,21,31,.85)!important;color:#f7e9d2!important;z-index:3!important;
}
body.codex-site-v2-home .sv2-explore>.sv2-icon svg{width:22px!important;height:22px!important;}
/* Admin control layout */
#homeQuickToolList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.sv211-quick-editor{display:grid;gap:8px;padding:12px 13px;border:1px solid #d9c5a9;border-radius:6px;background:#f8f1e5;min-width:0;}
.sv211-quick-editor label{display:grid;gap:5px;font-size:13px;min-width:0;}
.sv211-quick-editor input{width:100%;min-width:0;}
.sv211-thumb-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px;align-items:end;}
.sv211-thumb-controls label{display:grid;gap:6px;min-width:0;}
#entryHomeThumbnailStatus{font-size:12px;color:#7c5a38;grid-column:1/-1;}
@media(max-width:1390px){
 body.codex-site-v2-home .sv2-live-card{min-height:103px!important;}
 body.codex-site-v2-home .sv2-online .sv2-live-copy,body.codex-site-v2-home .sv2-chaos .sv2-chaos-copy{margin-left:31%!important;}
 body.codex-site-v2-home .sv2-find-player .sv2-player-form{margin-left:27%!important;}
 body.codex-site-v2-home .sv2-live-card::before{width:29%!important;}
 body.codex-site-v2-home .sv2-find-player::before{width:24%!important;}
}
@media(max-width:820px){
 body.codex-site-v2-home .sv2-live-card{min-height:100px!important;}
 body.codex-site-v2-home .sv2-find-player .sv2-player-form{margin-left:29%!important;}
 body.codex-site-v2-home .sv2-find-player::before{width:26%!important;}
}
@media(max-width:600px){
 body.codex-site-v2-home .sv2-find-player .sv2-player-form{margin-left:31%!important;}
 body.codex-site-v2-home .sv2-live-card::before{width:29%!important;}
 body.codex-site-v2-home .sv2-player-form label{font-size:13px!important;}
 body.codex-site-v2-home .sv2-player-controls button{padding-inline:8px!important;}
 body.codex-site-v2-home .sv2-explore{padding-right:68px!important;min-height:104px!important;}
 #homeQuickToolList,.sv211-thumb-controls{grid-template-columns:1fr;}
}
