/* Enciclopedia — species hub, breed grid, breed article */

.ph-encyc {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  color: var(--ph-text);
}

.ph-encyc__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 46% at 24% 18%, rgba(10, 11, 14, 0.25), transparent 70%),
    linear-gradient(180deg, rgba(10, 11, 14, 0.55) 0%, rgba(10, 11, 14, 0.82) 100%),
    var(--ph-hub-marble) center / cover no-repeat,
    #0a0b0f;
}

.ph-encyc__orbit {
  position: absolute;
  right: -10%;
  top: 6%;
  width: min(68vmin, 40rem);
  height: min(68vmin, 40rem);
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  border: 1px dashed rgba(240, 199, 94, 0.22);
  opacity: 0.65;
  animation: ph-encyc-orbit 70s linear infinite;
}

.ph-encyc__inner {
  position: relative;
  z-index: 2;
}

.ph-encyc__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
  font-family: var(--ph-font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ph-glow-lime);
}

.ph-encyc__eyebrow-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px rgba(212, 255, 0, 0.45);
}

.ph-encyc__title {
  margin: 0;
  font-family: var(--ph-font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.8vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: #f7f4ee;
}

.ph-encyc__lead {
  margin: 0.9rem 0 0;
  max-width: 38ch;
  font-family: var(--ph-font-display);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.45;
  color: #e0c07a;
}

.ph-encyc__method {
  margin: 0.85rem 0 0;
}

.ph-encyc__method a {
  color: rgba(245, 242, 236, 0.72);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-size: 0.92rem;
}

.ph-encyc__method a:hover {
  color: #f7f4ee;
}

.ph-encyc-hero {
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.ph-encyc-hero .ph-breadcrumbs {
  margin-bottom: 1rem;
}

/* Species picker */
.ph-encyc-species__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
}

.ph-encyc-species__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 1.15rem;
  overflow: hidden;
  background: rgba(255, 248, 240, 0.04);
  border: 1px solid rgba(255, 248, 240, 0.08);
  transition: transform 240ms var(--ph-ease-out), border-color 240ms, background 240ms;
}

.ph-encyc-species__card:hover {
  transform: translateY(-3px);
  border-color: rgba(224, 192, 122, 0.35);
  background: rgba(255, 248, 240, 0.07);
}

.ph-encyc-species__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #12141a;
}

.ph-encyc-species__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-encyc-species__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1rem 1.1rem;
}

.ph-encyc-species__name {
  font-family: var(--ph-font-display);
  font-size: 1.35rem;
  font-weight: 650;
  color: #f7f4ee;
}

.ph-encyc-species__meta {
  font-family: var(--ph-font-ui);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 248, 240, 0.55);
}

/* Breed miniature grid */
.ph-encyc-breeds__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1.1rem 0.85rem;
}

.ph-encyc-breed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.ph-encyc-breed__media {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: transform 240ms var(--ph-ease-out), filter 240ms;
}

.ph-encyc-breed:hover .ph-encyc-breed__media {
  transform: translateY(-3px);
}

.ph-encyc-breed__media picture {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.ph-encyc-breed__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  background: transparent;
  mix-blend-mode: normal;
  /* Soft rim so dark coats stay readable on dark UI — silueta sin caja de fondo */
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
  transition: filter 240ms var(--ph-ease-out);
}

.ph-encyc-breed:hover .ph-encyc-breed__media img {
  filter:
    drop-shadow(0 14px 28px rgba(0, 0, 0, 0.6));
}

.ph-encyc-breed__name {
  font-family: var(--ph-font-ui);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: rgba(255, 248, 240, 0.9);
  max-width: 12ch;
}

.ph-encyc-species-topics {
  margin-top: 1.15rem;
  max-width: 68ch;
}

.ph-encyc-species-topics__intro {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 248, 240, 0.86);
}

.ph-encyc-species-topics__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
}

.ph-encyc-species-topics__list li {
  margin: 0;
}

.ph-encyc-species-topics__list a {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-height: 100%;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 248, 240, 0.04);
  border: 1px solid rgba(255, 248, 240, 0.08);
  border-radius: 1rem;
  transition: border-color 180ms var(--ph-ease-out), transform 180ms var(--ph-ease-out), background 180ms var(--ph-ease-out);
}

