/* Clamp article previews, while letting author metadata and rows grow naturally. */
.portal-article-block{--block-height:380px;--lead-height:154px;--title-line:23px;--summary-line:21px;min-height:var(--block-height);display:flex;flex-direction:column;scroll-margin-top:14px}
.portal-article-block>.portal-panel-heading{flex:0 0 34px;min-width:0}
.portal-article-block .portal-category-lead{display:grid;grid-template-columns:40% minmax(0,1fr);gap:10px;flex:0 0 auto;min-height:var(--lead-height);padding:9px 7px}
.portal-article-block .portal-category-image,.portal-article-block.portal-category-compact .portal-category-image{height:136px;width:100%;min-width:0}
.portal-article-block .portal-category-lead>div{display:grid;grid-template-rows:calc(2 * var(--title-line)) calc(3 * var(--summary-line)) auto;gap:2px;min-width:0}
.portal-article-block .portal-category-lead h3,.portal-article-block.portal-category-compact .portal-category-lead h3{font-size:17px;line-height:var(--title-line);height:calc(2 * var(--title-line));margin:0;white-space:normal;min-width:0;overflow:hidden}
.portal-article-block .portal-category-lead h3 a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere;white-space:normal}
.portal-article-block .portal-category-lead p,.portal-article-block.portal-category-compact .portal-category-lead p{font-size:14px;line-height:var(--summary-line);height:calc(3 * var(--summary-line));margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
.portal-home .creator-byline{align-items:center;min-width:0;gap:2px 8px;margin:0;font:12px/18px var(--serif);overflow-wrap:anywhere}
.portal-home .creator-byline time{display:inline;font:11px/18px var(--sans);margin:0;white-space:nowrap;flex-shrink:0}
.portal-home .creator-byline>span:last-child{white-space:nowrap}
.portal-home .portal-content-lines .creator-byline{grid-column:auto;flex:0 1 auto;max-width:62%}
.portal-home .portal-content-lines .creator-byline>a{flex:0 1 auto;font:inherit;white-space:normal;overflow:visible;text-overflow:clip}
.portal-title-slot{flex:1 0 auto;min-height:0}
.portal-title-slot .portal-content-lines{padding:0 8px}
.portal-content-lines li::before{display:none;content:none}
.portal-content-lines li{padding-left:0}
.portal-article-block .portal-content-lines li,.portal-article-block.portal-category-compact .portal-content-lines li{min-height:28px;font-size:14px;line-height:1.6}
.portal-article-block .portal-content-lines li>a{font-size:14px;line-height:22px;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:0}
.portal-article-block .portal-content-lines time{font-size:10px;flex-shrink:0}
.portal-block-pager{height:36px;min-height:36px;flex:0 0 36px;display:flex;align-items:center;justify-content:space-between;gap:7px;padding:0 9px;margin-top:auto;border-top:1px solid #eee4d3;font:12px/1.5 var(--sans);color:#8d795e;white-space:nowrap}
.portal-block-pager a{color:#805b2d;padding:5px 0;text-decoration:underline;text-underline-offset:3px}
.portal-page-disabled{color:#bfb5a5}
.portal-page-status{font-size:11px;overflow:hidden;text-overflow:ellipsis}
.portal-focus-panel{height:auto;align-items:stretch}
.portal-focus{height:auto;min-height:264px}
.portal-latest{display:flex;flex-direction:column;min-width:0;min-height:315px;scroll-margin-top:14px}
.portal-latest>.portal-panel-heading{flex:0 0 29px}
.portal-latest .portal-content-lines{flex:1 0 auto;min-height:0;padding-block:4px}
.portal-latest .portal-content-lines li{min-height:28px}
.portal-videos{scroll-margin-top:14px}
.portal-video-card h3{font-size:16px;font-weight:700;height:48px;line-height:24px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-clamp:2}
.portal-video-card>p{height:36px;line-height:18px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-clamp:2}
@media(max-width:1100px){.portal-article-block{--block-height:370px;--lead-height:144px;--title-line:21px;--summary-line:20px}.portal-article-block .portal-category-image,.portal-article-block.portal-category-compact .portal-category-image{height:126px}.portal-article-block .portal-category-lead h3,.portal-article-block.portal-category-compact .portal-category-lead h3{font-size:15px}.portal-article-block .portal-category-lead p,.portal-article-block.portal-category-compact .portal-category-lead p{font-size:13px}}
/* Narrow lists put metadata below the title so neither competes for a few pixels. */
.portal-category-compact .portal-content-lines li{flex-direction:column;align-items:stretch;gap:0;padding-block:4px}
.portal-category-compact .portal-content-lines .creator-byline{max-width:none}
@media(min-width:1400px){.portal-focus{min-height:316px}}
@media(max-width:1100px){.portal-home .portal-content-lines li{flex-direction:column;align-items:stretch;gap:0;padding-block:4px}.portal-home .portal-content-lines .creator-byline{max-width:none}}
@media(max-width:760px){.portal-focus{min-height:240px}}
@media(max-width:580px){.portal-article-block{--block-height:370px;--lead-height:148px;--title-line:22px;--summary-line:20px}.portal-article-block .portal-category-lead h3,.portal-article-block.portal-category-compact .portal-category-lead h3{font-size:16px}.portal-article-block .portal-category-lead p,.portal-article-block.portal-category-compact .portal-category-lead p{font-size:14px}.portal-article-block .portal-content-lines li>a{font-size:14px}.portal-focus{min-height:255px}.portal-latest{min-height:350px}.portal-block-pager{font-size:12px}.portal-page-status{font-size:11px}}

.portal-configured-module.portal-module-article,.portal-configured-module.portal-module-categories,.portal-configured-module.portal-module-videos{grid-column:1/-1}

/* Keep the desktop article columns level above the full-width video section. */
@media(min-width:1001px){
  .portal-columns{align-items:stretch}
  .portal-primary{display:flex;flex-direction:column}
  .portal-primary>.portal-category-grid{flex:1;grid-auto-rows:1fr}
  .portal-sidebar>.portal-article-block{flex:1 0 auto}
}
.portal-block-pager[aria-busy="true"] .portal-page-status::after { content: " · 加载中…"; }
.portal-block-pager[aria-busy="true"] { cursor: progress; }
