/*
 * Frisian Orchard — Module 5: Dogs Shell (left column)
 */

.fo-bb-list-page__article .fo-heading-lg {
  margin-bottom: 1.5rem;
}

.fo-bb-list-page .fo-entry {
  min-width: 0;
}

.fo-dogs-shell {
  position: relative;
}

.fo-dogs-shell__intro {
  max-width: 36ch;
}

.fo-dogs-shell__intro .fo-heading-lg {
  color: var(--fo-text-white);
  margin-bottom: 1rem;
}

.fo-dogs-shell__intro .fo-body {
  margin-bottom: 0;
}

.fo-dogs-shell__widget {
  min-height: 200px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.fo-dogs-shell__widget .bb-dogs-overview,
.fo-dogs-shell__widget .bb-dogs-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.fo-dogs-shell__widget .bb-dogs-grid--profile,
.fo-dogs-shell__widget .fo-dogs-grid--profile {
  display: grid !important;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  max-width: 100%;
}

.fo-dogs-shell__widget .fo-dog-card--profile {
  max-width: 100%;
  min-width: 0;
}

.fo-dogs-shell__widget .fo-dog-card--profile .fo-dog-card__image {
  max-height: none;
}

.fo-dogs-shell__widget .fo-dog-card--profile .fo-dog-card__title {
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
}

.fo-dogs-shell__widget .fo-dog-card--profile .fo-dog-card__body {
  padding: 1rem 0.75rem 0.875rem;
}

.fo-dogs-shell .fo-grid-2--40-60 {
  align-items: start;
}

.fo-dogs-shell .fo-grid-2--40-60 > * {
  min-width: 0;
}

@media (min-width: 768px) {
  .fo-dogs-shell__intro {
    position: sticky;
    top: calc(var(--fo-header-height) + 2rem);
  }
}

.fo-dogs-grid--profile,
.bb-dogs-grid--profile {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Profile grids on inner pages only (exclude homepage #dogs module inside .fo-dogs-shell) */
.fo-bb-list-page .bb-dogs-grid--profile,
.fo-landing__content .bb-dogs-grid--profile,
.fo-bb-page .bb-dogs-grid--profile {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)) !important;
}

@media (min-width: 768px) {
  .fo-bb-list-page .bb-dogs-grid--profile,
  .fo-landing__content .bb-dogs-grid--profile,
  .fo-bb-page .bb-dogs-grid--profile {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)) !important;
  }
}

.fo-dog-card--profile {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--fo-glass-border);
  background: var(--fo-bg-charcoal);
}

.fo-dog-card--profile .fo-dog-card__image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.fo-dog-card--profile .fo-dog-card__image img,
.fo-dog-card--profile .fo-dog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.fo-dog-card--profile .fo-dog-card__image::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(11, 17, 13, 0.95) 0%, transparent 100%);
  pointer-events: none;
}

.fo-dog-card--profile .fo-dog-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1rem 1rem;
  z-index: 1;
}

.fo-dog-card--profile .fo-dog-card__title {
  font-family: var(--fo-font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.fo-dog-card--profile .fo-dog-card__trait {
  font-size: 0.85rem;
  color: var(--fo-gold-champagne);
  margin: 0 0 0.5rem;
}

.fo-dog-card--profile .fo-dog-card__meta {
  font-size: 0.75rem;
  opacity: 0.85;
}
