
/* ============================================================
   Wise Footing - Modern Overrides (prevents overlap)
   Loaded AFTER template css/style.css
============================================================ */
*{box-sizing:border-box}
html,body{height:auto}
body{min-width:0}

/* Container width */
.container{max-width:1100px}

/* Header: modern flex layout */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.site-header .inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 0;
}
.site-logo{
  font-size:28px; line-height:1; margin:0;
  color:#fff; text-decoration:none; font-weight:600;
}
.site-nav{display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end}
.site-nav a{
  display:inline-block;
  padding:10px 12px;
  border-radius:10px;
  color:#ddd;
  text-decoration:none;
  font-size:14px;
}
.site-nav a:hover, .site-nav a.active{
  background:rgba(245,197,107,0.16);
  color:#f5c56b;
}

/* Page layout */
.page{padding:22px 0 60px}
.grid{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:26px;
  align-items:start;
}
.card{
  background:rgba(0,0,0,0.35);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:16px;
  padding:18px;
}
.card h2, .card h3{margin-top:0}
.sidebar ul{margin:0; padding-left:18px}
.sidebar li{margin:8px 0}
.hero{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.10);
  overflow:hidden;
  margin-bottom:14px;
}
.hero img{display:block;width:100%;height:auto}
.meta{color:#aaa;font-size:13px;margin-top:6px}

/* Responsive embed wrapper */
.embed{position:relative; width:100%; padding-top:56.25%; height:0; overflow:hidden;
  border-radius:16px; border:1px solid rgba(255,255,255,0.10); background:#000;}
.embed iframe{position:absolute; inset:0; width:100%; height:100%; border:0}

/* Lists of posts */
.post-list{list-style:none; padding:0; margin:0}
.post-list li{padding:12px 0; border-bottom:1px solid rgba(255,255,255,0.08)}
.post-list li:last-child{border-bottom:none}
.post-list a{font-size:16px}

/* Footer */
.site-footer{
  margin-top:40px;
  padding:18px 0;
  border-top:1px solid rgba(255,255,255,0.10);
  color:#aaa;
}
.site-footer a{color:#ddd}

/* Make template's old header/tabs not interfere if present */
header, ul.tabs, .tab_container{display:none !important}

/* Mobile */
@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
  .site-header .inner{flex-direction:column; align-items:flex-start}
  .site-nav{justify-content:flex-start}
}
