/* Dynasty overview only; derived from accepted Tang/Song design. */
.syj-era18.syj-hub{background:transparent;max-width:1280px;margin:0 auto;padding:24px 36px 56px;color:#42392b}


.syj-era18-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:34px 26px;list-style:none;padding:0;margin:0}.syj-era18-item{grid-column:span 2;min-width:0}.syj-era18-item.major{grid-column:span 3}.syj-era18-card{display:flex;flex-direction:column;align-items:center;height:100%;min-width:0}.syj-era18-plaque{display:block;text-decoration:none!important;width:min(100%,165px);position:relative;aspect-ratio:160/168}.syj-era18-item.major .syj-era18-plaque{width:min(100%,380px);aspect-ratio:160/222}.syj-era18-plaque svg{width:100%;height:100%;display:block;}
.syj-era18-han{position:absolute;top:47%;left:50%;transform:translate(-50%,-50%);margin:0!important;white-space:nowrap;color:#5e4930;font-family:"Noto Serif SC","Source Han Serif SC","Songti SC","STSong","SimSun",serif;font-size:clamp(27px,3vw,42px);font-weight:400;line-height:1.15;letter-spacing:.04em}.syj-era18-han.long{font-size:clamp(19px,2vw,27px);letter-spacing:0}.syj-era18-item.major .syj-era18-han{top:37%;color:var(--era-accent);font-weight:500}
.syj-era18-content{width:100%;padding:8px 8px 4px;display:flex;flex-direction:column;align-items:center;gap:5px;flex:1}.syj-era18-item.major .syj-era18-content{max-width:520px;padding:6px 12px 18px}.syj-era18-name{color:#8e6b37;font-size:19px;font-weight:500;margin:0;text-align:center}.syj-era18-years{color:#8e6b37;font-size:14px;display:flex;align-items:center;gap:10px;justify-content:center;margin:0;text-align:center}.syj-era18-item.major .syj-era18-years{font-size:20px}.syj-era18-item.major .syj-era18-years:before,.syj-era18-item.major .syj-era18-years:after{content:"";width:35px;height:1px;background:#bda16e}
.syj-era18-literary{color:var(--era-accent);font-size:24px;line-height:1.3;margin:1px 0;font-weight:500}.syj-era18-intro{color:#493f34;font-size:14px;line-height:1.8;margin:6px 0 10px;text-align:start;overflow-wrap:anywhere}.syj-era18-item.major .syj-era18-intro{font-size:15px}.syj-era18-entry{font-size:13px;margin-top:auto;min-height:36px;display:flex;align-items:center;gap:8px}
.syj-era18-list .syj-era18-item:nth-child(3){position:relative}.syj-era18-list .syj-era18-item:nth-child(3):before{content:"";position:absolute;top:-18px;left:0;width:calc(300% + 52px);height:1px;background:linear-gradient(90deg,transparent,#cdb78b 20%,#cdb78b 80%,transparent)}
@media(max-width:800px){.syj-era18{padding:18px 18px 36px}.syj-era18-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 16px}.syj-era18-item,.syj-era18-item.major{grid-column:span 1}.syj-era18-item.major .syj-era18-plaque{max-width:270px}.syj-era18-item.major .syj-era18-han{font-size:clamp(44px,11vw,80px)}.syj-era18-list .syj-era18-item:nth-child(3):before{width:calc(200% + 16px)}.syj-era18-item.major .syj-era18-years{font-size:15px}.syj-era18-item.major .syj-era18-years:before,.syj-era18-item.major .syj-era18-years:after{width:12px}.syj-era18-content,.syj-era18-item.major .syj-era18-content{padding:4px 0}.syj-era18-intro,.syj-era18-item.major .syj-era18-intro{font-size:13px}.syj-era18-name{font-size:16px}}
@media(max-width:480px){.syj-era18-list .syj-era18-item.major{grid-column:span 2}.syj-era18-list .major .syj-era18-plaque{max-width:245px}.syj-era18-intro{font-size:13px}.syj-era18-han.long{font-size:20px}}


/* Keep the two enlarged plaques within the first screen more comfortably. */
@media(min-width:801px){.syj-era18{padding-top:14px}}

/* V1.9: single editorial overview; no timeline or tab controls. */
.syj-era18-item.major .syj-era18-han{font-size:clamp(58px,7.5vw,100px)}
@media(max-width:800px){.syj-era18-item.major .syj-era18-plaque{max-width:270px}.syj-era18-item.major .syj-era18-han{font-size:clamp(44px,11vw,80px)}}
@media(max-width:480px){.syj-era18-item.major .syj-era18-plaque{max-width:245px}}

/* V2.6: ordinary era gallery only. Preserve the approved Tang/Song plaques. */
.syj-era18-item:not(.major){min-width:0;padding:8px 0 18px}
.syj-era18-item:not(.major) .syj-era18-plaque{width:min(100%,225px)}
.syj-era18-item:not(.major) .syj-era18-han{font-size:clamp(34px,3.7vw,52px);color:#8e6b37}
.syj-era18-item:not(.major) .syj-era18-han.long{font-size:clamp(24px,2.3vw,33px)}
.syj-era18-item:not(.major) .syj-era18-content{max-width:340px;padding:8px 10px 0;gap:6px}
.syj-era18-item:not(.major) .syj-era18-name{min-height:2.8em;display:flex;align-items:center;justify-content:center;line-height:1.4}
.syj-era18-item:not(.major) .syj-era18-years{min-height:2.7em;line-height:1.4;font-size:15px;color:#8e6b37}
.syj-era18-item:not(.major) .syj-era18-intro{font-size:15px;line-height:1.85;margin:1px 0 10px;width:100%;text-align:start;color:#493f34}
.syj-era18-item:not(.major) .syj-era18-entry{align-self:stretch;justify-content:center;border-top:1px solid #d8c9ad;padding:8px 0 0;min-height:36px}
@media(min-width:801px){.syj-era18-item:not(.major){padding-top:16px}}
@media(max-width:800px){.syj-era18-item:not(.major) .syj-era18-plaque{width:min(100%,200px)}.syj-era18-item:not(.major) .syj-era18-content{padding:4px 8px 0}.syj-era18-item:not(.major) .syj-era18-intro{font-size:14px}}
@media(max-width:600px){.syj-era18-list .syj-era18-item:not(.major){grid-column:span 2;padding:12px 0 8px}.syj-era18-item:not(.major) .syj-era18-plaque{width:min(100%,190px)}.syj-era18-item:not(.major) .syj-era18-han{font-size:42px}.syj-era18-item:not(.major) .syj-era18-han.long{font-size:27px}.syj-era18-item:not(.major) .syj-era18-name,.syj-era18-item:not(.major) .syj-era18-years{min-height:0}.syj-era18-list .syj-era18-item:nth-child(3):before{width:100%}}
