/* ================================================
   project.html — page-scoped styles
   ================================================ */

/* Project card image scaling */
.project__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 5;
  overflow: hidden;
}

.project__thumb .project__thumb-link {
  position: absolute;
  inset: 0;
}

.project__thumb .project__thumb-link img {
  object-position: top center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: none;
}

/* ------------------------------------------------
   Category Chips
   ------------------------------------------------ */

.ccs-chipRow,
.ccs-chip__pill {
  font-family: "Courier New", Courier, monospace;
}

.ccs-chipRow {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.ccs-chip {
  cursor: pointer;
  position: relative;
}

.ccs-chip__cb {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ccs-chip__pill {
  --ccs-accent: var(--tg-color-blue-light-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .18);
  background: rgba(0, 0, 0, .03);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: var(--tg-theme-primary);
  transition:
    transform .12s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.ccs-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .25);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9);
  transition: transform .18s ease, background .18s ease;
}

.ccs-chip__cb:checked + .ccs-chip__pill {
  border-color: var(--ccs-accent);
  background: color-mix(in srgb, var(--ccs-accent) 12%, #ffffff);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ccs-accent) 30%, transparent);
}

.ccs-chip__cb:checked + .ccs-chip__pill .ccs-chip__dot {
  background: var(--tg-theme-secondary);
  transform: scale(1.08);
}

.ccs-chip__cb:focus-visible + .ccs-chip__pill {
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ccs-accent) 45%, transparent);
}

.ccs-chip__pill:active {
  transform: translateY(1px) scale(.99);
}
