/* The translated wordmark can wrap; the disclosure tools keep their full hit area. */
@media (max-width: 960px) {
 .cc-poetry-header--locale .cc-poetry-header__brand { min-width: 0; flex: 1 1 auto; }
 .cc-poetry-header--locale .cc-poetry-brand { min-width: 0; white-space: normal; overflow-wrap: anywhere; letter-spacing: .04em; }
 .cc-poetry-header--locale .cc-poetry-header__tools { flex: 0 0 auto; }
 .cc-poetry-header--locale .cc-poetry-search__field input { min-width: 0; }
}
@media (max-width: 640px) {
 .cc-poetry-header--locale .cc-poetry-header__brand .cc-poetry-brand { font-size: clamp(.9rem, 4.15vw, 1.1rem); }
}
/* P07: four-language catalog typography at narrow widths. Chinese pages never enqueue this file. */
@media (max-width: 640px) {
 .syj-minglu .syj-theme-domain__intro { min-width:0; max-width:100%; }
 .syj-minglu .syj-theme-domain__intro h1 {
  display:block; max-width:100%; font-size:clamp(23px,6.8vw,31px);
  letter-spacing:.01em; line-height:1.35; overflow-wrap:break-word;
 }
 .syj-minglu .syj-theme-domain__intro h1::before,
 .syj-minglu .syj-theme-domain__intro h1::after { display:none; }
 .syj-minglu .syj-theme-domain__intro p {
  font-size:13px; line-height:1.65; letter-spacing:0;
  max-width:100%; white-space:normal; overflow-wrap:break-word;
 }
 .syj-minglu .syj-minglu__facet,
 .syj-minglu--poets .syj-minglu__facet { display:block; min-width:0; }
 .syj-minglu .syj-minglu__facet h2,
 .syj-minglu--poets .syj-minglu__facet h2 {
  display:block; margin-bottom:8px; font-size:14px;
  line-height:1.5; white-space:normal; overflow-wrap:break-word;
 }
 .syj-minglu .syj-minglu__facet:has(>.syj-minglu__toggle:not([hidden])) {
  display:grid; grid-template-columns:minmax(0,1fr) auto; row-gap:8px;
 }
 .syj-minglu .syj-minglu__facet:has(>.syj-minglu__toggle:not([hidden])) h2 { grid-column:1 / -1; }
 .syj-minglu .syj-minglu__facet>.syj-minglu__toggle { grid-column:2; grid-row:2; }
 .syj-minglu .syj-minglu__facet .syj-minglu__theme-area { grid-column:1; grid-row:2; }
 .syj-minglu .syj-minglu__modes a,
 .syj-minglu .syj-minglu__modes a[aria-current=page] {
  font-size:clamp(14px,4vw,17px); letter-spacing:0; padding-inline:4px; min-width:0;
 }
}
@media (max-width: 460px) {
 .cc-poetry-header--locale .cc-poetry-header__inner { min-width:0; padding-inline:12px; gap:6px; }
 .cc-poetry-header--locale .cc-poetry-header__brand { min-width:0; flex:1 1 0; overflow:hidden; gap:5px; }
 .cc-poetry-header--locale .cc-poetry-header__brand .cc-poetry-brand {
  display:block; max-width:100%; font-size:clamp(13px,3.8vw,16px);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; letter-spacing:0;
 }
 .cc-poetry-header--locale .cc-poetry-header__tools { flex:0 0 auto; gap:4px; }
 .cc-poetry-header--locale .syj-language-switcher__label { display:none; }
}

/* Plan A display scales for the translated editorial pages. */
:root {
 --syj-portal-hero-size: clamp(34px, calc(27px + 2.1vw), 52px);
 --syj-portal-section-size: clamp(24px, calc(20px + 1.25vw), 38px);
 --syj-portal-feature-size: clamp(22px, calc(16px + 1.15vw), 33px);
 --syj-portal-caption-size: clamp(14px, calc(13px + .2vw), 16px);
}
#theme-main .syj-hub__hero .syj-hero__title {
 font-family: var(--syj-type-display);
 font-size: var(--syj-portal-hero-size);
 font-weight: 500;
 line-height: 1.2;
 letter-spacing: .01em;
 overflow-wrap: anywhere;
 text-wrap: balance;
}
#theme-main .syj-hub__hero .syj-hero__tagline {
 letter-spacing: .09em;
 text-wrap: balance;
}
#theme-main .syj-hub__hero .syj-hero__subtext {
 max-width: 680px;
 margin-inline: auto;
 letter-spacing: .04em;
 line-height: 1.55;
 text-wrap: balance;
}
@media (max-width: 640px) {
 #theme-main .syj-hub__hero .syj-hero__title {
 }
 #theme-main .syj-hub__hero .syj-hero__tagline {
  font-size: .78rem;
  letter-spacing: .03em;
 }
 #theme-main .syj-hub__hero .syj-hero__subtext {
  font-size: .96rem;
  letter-spacing: .015em;
 }
}





