/* Breed profile — standalone playful layout */

body.theme-playful:has(.breed-profile) {
  background: #fff;
}

body.theme-playful:has(.breed-profile) .theme-playful__footer {
  margin-top: 0;
}

@media (min-width: 1100px) {
  body.theme-playful:has(.breed-profile) {
    background: #faf7f0;
  }
}

.breed-profile {
  background: transparent;
}

.breed-profile__page {
  padding-bottom: 4rem;
}

@media (min-width: 1100px) {
  .breed-profile__page {
    background: #fff;
  }
}

.breed-profile__top {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.breed-profile__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a5c42;
  transition: gap 0.2s;
}

.breed-profile__back:hover {
  gap: 0.55rem;
}

/* Hero */
.breed-profile__hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem 1.25rem 0 0;
  border: 1px solid rgba(26, 92, 66, 0.12);
  border-bottom: none;
  box-shadow: 0 12px 40px rgba(26, 51, 40, 0.1);
}

.breed-profile__hero-media {
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 220px;
}

.breed-profile__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.breed-profile__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 51, 40, 0.15) 0%,
    rgba(26, 51, 40, 0.55) 55%,
    rgba(26, 51, 40, 0.88) 100%
  );
}

.breed-profile__hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.25rem 1.75rem;
  color: #fff;
}

.breed-profile__hero-content--solo {
  position: static;
  background: linear-gradient(145deg, #1a3328 0%, #1a5c42 100%);
  padding: 2rem 1.5rem;
  border-bottom: 4px solid #f0c14a;
}

.breed-profile__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a3328;
  background: #f0c14a;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.875rem;
}

.breed-profile__badge .material-symbols-outlined {
  font-size: 0.875rem;
}

.breed-profile__title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.breed-profile__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 42rem;
  margin: 0;
}

.breed-profile__hero-content--solo .breed-profile__lead {
  color: rgba(255, 255, 255, 0.9);
}

/* Quick facts — flat stat bar attached to hero */
.breed-profile__hero + .breed-profile__facts {
  border: 1px solid rgba(26, 92, 66, 0.12);
  border-top: 3px solid #f0c14a;
  border-radius: 0 0 1.25rem 1.25rem;
  box-shadow: 0 12px 40px rgba(26, 51, 40, 0.08);
}

.breed-profile__facts {
  margin-top: 0;
  padding: 1.25rem 0;
  background: #1a5c42;
}

.breed-profile__facts-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breed-profile__facts-item {
  flex: 1 1 50%;
  min-width: 9rem;
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 640px) {
  .breed-profile__facts-item {
    flex: 1 1 33.333%;
  }
}

@media (min-width: 900px) {
  .breed-profile__facts-item {
    flex: 1 1 16.666%;
    padding: 0.25rem 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }

  .breed-profile__facts-item:last-child {
    border-right: none;
  }
}

.breed-profile__facts-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.35rem;
}

.breed-profile__facts-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.breed-profile__facts-note {
  display: block;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.25rem;
  line-height: 1.35;
}

/* Main content — inset from page edges */
.breed-profile__body {
  min-width: 0;
  padding-top: 0;
  padding-inline: clamp(1rem, 4vw, 3.5rem);
}

@media (min-width: 1100px) {
  .breed-profile__body {
    padding-inline: 4.5rem;
  }
}

.breed-profile .article-playful__more {
  padding-inline: clamp(1rem, 4vw, 3.5rem);
}

@media (min-width: 1100px) {
  .breed-profile .article-playful__more {
    padding-inline: 4.5rem;
  }
}

/* Horizontal page nav */
.breed-profile__nav-bar {
  position: sticky;
  top: 4.5rem;
  z-index: 20;
  margin: 2rem 0 2.5rem;
  padding: 0.875rem 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.breed-profile__nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breed-profile__nav-list li {
  display: inline-flex;
  align-items: center;
}

.breed-profile__nav-list li:not(:last-child)::after {
  content: "·";
  margin: 0 0.875rem;
  font-size: 1rem;
  line-height: 1;
  color: rgba(26, 92, 66, 0.35);
  user-select: none;
  pointer-events: none;
}

.breed-profile__nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #4a5750;
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: color 0.2s ease;
}

