
  :root {
    --sand:    #f5efe6;
    --cream:   #faf7f2;
    --sea:     #2a7fad;
    --sea-dk:  #1a5c80;
    --olive:   #6b7c47;
    --text:    #2c2416;
    --muted:   #8a7e6e;
    --border:  #e0d8cc;
    --shadow:  0 4px 24px rgba(44,36,22,.10);

	--terracotta:      #c0622a;
	--terracotta-light:#e8906a;
	--terracotta-bg:   #fdf6f2;
	--tag-bg:          #f0d6a5;
	--tag-color:       #6b4c1e;
	--text-primary:    #2c2c2c;
	--text-secondary:  #666;
	--text-meta:       #888;
	--border-accent:   #c0622a;
	--white:           #fff;
	--card-radius:     10px;
	--font-main:       Verdana, Geneva, sans-serif;
	--font-title:      'Cormorant Garamond', Georgia, serif;
	--shadow2:          0 2px 8px rgba(0,0,0,0.08);
	--premium-gold:    #b8860b;
  }


/* ── Grid wrapper ── */
.cat-nav {
  max-width: 820px;
  margin: 0 auto 50px;
}
 
.cat-grid {
  display: grid;
  gap: 0 5px; 
  list-style: none;
   margin: 0;
  padding: 0;
  /*
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #cccccc;
  border-radius: 4px;
  */
  overflow: hidden;
}

.cat-grid.cols3 { 
	grid-template-columns: repeat(3, 1fr);
}

.cat-grid li {
	/*
  border-right: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
  */ 
  margin: 6px auto;  
  width: 90%; 
}

.cat-grid li:nth-child(4n)   { border-right: none; }
.cat-grid li:nth-child(n+5)  { border-bottom: none; }

/* ── Individual tile ── */
.cat-tile {
  display: block;
  /* 
  position: relative;
  display: grid;
  background: #1a1a1a;
  grid-template-columns: 80px   auto; 
  border: none;
  */
  width: 100%;
  height: 100%; 
  aspect-ratio: 8 / 2;
  padding: 0 14px;
   cursor: pointer;
   overflow: hidden;
  outline: none; 
  
  border: 0px solid #cccccc;
  border-radius: 4px; 
  /*
  margin: auto;   
  background: linear-gradient(to bottom, transparent 10%, rgba(0,0,0,0.2) 100%);
  */ 
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* ── Image: dark + slightly blurred by default ── */
.cat-tile img {
  display: block;
  width: 45px ;
  /*
  width: 100%;
  height: 100%;
  filter: brightness(0.55) blur(1.5px);
   */
  object-fit: cover; 
  filter: brightness(0.55);
  transform: scale(1.04);
  transition: filter 0.4s ease, transform 0.4s ease;
  margin: auto;
}

/* ── Warm dark overlay — fades out on hover/active ── */
.cat-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 15, 5, 0.38);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* ── Label at bottom ── */
.cat-label {
	/*
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0; 
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.52) 100%);
  padding: 24px 10px 10px;
  */ 
  font-family: Verdana, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  letter-spacing: 0.03em;
  transition: background 0.4s ease;
    
  margin: auto;
  line-height: 1.1;
}

/* ── Focus ring (keyboard navigation) ── */
.cat-tile:focus-visible {
  outline: 3px solid #c0622a;
  outline-offset: -3px;
}
.cat-tile:hover {
  border: 1px solid #cccccc;
  border-radius: 4px; 
   text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); 
  background: #fff;
  /*
  box-shadow: inset 0 0 16px rgba(192, 98, 42, 0.2), 0 4px 18px rgba(0, 0, 0, 0.28);  
  */
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.2), 0 4px 18px rgba(0, 0, 0, 0.28);
}

/* ── HOVER: image clears, overlay fades, tile opens up ── */
.cat-tile:hover img {
  filter: brightness(0.88) blur(0px);
  transform: scale(1.0);
}
.cat-tile:hover .cat-overlay { opacity: 0; }
.cat-tile:hover .cat-label {
	/*
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.45) 100%);
  */
}

/* ── ACTIVE: same as hover + terracotta border + lifted shadow ── */
.cat-tile.active {
  /*
  border: 1px solid #cccccc;
  */
  border-radius: 4px; 
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); 
  transform: scale(1.0);
  background: #fff; 
  
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.4);
}
.cat-tile.active img {
  filter: brightness(0.88) blur(0px);
  transform: scale(1.0);
}
.cat-tile.active .cat-overlay { opacity: 0; }
.cat-tile.active .cat-label {
	/*
  background: linear-gradient(to bottom, transparent 0%, rgba(140,50,10,0.55) 100%);
  */
  text-shadow: 1px 1px 3px rgb(0, 0, 0); 
} 
.cat-tile.active::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  /*
  border: 1px solid #c0622a;
  border: 3px solid #c0622a;
  box-shadow:
    inset 0 0 16px rgba(192, 98, 42, 0.2),
    0 4px 18px rgba(0, 0, 0, 0.28);
	*/
}
.intro.inactive {
	display: none;
} 

/* ── Empty-state hint ── */
.cat-hint {
  font-family: Verdana, sans-serif;
  font-size: 13px;
  color: #888888;
  text-align: center;
  padding: 32px 16px;
  margin: 0;
  font-style: italic;
} 
.bdiv {
	display: grid;
    grid-template-columns: auto auto;
}

/* ── RESPONSIVE ── */

/* Tablet / small desktop: 4 cols still works, tiles shrink */
@media (max-width: 600px) {
  .cat-label {
    font-size: 10px;
    padding: 16px 4px 6px;
  }
}

/* Small phones: switch to 2 cols x 4 rows */
@media (max-width: 380px) {
	.cat-grid {
		grid-template-columns: repeat(2, 1fr);
		/*
		display: block; 
		*/ 
	}
	.cat-tile { 
		aspect-ratio: 1 / 1; 
	}
	.cat-tile img {
		max-width: 69px; 
	}
	.cat-grid.cols3 {  
		grid-template-columns: repeat(2, 1fr);
	}
	.bdiv {
		display: block;
 	}
	/* Reset nth-child borders for 2-col layout */
	.cat-grid li:nth-child(4n)  { border-right: 1px solid #cccccc; }
	.cat-grid li:nth-child(2n)  { border-right: none; }
	.cat-grid li:nth-child(n+5) { border-bottom: 1px solid #cccccc; }
	.cat-grid li:nth-child(n+7) { border-bottom: none; }
	.cat-label {
		font-size: 11px;
		padding: 24px 0px 10px; 
		max-width: 100px; 
		display: block;
	}
}