.ph-encyc-species-topics__list a:hover {
  transform: translateY(-2px);
  border-color: rgba(224, 192, 122, 0.45);
  background: rgba(255, 248, 240, 0.06);
}

.ph-encyc-species-topics__list strong {
  font-family: var(--ph-font-display);
  font-size: 1rem;
  color: #f7f4ee;
}

.ph-encyc-species-topics__list span {
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 248, 240, 0.7);
}

.ph-encyc-hub-foot {
  margin: 0 0 2.5rem;
  font-size: 0.95rem;
  color: rgba(255, 248, 240, 0.78);
}

.ph-encyc-hub-foot a {
  margin-left: 0.35rem;
  color: #e0c07a;
}

/* Article */
.ph-encyc-article-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  margin-top: 1.25rem;
}

.ph-encyc-article-hero__visual {
  margin: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.ph-encyc-article-hero__visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: transparent;
  filter:
    drop-shadow(0 14px 30px rgba(0, 0, 0, 0.4));
}

.ph-encyc-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 1.35rem 0 0;
  padding: 0;
}

.ph-encyc-facts div {
  margin: 0;
}

.ph-encyc-facts dt {
  margin: 0 0 0.2rem;
  font-family: var(--ph-font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 248, 240, 0.5);
}

.ph-encyc-facts dd {
  margin: 0;
  font-family: var(--ph-font-display);
  font-size: 0.98rem;
  line-height: 1.35;
  color: #f0ebe3;
}

.ph-encyc-article-body {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.ph-encyc-article-body__scene {
  margin: 0 0 1.75rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 240, 0.08);
  background: #0a0b0f;
}

.ph-encyc-article-body__scene img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ph-encyc-article-body__heading {
  margin: 0 0 0.85rem;
  font-family: var(--ph-font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  color: #f7f4ee;
}

.ph-encyc-article-body__text {
  max-width: 62ch;
}

.ph-encyc-article-body__text p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 248, 240, 0.82);
}

.ph-encyc-article-body__back {
  margin: 2rem 0 0;
}

.ph-encyc-article-body__back a {
  font-family: var(--ph-font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #e0c07a;
}

.ph-encyc-article-body__back a:hover {
  color: #f0d78a;
}

@keyframes ph-encyc-orbit {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 820px) {
  .ph-encyc-article-hero__grid {
    grid-template-columns: 1fr;
  }

  .ph-encyc-article-hero__visual {
    max-width: 18rem;
    margin-inline: auto;
  }

  .ph-encyc-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ph-encyc-breeds__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-encyc__orbit,
  .ph-encyc-species__card,
  .ph-encyc-breed__media {
    animation: none;
    transition: none;
  }
}

/* —— Capítulo editorial —— */

.ph-encyc--chapter {
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.ph-chapter-hero__subtitle {
  margin: 0.85rem 0 0;
  max-width: 52ch;
  font-family: var(--ph-font-display);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.4;
  color: #e0c07a;
}

.ph-chapter-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.15rem 0 0;
}

.ph-chapter-hero__scene {
  margin: 1.5rem 0 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 240, 0.08);
  background: #0a0b0f;
}

.ph-chapter-hero__scene picture {
  display: block;
  width: 100%;
}

.ph-chapter-hero__scene img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ph-chapter-hero__summary {
  margin: 1.35rem 0 0;
  max-width: 68ch;
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255, 248, 240, 0.86);
}

.ph-chapter-block-title {
  margin: 0 0 1rem;
  font-family: var(--ph-font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: #f7f4ee;
}

.ph-chapter-spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3.5vw, 3.5rem);
  align-items: center;
  justify-items: start;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.ph-chapter-spotlight__portrait {
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  justify-self: start;
  width: 100%;
}

.ph-chapter-spotlight__portrait picture {
  display: block;
  width: 100%;
  max-width: 28rem;
}