.breed-profile__nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #1a5c42;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.breed-profile__nav-list a:hover,
.breed-profile__nav-list a:focus-visible {
  color: #1a3328;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.breed-profile__nav-list a:hover::after,
.breed-profile__nav-list a:focus-visible::after {
  transform: scaleX(1);
}

/* Sections */
.breed-profile__section {
  margin-bottom: 3rem;
  scroll-margin-top: 7rem;
}

.breed-profile__section:last-child {
  margin-bottom: 0;
}

.breed-profile__section-title {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a3328;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.breed-profile__section-title::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  margin-top: 0.2em;
  align-self: stretch;
  min-height: 1.25em;
  border-radius: 2px;
  background: linear-gradient(180deg, #1a5c42 0%, #2d7a5a 100%);
}

.breed-profile__section-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #4a5750;
  margin: 0 0 1.25rem;
}

/* Appearance */
.breed-profile__measurements {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .breed-profile__measurements {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.breed-profile__measurement {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(26, 92, 66, 0.1);
  box-shadow: 0 4px 20px rgba(26, 92, 66, 0.06);
}

.breed-profile__measurement-figure {
  flex: 1 1 50%;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.breed-profile__measurement-img {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}

.breed-profile__measurement-caption {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: #5c6b62;
  background: #faf7f0;
  border-top: 2px solid #f0c14a;
}

.breed-profile__measurement-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 50%;
  min-width: 0;
  padding: 1.125rem 1.25rem;
}

.breed-profile__measurement-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a5c42;
  margin: 0 0 0.75rem;
}

.breed-profile__measurement-stat--divider {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(26, 51, 40, 0.1);
}

.breed-profile__measurement-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a5c42;
  margin: 0 0 0.35rem;
}

.breed-profile__measurement-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a3328;
  margin: 0;
  line-height: 1.3;
}

.breed-profile__measurement-note {
  font-size: 0.8125rem;
  color: #5c6b62;
  margin: 0.35rem 0 0;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .breed-profile__measurement {
    flex-direction: column;
  }

  .breed-profile__measurement-img {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

/* Appearance trait cards */
.breed-profile__trait-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .breed-profile__trait-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .breed-profile__trait-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.breed-profile__trait-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(26, 92, 66, 0.1);
  box-shadow: 0 4px 16px rgba(26, 92, 66, 0.05);
}

.breed-profile__trait-figure {
  margin: 0;
  margin-top: auto;
}

.breed-profile__trait-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.breed-profile__trait-body {
  padding: 1rem 1.125rem 0.875rem;
  flex: 1;
}

.breed-profile__trait-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1a5c42;
  margin: 0 0 0.45rem;
}

.breed-profile__trait-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #5c6b62;
}

/* History — two columns */
.breed-profile__history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .breed-profile__history-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 2.5rem;
  }
}

.breed-profile__history-text p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #4a5750;
  margin: 0 0 1rem;
}

.breed-profile__history-text p:last-child {
  margin-bottom: 0;
}

.breed-profile__timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid #e8f5ee;
}

.breed-profile__timeline-item {
  position: relative;
  padding: 0 0 1.25rem 1.25rem;
}

.breed-profile__timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1a5c42;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #e8f5ee;
}

.breed-profile__timeline-item:last-child {
  padding-bottom: 0;
}

.breed-profile__timeline-year {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a5c42;
  margin-bottom: 0.25rem;
}

.breed-profile__timeline-text {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #4a5750;
}

/* Temperament */
.breed-profile__temperament-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .breed-profile__temperament-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.breed-profile__temperament-card {
  padding: 1.125rem 1.25rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(26, 92, 66, 0.1);
  box-shadow: 0 4px 16px rgba(26, 92, 66, 0.05);
}

.breed-profile__temperament-icon {
  font-size: 1.375rem;
  color: #1a5c42;
  margin-bottom: 0.5rem;
}

.breed-profile__temperament-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a3328;
  margin: 0 0 0.4rem;
}

.breed-profile__temperament-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #5c6b62;
  margin: 0;
}

/* Colours */
.breed-profile__colors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .breed-profile__colors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.breed-profile__color-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(26, 51, 40, 0.08);
  box-shadow: 0 4px 20px rgba(26, 51, 40, 0.06);
  --coat-color: #1a5c42;
}

.breed-profile__color-card--black {
  --coat-color: #1a1a1a;
}

.breed-profile__color-card--yellow {
  --coat-color: #e8b84a;
}

.breed-profile__color-card--chocolate {
  --coat-color: #6b3f2a;
}

.breed-profile__color-figure {
  margin: 0;
}

.breed-profile__color-accent {
  display: block;
  height: 4px;
  background: var(--coat-color);
}

