/* 《诗与酒》诗人门户 | ES/FR editorial typography + readable dynasty switcher
 * Local design P32, 2026-11-23. ES/FR-only; no term/slug/translation data changes.
 * Depends on the existing latin typography role variables.
 */
:is(html:lang(es),html:lang(fr)) body.syj-poet-channel #poet-recommendations #poet-daily-title {
  font-family: var(--syj-type-section, Georgia, serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  font-style: normal;
  letter-spacing: .012em;
  word-spacing: normal;
  line-height: 1.24;
  text-transform: none;
  text-wrap: balance;
}
:is(html:lang(es),html:lang(fr)) body.syj-poet-channel #poet-recommendations #poet-daily-works {
  font-family: var(--syj-type-section, Georgia, serif);
  font-weight: 500;
  letter-spacing: .012em;
  line-height: 1.3;
}

/* The primary dynasty rail is a row of compact labels. Keep each link's
 * original URL and full aria-label; only its visible native-language dynasty word is shorter.
 * The selected SVG badge remains centered on the shortened word.
 */
:is(html:lang(es),html:lang(fr)) body.syj-poet-channel #poet-generations .syj-poet-portal__generation-nav {
  min-width: 0;
  align-items: center;
}
:is(html:lang(es),html:lang(fr)) body.syj-poet-channel #poet-generations .syj-poet-portal__generation-nav a,
:is(html:lang(es),html:lang(fr)) body.syj-poet-channel #poet-generations .syj-poet-portal__generation-nav a.syj-era-tab--long,
:is(html:lang(es),html:lang(fr)) body.syj-poet-channel #poet-generations .syj-poet-portal__generation-nav a[aria-selected="true"],
:is(html:lang(es),html:lang(fr)) body.syj-poet-channel #poet-generations .syj-poet-portal__generation-nav a.syj-era-tab--long[aria-selected="true"] {
  flex: 1 1 0;
  min-width: 0;
  min-height: 54px;
  box-sizing: border-box;
  margin-inline: 2px;
  padding: 8px 7px;
  font-family: var(--syj-type-ui, Georgia, serif);
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 500;
  letter-spacing: .015em;
  line-height: 1.3;
  white-space: nowrap;
  text-align: center;
  text-transform: none;
}
:is(html:lang(es),html:lang(fr)) body.syj-poet-channel #poet-generations .syj-era-tab-label {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  vertical-align: middle;
}
:is(html:lang(es),html:lang(fr)) body.syj-poet-channel #poet-generations .syj-generations__more {
  font-family: var(--syj-type-ui, Georgia, serif);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 500;
  letter-spacing: .005em;
  white-space: nowrap;
}
:is(html:lang(es),html:lang(fr)) body.syj-poet-channel #poet-generations .syj-generations__secondary a {
  font-family: var(--syj-type-ui, Georgia, serif);
  letter-spacing: .015em;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media(max-width:680px) {
  :is(html:lang(es),html:lang(fr)) body.syj-poet-channel #poet-recommendations #poet-daily-title {
    font-size: clamp(19px, 5.5vw, 24px);
    letter-spacing: .005em;
    white-space: normal;
  }
  :is(html:lang(es),html:lang(fr)) body.syj-poet-channel #poet-generations .syj-poet-portal__generation-nav a,
  :is(html:lang(es),html:lang(fr)) body.syj-poet-channel #poet-generations .syj-poet-portal__generation-nav a[aria-selected="true"] {
    font-size: 14px;
    letter-spacing: 0;
    padding-inline: 5px;
  }
}
