/* MahaCina《诗与酒》 P40 / launch visual polish: mobile poet pages only.
 * No typography-family changes, no content/URL/meta/translation operations.
 * Preserve the approved V5 portrait, facts frame, and featured-work framing.
 */
@media (max-width: 600px) {
  body.single-poet .poet-single__nav {
    isolation: isolate;
    box-shadow: 0 5px 12px -12px rgba(45,62,70,.42);
  }
  body.single-poet .poet-single__nav-row {
    box-sizing: border-box;
    gap: 21px;
    padding-inline: 16px 36px;
    scroll-padding-inline: 16px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  body.single-poet .poet-single__nav-link {
    white-space: nowrap;
    scroll-snap-align: start;
    padding-block: 13px 12px;
  }
  body.single-poet .poet-single__nav.can-scroll-right::after,
  body.single-poet .poet-single__nav.can-scroll-left::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 1px;
    width: 31px;
    z-index: 1;
    pointer-events: none;
  }
  body.single-poet .poet-single__nav.can-scroll-right::after {
    right: 0;
    background: linear-gradient(to right, rgba(245,241,231,0), #f5f1e7 87%);
  }
  body.single-poet .poet-single__nav.can-scroll-left::before {
    left: 0;
    background: linear-gradient(to left, rgba(245,241,231,0), #f5f1e7 87%);
  }
  body.single-poet .poet-single__nav-link:focus-visible {
    outline: 2px solid #315b68;
    outline-offset: -3px;
  }
}
@media (max-width: 560px) {
  :is(html:lang(en), html:lang(es), html:lang(fr), html:lang(ja))
  body.single-poet .poet-catalog__list.is-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  :is(html:lang(en), html:lang(es), html:lang(fr), html:lang(ja))
  body.single-poet .poet-catalog__list.is-gallery .poet-catalog__item {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: clamp(102px, 30vw, 126px) minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(197,166,118,.32);
    min-width: 0;
  }
  :is(html:lang(en), html:lang(es), html:lang(fr), html:lang(ja))
  body.single-poet .poet-catalog__list.is-gallery .poet-catalog__item:not(:has(.poet-catalog__image)) {
    grid-template-columns: minmax(0, 1fr);
  }
  :is(html:lang(en), html:lang(es), html:lang(fr), html:lang(ja))
  body.single-poet .poet-catalog__list.is-gallery .poet-catalog__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 5px;
    min-width: 0;
  }
  :is(html:lang(en), html:lang(es), html:lang(fr), html:lang(ja))
  body.single-poet .poet-catalog__list.is-gallery .poet-catalog__copy {
    padding-top: 0;
    min-width: 0;
  }
  :is(html:lang(en), html:lang(es), html:lang(fr), html:lang(ja))
  body.single-poet .poet-catalog__list.is-gallery .poet-catalog__copy h3 {
    margin: 0 0 5px;
    font-size: clamp(15px, 4vw, 17px);
    line-height: 1.4;
    letter-spacing: 0;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  :is(html:lang(en), html:lang(es), html:lang(fr), html:lang(ja))
  body.single-poet .poet-catalog__list.is-gallery .poet-catalog__first {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow: hidden;
    line-height: 1.55;
    font-size: 12px;
  }
  :is(html:lang(en), html:lang(es), html:lang(fr), html:lang(ja))
  body.single-poet .poet-catalog__list.is-gallery .poet-catalog__themes {
    margin-top: 7px;
    gap: 3px 10px;
    font-size: 11px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.single-poet .poet-single__nav-row { scroll-behavior: auto; }
}