.breed-profile__color-media {
  display: block;
  overflow: hidden;
}

.breed-profile__color-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.breed-profile__color-media:hover .breed-profile__color-img {
  transform: scale(1.04);
}

.breed-profile__color-body {
  padding: 1rem 1.125rem 1.125rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.breed-profile__color-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1a3328;
  margin: 0 0 0.5rem;
}

.breed-profile__color-swatch {
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--coat-color);
  border: 1px solid rgba(26, 51, 40, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.breed-profile__color-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #5c6b62;
  margin: 0 0 0.875rem;
  flex: 1;
}

.breed-profile__color-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a5c42;
  text-decoration: none;
}

.breed-profile__color-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breed-profile__color-link .material-symbols-outlined {
  font-size: 0.875rem;
}

/* Health — two-column cards */
.breed-profile__health-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .breed-profile__health-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.breed-profile__health-item {
  min-width: 0;
}

.breed-profile__health-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 100%;
  padding: 1rem 1.125rem;
  background: #fff;
  border: 1px solid rgba(26, 92, 66, 0.1);
  border-radius: 0.875rem;
  transition: background 0.15s, border-color 0.15s;
}

.breed-profile__health-card--link {
  text-decoration: none;
  color: inherit;
}

.breed-profile__health-card--link:hover {
  background: #faf7f0;
  border-color: rgba(26, 92, 66, 0.18);
}

.breed-profile__health-main {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.breed-profile__health-copy {
  display: block;
  min-width: 0;
}

.breed-profile__health-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: #1a5c42;
  margin-top: 0.1rem;
}

.breed-profile__health-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1a3328;
}

.breed-profile__health-desc {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #5c6b62;
  margin-top: 0.2rem;
}

.breed-profile__health-arrow {
  flex-shrink: 0;
  color: #1a5c42;
  font-size: 1.25rem;
}

/* Lifespan */
.breed-profile__lifespan {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .breed-profile__lifespan {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 1.5rem;
  }
}

.breed-profile__lifespan-text p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #4a5750;
  margin: 0 0 1rem;
}

.breed-profile__lifespan-text p:last-child {
  margin-bottom: 0;
}

.breed-profile__lifespan-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  padding: 1.5rem;
  background: #f0c14a;
  border-radius: 1rem;
  color: #2a332e;
}

.breed-profile__lifespan-stat-icon {
  font-size: 2.25rem;
  font-variation-settings: "FILL" 1;
}

.breed-profile__lifespan-stat-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.breed-profile__lifespan-stat-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-top: 0.35rem;
}

.breed-profile__lifespan-stat-note {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.breed-profile__section--prose {
  margin-bottom: 3rem;
}

/* Choosing breeder or shelter — two columns */
.breed-profile__choosing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .breed-profile__choosing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.breed-profile__choosing-card {
  padding: 1.25rem 1.375rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(26, 92, 66, 0.1);
  box-shadow: 0 4px 16px rgba(26, 92, 66, 0.05);
}

.breed-profile__choosing-card--breeder {
  border-top: 4px solid #1a5c42;
}

.breed-profile__choosing-card--shelter {
  border-top: 4px solid #f0c14a;
}

.breed-profile__choosing-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1a3328;
  margin: 0 0 0.875rem;
}

.breed-profile__choosing-list {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.breed-profile__choosing-list li {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4a5750;
  margin-bottom: 0.5rem;
}

.breed-profile__choosing-list li:last-child {
  margin-bottom: 0;
}

/* Prose (remaining markdown) */
.prose-breed {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #4a5750;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e8f5ee;
}

.prose-breed h2 {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a3328;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  scroll-margin-top: 7rem;
}

.prose-breed h2::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  margin-top: 0.2em;
  align-self: stretch;
  min-height: 1.25em;
  border-radius: 2px;
  background: linear-gradient(180deg, #1a5c42 0%, #2d7a5a 100%);
}

.prose-breed h2:first-child {
  margin-top: 0;
}

.prose-breed h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1a3328;
  margin-top: 1.5rem;
  margin-bottom: 0.625rem;
}

.prose-breed p {
  margin-bottom: 1.125rem;
}

.prose-breed p strong {
  color: #1a3328;
  font-weight: 600;
}

.prose-breed ul,
.prose-breed ol {
  margin-bottom: 1.125rem;
  padding-left: 1.5rem;
}

.prose-breed ul {
  list-style: disc;
}

.prose-breed li {
  margin-bottom: 0.5rem;
}
