/* ================================
   Home.css
   ================================ */

body[data-page="home"] .home-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 8px;

  height: 100%;
  min-height: 0;
}

body[data-page="home"] .left-col,
body[data-page="home"] .right-col{
  display:grid;
  gap: 8px;

  height: 100%;
  min-height: 0;
  grid-template-rows: auto 1fr;
}

/* Panels — scoped to Home only */
body[data-page="home"] .panel{
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);

  display:flex;
  flex-direction:column;
  min-height: 0;
}

body[data-page="home"] .panel h2{
  margin: 0 0 8px;
  font-size: 18px;
  font-family: var(--nav-font);
  color: var(--c-deep);
  text-align:center;
}

body[data-page="home"] .panel p{
  margin: 0;
  color: var(--text);
  line-height: 1.35;
}

/* About image */
body[data-page="home"] .about-img{
  float:left;
  max-width:160px;
  margin:0 16px 6px 0;
  position:relative;
  top:-6px;
}

/* Make the bottom panels scroll inside themselves */
body[data-page="home"] .left-col > .panel:last-child,
body[data-page="home"] .right-col > .panel:last-child{
  overflow:auto;
}

/* Notable Accomplishments */
body[data-page="home"] .accomplishments{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
}

body[data-page="home"] .accomplishments img{
  width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
  display:block;
  border-radius:10px;
}

/* Stats grid */
body[data-page="home"] .stats-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body[data-page="home"] .stat{
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 8px;
  padding: 4px 3px;
  text-align:center;
}

body[data-page="home"] .stat .label{
  font-family: var(--nav-font);
  font-size: 16px;
  color: var(--c-deep);
  margin-bottom: 2px;
}

body[data-page="home"] .stat .value{
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

/* New Petz */
body[data-page="home"] .new-petz{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap: 6px;
}

body[data-page="home"] .new-petz img{
  max-width: 100%;
  border-radius: 10px;
  display:block;
}

/* Home panel scrollbars */
body[data-page="home"] .panel:last-child{
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  scrollbar-width: thin;
}

body[data-page="home"] .panel:last-child::-webkit-scrollbar{
  width:8px;
}

body[data-page="home"] .panel:last-child::-webkit-scrollbar-thumb{
  background: var(--scroll-thumb);
  border-radius:6px;
  border:2px solid var(--scroll-track);
}

/* Responsive */
@media (max-width:1024px){
  body[data-page="home"] .home-grid{ grid-template-columns:1fr; }
  body[data-page="home"] .stats-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width:700px){
  body[data-page="home"] .about-img{
    float:none;
    display:block;
    margin:0 auto 10px auto;
    max-width:60%;
  }
}