.ph-chapter-spotlight__portrait img {
  width: 100%;
  max-width: 28rem;
  height: auto;
  display: block;
  margin: 0;
  object-fit: contain;
  background: transparent;
  filter:
    drop-shadow(0 0 0.7px rgba(255, 248, 240, 0.5))
    drop-shadow(0 0 1.4px rgba(255, 248, 240, 0.22))
    drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.ph-breed-gallery {
  position: relative;
  width: 100%;
  max-width: 28rem;
  outline: none;
}

.ph-breed-gallery:focus-visible {
  outline: 2px solid rgba(196, 214, 0, 0.65);
  outline-offset: 6px;
  border-radius: 4px;
}

.ph-breed-gallery__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.ph-breed-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0;
  filter:
    drop-shadow(0 0 0.7px rgba(255, 248, 240, 0.5))
    drop-shadow(0 0 1.4px rgba(255, 248, 240, 0.22))
    drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.ph-breed-gallery__caption {
  margin: 0.65rem 0 0;
  text-align: center;
  font-family: var(--ph-font-body, system-ui, sans-serif);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.62);
}

.ph-breed-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.ph-breed-gallery__dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ph-breed-gallery__dot {
  appearance: none;
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(247, 244, 238, 0.28);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.ph-breed-gallery__dot.is-active {
  background: rgba(196, 214, 0, 0.9);
  transform: scale(1.2);
}

.ph-breed-gallery__btn {
  appearance: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 244, 238, 0.22);
  background: rgba(247, 244, 238, 0.08);
  color: #f7f4ee;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  touch-action: manipulation;
}

.ph-breed-gallery__btn:hover,
.ph-breed-gallery__btn:focus-visible {
  background: rgba(247, 244, 238, 0.14);
  border-color: rgba(196, 214, 0, 0.5);
  outline: none;
}

.ph-breed-gallery__btn:active {
  transform: scale(0.96);
}

.ph-chapter-ficha {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.ph-chapter-ficha .ph-chapter-block-title {
  margin-bottom: 1.35rem;
}

.ph-chapter-ficha__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.35rem, 2.5vw, 2rem) clamp(1.25rem, 2.5vw, 2.25rem);
  margin: 0;
  padding: 0;
}

.ph-chapter-ficha__list div {
  margin: 0;
  padding: 0;
  border: 0;
}

.ph-chapter-ficha__list dt {
  margin: 0 0 0.4rem;
  font-family: var(--ph-font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(224, 192, 122, 0.72);
}

.ph-chapter-ficha__list dd {
  margin: 0;
  font-family: var(--ph-font-display);
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #f7f4ee;
}

.ph-chapter-scores {
  margin-top: clamp(2rem, 4.5vw, 2.75rem);
}

.ph-chapter-scores__note {
  margin: 0.9rem 0 0;
  max-width: 52ch;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(245, 242, 236, 0.62);
}

.ph-chapter-scores__note a {
  color: #e0c07a;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.ph-chapter-scores__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem 1.35rem;
}

.ph-chapter-score {
  padding: 0.7rem 0.85rem 0.75rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.04), rgba(255, 248, 240, 0.015));
  border: 1px solid rgba(255, 248, 240, 0.07);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.ph-chapter-score__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ph-chapter-score__label {
  font-family: var(--ph-font-ui);
  font-size: 0.72rem;
  font-weight: 650;
  color: rgba(255, 248, 240, 0.88);
}

.ph-chapter-score__value {
  font-family: var(--ph-font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  color: #f0d48e;
  text-shadow: 0 0 18px rgba(224, 192, 122, 0.35);
}

.ph-chapter-score__bar {
  --ph-score-fill: 0%;
  position: relative;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(6, 7, 10, 0.55);
  border: 1px solid rgba(255, 248, 240, 0.1);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 248, 240, 0.04);
  overflow: visible;
}

.ph-chapter-score__bar::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -0.45rem;
  height: 0.55rem;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(224, 192, 122, 0.22), transparent 72%);
  opacity: 0.85;
  pointer-events: none;
  filter: blur(4px);
}

