/* HumiHQ Layout Shell — unified app chrome */

/* Hide theme header on HumiHQ wrapped pages */
body:has(.hq-shell) :where(#site-navigation,#masthead,.site-header,.header-wrap,.main-navigation,.gp-site-header,.site-branding,.entry-header,.page-header,.post-header){
  display:none !important;
}
body:has(.hq-shell) .site-content,.site-main{ margin-top:0 !important;padding-top:0 !important; }

.hq-shell { min-height:100vh;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;color:#18181b;background:#f8fafc; }
.hq-shell-header { background:#fff;border-bottom:1px solid #e4e4e7;position:sticky;top:0;z-index:50; }
.hq-shell-header-inner { max-width:1248px;margin:0 auto;padding:0 24px;height:52px;display:flex;align-items:center;justify-content:space-between; }
.hq-shell-logo { font-size:1.05rem;font-weight:800;color:#38bdf8;text-decoration:none;letter-spacing:-.02em; }
.hq-shell-nav { display:flex;gap:4px; }
.hq-shell-nav-link { padding:6px 14px;font-size:.8rem;font-weight:600;color:#71717a;text-decoration:none;border-radius:6px;transition:all .12s; }
.hq-shell-nav-link:hover { color:#38bdf8;background:rgba(56,189,248,.06); }
.hq-shell-nav-link.is-current { color:#38bdf8;background:rgba(56,189,248,.08); }
.hq-shell-body { flex:1;padding:32px 0 48px; }
.hq-shell-footer { text-align:center;padding:24px;font-size:.72rem;color:#a1a1aa;border-top:1px solid #e4e4e7; }

/* Layout widths */
.hq-layout { max-width:1120px;margin:0 auto;padding:0 24px; }
.hq-layout--wide { max-width:1200px; }
.hq-layout--read { max-width:760px; }

@media (max-width:768px) {
 .hq-shell-nav { gap:0; }
 .hq-shell-nav-link { padding:6px 8px;font-size:.72rem; }
 .hq-shell-header-inner { padding:0 16px; }
 .hq-layout { padding:0 16px; }
}
