/*
 * 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;
}

/* ── Vom Honigdorf: 4-column dog grid ── */
.fo-dogs-shell--grid .fo-dogs-shell__header {
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.fo-dogs-shell--grid .fo-dogs-shell__widget--grid .bb-dogs-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 768px) {
  .fo-dogs-shell--grid .fo-dogs-shell__widget--grid .bb-dogs-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.fo-dog-card__title a {
  color: var(--fo-gold-champagne);
}

.fo-dog-card__breed {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fo-text-platinum);
  margin: 0 0 0.75rem;
}

.fo-dog-card__meta-list {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.35rem;
}

.fo-dog-card__meta-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.fo-dog-card__meta-row dt {
  color: var(--fo-text-platinum);
  margin: 0;
}

.fo-dog-card__meta-row dd {
  color: var(--fo-text-white);
  margin: 0;
  text-align: right;
}

.fo-dog-card__btn-icon {
  display: inline-block;
  width: 0.875rem;
  height: 0.875rem;
  margin-right: 0.35rem;
  vertical-align: -0.1em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M8.5 11c1.38 0 2.5-1.12 2.5-2.5S9.88 6 8.5 6 6 7.12 6 8.5 7.12 11 8.5 11zm7 0c1.38 0 2.5-1.12 2.5-2.5S16.38 6 15 6s-2.5 1.12-2.5 2.5 1.12 2.5 2.5 2.5zM12 14c-2.33 0-7 1.17-7 3.5V20h14v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M8.5 11c1.38 0 2.5-1.12 2.5-2.5S9.88 6 8.5 6 6 7.12 6 8.5 7.12 11 8.5 11zm7 0c1.38 0 2.5-1.12 2.5-2.5S16.38 6 15 6s-2.5 1.12-2.5 2.5 1.12 2.5 2.5 2.5zM12 14c-2.33 0-7 1.17-7 3.5V20h14v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fo-dogs-shell__footer {
  margin-top: 2rem;
  text-align: center;
}