.ph-chapter-score__bar span {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a67c2e 0%, #d4b06a 42%, #f0d48e 100%);
  box-shadow:
    0 3px 10px rgba(224, 192, 122, 0.42),
    0 1px 3px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.ph-chapter-layout {
  display: block;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.ph-chapter-layout--toc {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

@media (min-width: 1100px) {
  .ph-chapter-layout--toc {
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
  }

  .ph-chapter-toc--rail {
    /* TOC fijo “sticky” dentro del capítulo, sin max-height/scroll interno. */
    position: sticky;
    top: calc(var(--ph-header-h, 4.5rem) + 1rem);
    max-height: none;
    overflow: visible;
    /* Importante: el contenido principal debe quedar por encima (evita tapar). */
    z-index: 0;
    padding-right: 0.35rem;
  }

  .ph-chapter-toc--mobile {
    display: none;
  }

  .ph-chapter-main {
    margin-inline: 0;
    max-width: 72ch;
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 1099px) {
  .ph-chapter-toc--rail {
    display: none;
  }
}

.ph-chapter-toc {
  position: relative;
  top: auto;
  align-self: start;
  width: 100%;
  max-width: 40rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  max-height: none;
  overflow: visible;
}

.ph-chapter-toc--mobile {
  margin: clamp(1.5rem, 4vw, 2.25rem) auto 0;
}

.ph-chapter-toc__label {
  margin: 0 0 0.85rem;
  font-family: var(--ph-font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 199, 94, 0.9);
}

.ph-chapter-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  counter-reset: ph-toc;
}

.ph-chapter-toc--mobile .ph-chapter-toc__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.1rem;
  row-gap: 0.4rem;
}

.ph-chapter-toc__list li {
  counter-increment: ph-toc;
}

.ph-chapter-toc__list a {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.4rem;
  align-items: baseline;
  font-family: var(--ph-font-display);
  font-size: 0.92rem;
  line-height: 1.3;
  text-decoration: none;
  color: rgba(255, 248, 240, 0.72);
  transition: color 180ms var(--ph-ease-out);
}

.ph-chapter-toc__list a::before {
  content: counter(ph-toc, decimal-leading-zero);
  font-family: var(--ph-font-ui);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(224, 192, 122, 0.7);
}

.ph-chapter-toc__list a:hover,
.ph-chapter-toc__list a.is-active {
  color: #f7f4ee;
}

.ph-chapter-toc__list a.is-active::before {
  color: var(--ph-orbit-gold);
}

.ph-chapter-main {
  min-width: 0;
  max-width: 72ch;
  margin-inline: auto;
}

.ph-chapter-section {
  scroll-margin-top: calc(var(--ph-header-h, 4.5rem) + 1rem);
}

.ph-chapter-section {
  margin: 0 0 clamp(2.25rem, 4vw, 3rem);
  scroll-margin-top: 5.5rem;
}

.ph-chapter-section__title {
  margin: 0 0 0.9rem;
  font-family: var(--ph-font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  color: #f7f4ee;
}

.ph-chapter-section__body p,
.ph-chapter-faq__a p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.68;
  color: rgba(255, 248, 240, 0.84);
}

.ph-chapter-curiosidades {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ph-chapter-curiosidades li {
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 248, 240, 0.84);
}

.ph-chapter-mitos {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.ph-chapter-mito {
  margin: 0;
  padding: 1rem 1.15rem;
  border-left: 2px solid rgba(224, 192, 122, 0.55);
  background: rgba(255, 248, 240, 0.035);
}

.ph-chapter-mito__myth {
  margin: 0 0 0.55rem;
  font-family: var(--ph-font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: #e0c07a;
}

.ph-chapter-mito__truth {
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 248, 240, 0.82);
}

.ph-chapter-faq__item {
  border-bottom: 1px solid rgba(255, 248, 240, 0.1);
  padding: 0.35rem 0;
}

.ph-chapter-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 0;
  font-family: var(--ph-font-display);
  font-size: 1.05rem;
  color: #f7f4ee;
}

.ph-chapter-faq__item summary::-webkit-details-marker {
  display: none;
}

.ph-chapter-faq__item summary::before {
  content: "+";
  display: inline-block;
  width: 1.1rem;
  margin-right: 0.35rem;
  color: #e0c07a;
  font-weight: 700;
}

.ph-chapter-faq__item[open] summary::before {
  content: "–";
}

.ph-chapter-faq__a {
  padding: 0 0 1rem 1.45rem;
}

.ph-chapter-fit {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.85rem;
}

.ph-chapter-fit__card {
  padding: 1rem 1.05rem;
  border-radius: 0.85rem;
  background: rgba(255, 248, 240, 0.04);
  border: 1px solid rgba(255, 248, 240, 0.08);
}

.ph-chapter-fit__profile {
  margin: 0 0 0.35rem;
  font-family: var(--ph-font-display);
  font-size: 1.05rem;
  color: #f7f4ee;
}

.ph-chapter-fit__verdict {
  margin: 0 0 0.45rem;
  font-family: var(--ph-font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e0c07a;
}

.ph-chapter-fit__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 248, 240, 0.75);
}

.ph-chapter-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.ph-chapter-related__card {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.55rem;
  border-radius: 0.85rem;
  background: rgba(255, 248, 240, 0.04);
  border: 1px solid rgba(255, 248, 240, 0.08);
  transition: border-color 200ms, background 200ms;
}

.ph-chapter-related__card:hover {
  border-color: rgba(224, 192, 122, 0.35);
  background: rgba(255, 248, 240, 0.07);
}

.ph-chapter-related__card picture {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
}

.ph-chapter-related__card img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  filter:
    drop-shadow(0 0 0.6px rgba(255, 248, 240, 0.5))
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.ph-chapter-related__card strong {
  display: block;
  font-family: var(--ph-font-display);
  font-size: 1.05rem;
  color: #f7f4ee;
}

.ph-chapter-related__card small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 248, 240, 0.6);
}

