
/* Page-specific helpers (keep tidy) */
.card{ background:#fff; border:1px solid #e6eef7; border-radius:12px; padding:14px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px }
.center{ text-align:center }





.updates 
.updates 
.updates .updates-body p{ margin:0; font-size:clamp(16px,2.2vw,20px); }
.updates .updates-body strong{ font-weight:800; color:#012a56 }


/* === Home hero === */
.hero h1{  color:#03417b; }
.hero .lead{ font-size: clamp(16px, 1.6vw, 18px); }

/* === Updates card === */
.updates{ padding:0; overflow:hidden; max-width: 720px; }
.updates-head{ background:#f1a329; color:#08243b; font-weight:800; padding:10px 14px; text-align:center; border-radius:10px 10px 0 0; }
.updates-body{ border:1px solid #e6eff7; border-top:none; padding:14px 16px; text-align:center; border-radius:0 0 10px 10px; }
.updates-list{ list-style:none; margin:0; padding:0; }
.updates-list li{ margin:6px 0; }
.updates-list time{ font-weight:700; color:#03417b; }

/* === Affiliate badges === */
.badges{ max-width: 720px; }
.badge-row{ display:flex; gap:12px; justify-content:center; align-items:center; flex-wrap:wrap; }
.badge img{ display:block; width:auto; height:auto; max-width:100%; border-radius:4px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.badge:hover img{ transform: translateY(-1px); }



/* === Me page: layout & vibe === */
.me-hero h1{ color:#03417b;  }
.me-profile{ display:grid; grid-template-columns: 180px 1fr; gap:16px; align-items:center; max-width:900px; }
.me-profile .avatar{ object-position:center 30%; width:180px; height:180px; border-radius:50%; object-fit:cover; box-shadow: 0 8px 24px rgba(0,0,0,.15); border:4px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box, radial-gradient(120px 120px at 35% 35%, #92ddf2, #00aaea, #6b46c1) border-box; filter: saturate(1.05) contrast(1.03); }
.me-profile .bio{ text-align:left; }

.me-faves{ background: linear-gradient(180deg, #f9fcff, #ffffff); }
.me-faves h2{ margin-top:6px; }
.swatches{ display:flex; gap:10px; justify-content:center; margin:6px 0 10px; }
.swatch{ width:18px; height:18px; border-radius:50%; background:var(--c); box-shadow:0 0 0 3px #fff, 0 0 0 4px #e6eff7; }
.fav-grid{ display:grid; gap:10px; grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.fav h3{ margin:0 0 4px; color:#03417b; }
.chip{ display:inline-block; padding:.25rem .55rem; border-radius:999px; background:#eaf5ff; border:1px solid #d3e7fb; color:#012a56; margin:.1rem .15rem; }
.chip.glow{ background:#fff7e6; border-color:#ffd27a; box-shadow:0 0 0 2px #ffe2a9 inset; }
.me-faves .note{ margin-top:8px; }

.me-cats h2{ letter-spacing:1px; }
.pet-grid{ display:grid; gap:14px; grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.pet-card{ border-radius:14px; overflow:hidden; background:#fff; box-shadow: 0 4px 16px rgba(0,0,0,.08); border:1px solid #e6eff7; }
.pet-card img{ width:100%; aspect-ratio: 4/3; object-fit:cover; filter: saturate(1.06) contrast(1.05); }
.pet-body{ padding:10px 12px; text-align:left; }
.pet-body h3{ margin:0 0 6px; color:#03417b; font-size:18px; }
@media (max-width: 720px){ .me-profile{ grid-template-columns:1fr; text-align:center; } .me-profile .bio{ text-align:center; } }



/* Unify all page H1 to use the same sizing as .panel h1 (Downloads baseline) */
.hero h1, .me-hero h1 {  line-height: inherit; }



/* Force Home/Me H1 to match Downloads (.panel h1) sizing */
.hero h1, .me-hero h1{ 
  font-size: inherit !important;
  line-height: inherit !important;
}



/* === Unify H1: match Downloads default (2em) === */
.hero h1, .me-hero h1{
  font-size: 2em !important;
  line-height: 1.2 !important;
}



/* Center bottom note on Me page */
.me-faves .note{ text-align: center; }


/* === BULLETPROOF CENTERING === */
/* Fun fact tile: center the tile + its contents and prevent stretch */
.fav.funfact{ text-align:center; }
.fav.funfact > *{ margin-left:auto; margin-right:auto; }

/* Nyx card: center the card as a whole row to avoid left bias on the last line */
.pet-card.nyx{
              /* span all columns on the last row */
                 /* reasonable card width */
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
.pet-card.nyx .pet-body, .pet-card.nyx h3, .pet-card.nyx p{ text-align:center; }


.pet-grid{ display:grid; gap:14px; grid-template-columns: repeat(4, 1fr); align-items: stretch; }



@media (max-width: 1100px){
  .fav-grid, .pet-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px){
  .fav-grid, .pet-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .fav-grid, .pet-grid{ grid-template-columns: 1fr; }
}



/* === Equalize cat card heights (minimal & safe) === */
.pet-grid{ align-items: stretch; }
.pet-card{ display:flex; flex-direction:column; }
.pet-card img{ width:100%; height:auto; aspect-ratio: 4 / 3; object-fit: cover; }
.pet-card .pet-body{ flex:1 1 auto; display:flex; flex-direction:column; }
.pet-card .pet-body h3{ margin-top:0; }
.pet-card .pet-body p:last-child{ margin-bottom:0; }
/* Nyx: clear any stray top offset */
.pet-card.nyx{ margin-top:0 !important; align-self:stretch !important; }



/* Center pet card names (non-invasive) */
.pet-card .pet-body h3.centered-title{ text-align:center; }


/* --- Fix: remove white only behind the BOTTOM overlay, keep menu/scroll untouched --- */
:root{
  /* how much of the bottom should be transparent (match your overlay height) */
  --bottom-clear: 140px;   /* try 120–170px if you need a nudge */
}

/* The window stays white everywhere EXCEPT a thin band at the bottom */
.window{
  background: linear-gradient(
    to bottom,
    #ffffff calc(100% - var(--bottom-clear)),
    rgba(255,255,255,0) calc(100% - var(--bottom-clear))
  );
}

/* make sure the frame images sit above the window; no change to menus or scrolling */
.frame-img{ pointer-events:none; z-index:5; }


/* Drop-in spacers */
.spacer-sm { height: 80px; }
.spacer-md { height: 140px; }
.spacer-lg { height: 220px; }



/* spacing between badge rows */
.badges .badge-row + .badge-row{ margin-top:10px; }