/* Shared typography for the translated portal templates. */
:is(.syj-hub, .syj-poet-portal) .syj-page-hero .syj-hero__title {
 font-family: var(--syj-type-display);
 font-size: var(--syj-portal-hero-size);
 font-weight: 500;
 line-height: 1.2;
 letter-spacing: .01em;
 text-wrap: balance;
 overflow-wrap: anywhere;
}
:is(#theme-main .cc-theme-hub, .syj-hub, .syj-poet-channel .syj-poet-portal, .cc-home-portal, .syj-comments-heading) :is(h1,h2).syj-section-title:not(#poet-daily-title):not(#poet-scene-title),
.syj-poet-portal :is(#poet-daily-title, #poet-daily-works, #poet-scene-title) {
 font-family: var(--syj-type-section);
 font-size: var(--syj-portal-section-size);
 font-weight: 500;
 line-height: 1.28;
 letter-spacing: .015em;
 overflow-wrap: anywhere;
}
:is(.syj-hub, .syj-poet-portal, #theme-main, .cc-home-portal) .syj-page-hero :is(.syj-hero__tagline, .syj-hero__subtext),
:is(.syj-hub, .syj-poet-portal, .cc-home-portal, .cc-theme-hub)
:is(.syj-hub__heading p, .syj-poet-portal__heading p, .syj-generations__lead, .heading-left p, .cc-home-v2__note, .cc-home-v2__gallery-reading, .cc-poetry-flow__intro),
.home-footer-renewed header > p {
 font-family: var(--syj-type-reading);
 font-size: var(--syj-portal-caption-size);
 font-weight: 400;
 line-height: 1.55;
 letter-spacing: normal;
}
#theme-main .cc-theme-hub :is(#featured .sig-text strong, #worlds .catalog-label h3) {
 font-family: var(--syj-type-display);
 font-weight: 500;
 font-size: var(--syj-portal-feature-size);
 line-height: 1.15;
 letter-spacing: .01em;
 overflow-wrap: anywhere;
}
#theme-main .cc-theme-hub #worlds .catalog-label h3 {
 font-size: clamp(20px, 2.15vw, 28px);
}
#theme-main .cc-theme-hub :is(#worlds .catalog-entry strong, #groups .group-card h3, .cc-theme-search__result strong),
:is(.syj-hub, .syj-poet-portal, .cc-home-portal) :is(h3, .cc-home-gate__title),
:is(.syj-theme-domain__card, .cc-browse-card, .d21-card, .syj-cipai-card) :is(h2, h3) {
 font-family: var(--syj-type-display);
 font-size: var(--syj-card-size);
 font-weight: 500;
 line-height: 1.32;
 letter-spacing: .01em;
 overflow-wrap: anywhere;
}
#theme-main .cc-theme-hub :is(#featured .sig-text small, #worlds .catalog-entry small, #worlds .catalog-label p, #groups .group-card p, .cc-theme-search__description) {
 font-family: var(--syj-type-reading);
 font-size: var(--syj-portal-caption-size);
 font-weight: 400;
 line-height: 1.42;
 letter-spacing: normal;
 overflow-wrap: anywhere;
}
:is(.cc-theme-search, .cc-browse__filters, #poetry-search, .cc-poetry-header)
:is(input, select, button, label),
:is(.cc-theme-search__words a, .cc-theme-search__scope, .cc-poetry-flow__tab, .syj-minglu__facet :is(a, button), .syj-theme-domain__pagination a, .home-footer-bottom a) {
 font-family: var(--syj-type-ui);
 font-size: var(--syj-control-size);
 line-height: 1.4;
 letter-spacing: normal;
}
:is(.cc-browse, .syj-theme-domain, .d21-hero)
:is(.cc-browse-card p, .cc-browse__intro, .syj-theme-domain__card p, .d21-intro, .d21-card__body p) {
 font-family: var(--syj-type-reading);
 line-height: 1.6;
 letter-spacing: normal;
}

#theme-main .cc-theme-search #dictionaryTitle {
 font-family: var(--syj-type-section);
 font-size: var(--syj-portal-section-size);
 font-weight: 500;
 line-height: 1.25;
 letter-spacing: .015em;
}
.syj-hub .syj-hub__genre--hanging .syj-hub__genre-title h3,
.syj-poet-channel .syj-poet-portal .syj-daily-gallery__byline h3 {
 font-family: var(--syj-type-display);
 font-size: var(--syj-portal-feature-size);
 font-weight: 500;
 line-height: 1.2;
 letter-spacing: normal;
}
.syj-hub :is(.syj-hub__genre-copy p, .syj-hub__genre-title span, .syj-hub__themes p, .cc-poetry-quotes__source),
.syj-poet-portal :is(.syj-daily-gallery__bio, .syj-poet-portal__axis-intro, .syj-poet-portrait__note) {
 font-family: var(--syj-type-reading);
 font-size: var(--syj-portal-caption-size);
 line-height: 1.55;
 letter-spacing: normal;
}
.cc-browse .cc-browse__title-row > h1 {
 font-family: var(--syj-type-directory);
 font-size: var(--syj-directory-size);
 font-weight: 500;
 line-height: 1.25;
 letter-spacing: .01em;
 overflow-wrap: anywhere;
}
.cc-browse :is(.cc-browse__results > h2, .cc-browse__group-title) {
 font-family: var(--syj-type-section);
 font-size: var(--syj-section-size);
 font-weight: 500;
 letter-spacing: .01em;
}
.cc-browse .cc-browse__term h2 {
 font-family: var(--syj-type-display);
 font-size: var(--syj-card-size);
 font-weight: 500;
 letter-spacing: normal;
}
body.syj-poet-channel {
 font-family: var(--syj-type-reading);
}
.syj-poet-channel #poet-recommendations .syj-poet-picks__copy .syj-daily-gallery__byline h3 {
 font-family: var(--syj-type-display);
 font-size: var(--syj-portal-feature-size);
 font-weight: 500;
}
.syj-poet-channel #poet-recommendations .syj-daily-gallery__byline h3 a {
 font-family: inherit;
}
.syj-cipai-book .syj-cipai-book__heading h2 {
 font-family: var(--syj-type-section);
 font-size: var(--syj-section-size);
 font-weight: 500;
 letter-spacing: .01em;
}
.syj-poet-channel .cc-poetry-header .cc-poetry-brand {
 font-family: var(--syj-type-directory);
}
.syj-poet-channel .cc-poetry-header .cc-poetry-navigation a {
 font-family: var(--syj-type-ui);
}