.ph-chapter-refs {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 248, 240, 0.78);
}

.ph-chapter-refs a {
  color: #e0c07a;
  text-decoration: none;
}

.ph-chapter-refs a:hover {
  text-decoration: underline;
}

.ph-chapter-refs__source,
.ph-chapter-refs__type {
  color: rgba(255, 248, 240, 0.5);
}

@media (max-width: 900px) {
  .ph-chapter-spotlight {
    grid-template-columns: 1fr;
  }

  .ph-chapter-spotlight__portrait img {
    max-width: 22rem;
    margin-inline: auto;
  }

  .ph-chapter-toc--mobile {
    max-width: none;
  }

  .ph-chapter-ficha__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ph-chapter-ficha__list {
    grid-template-columns: 1fr;
  }

  .ph-chapter-toc--mobile .ph-chapter-toc__list {
    grid-template-columns: 1fr;
  }
}

/* Browse toolbar + compare */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ph-encyc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin: 0 0 1.5rem;
}

.ph-encyc-toolbar__search {
  flex: 1 1 14rem;
}

.ph-encyc-toolbar__search input,
.ph-encyc-toolbar__sort select,
.ph-encyc-global input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 11, 14, 0.55);
  color: var(--ph-text);
  font: inherit;
  border-radius: 0;
}

.ph-encyc-toolbar__sort select {
  min-width: 7.5rem;
}

.ph-encyc-toolbar__meta {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

.ph-encyc-compare-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin-top: 2rem;
  padding: 0.85rem 0;
  background: rgba(10, 11, 14, 0.92);
  border-top: 1px solid rgba(240, 199, 94, 0.25);
  backdrop-filter: blur(8px);
}

.ph-encyc-compare-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.ph-encyc-compare-bar__inner p {
  margin: 0;
}

.ph-encyc-compare-bar__actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.ph-encyc-compare-bar__actions a[aria-disabled="true"],
.ph-encyc-compare-bar__actions a:not([href]) {
  opacity: 0.45;
  pointer-events: none;
}

.ph-encyc-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 4vw, 2.5rem);
  margin-top: 0.5rem;
}

.ph-encyc-compare__col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ph-encyc-compare__portrait {
  display: block;
  position: relative;
  aspect-ratio: 1;
  max-width: 18rem;
}

.ph-encyc-compare__portrait picture {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.ph-encyc-compare__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ph-encyc-compare__name {
  margin: 0;
  font-family: var(--ph-font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.ph-encyc-compare__name a {
  color: inherit;
  text-decoration: none;
}

.ph-encyc-compare__facts {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.ph-encyc-compare__facts div {
  display: grid;
  gap: 0.15rem;
}

.ph-encyc-compare__facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.ph-encyc-compare__facts dd {
  margin: 0;
}

.ph-encyc-compare__scores {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.ph-encyc-compare__scores li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0;
  font-size: 0.92rem;
}

.ph-encyc-global {
  position: relative;
  margin-top: 1.25rem;
  max-width: 28rem;
}

.ph-encyc-global__results {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  position: absolute;
  inset-inline: 0;
  z-index: 5;
  background: #12141a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  max-height: 18rem;
  overflow: auto;
}

.ph-encyc-global__results a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ph-encyc-global__results a:hover {
  background: rgba(240, 199, 94, 0.08);
}

.ph-encyc-global__results span {
  opacity: 0.65;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .ph-encyc-compare {
    grid-template-columns: 1fr;
  }
}