/* The smaller illustrated cards have less space for translated words. */
#theme-main #featured .signature:not(:first-child) .sig-text strong {
 font-size: clamp(20px, calc(12px + 1vw), 27px);
 letter-spacing: normal;
}
@media (max-width: 700px) {
 #theme-main #featured .signature:not(:first-child) .sig-text strong {
  font-size: clamp(17px, 4.6vw, 22px);
 }
}

html:lang(en) #theme-main #featured .signature .sig-text small {
 display: none;
}

.syj-poet-channel #poet-generations .syj-generations__people-heading h4 {
 font-family: var(--syj-type-section);
 font-size: var(--syj-card-size);
 font-weight: 500;
 line-height: 1.35;
 letter-spacing: normal;
}
@media (max-width: 460px) {
 .syj-poet-channel #poet-generations .syj-generations__people-heading {
  flex-wrap: wrap;
  gap: 8px 12px;
 }
 .syj-poet-channel #poet-generations .syj-generations__people-heading h4,
 .syj-poet-channel #poet-generations .syj-generations__people-heading a {
  max-width: 100%;
  white-space: normal;
 }
 .cc-poetry-header--locale .cc-poetry-search__field input {
  flex: 1 1 0;
  width: 0;
 }
 .cc-poetry-header--locale .cc-poetry-search__field button {
  flex: 0 0 auto;
 }
}
