/* V0.48: keep summaries compact, including cards without a thumbnail. */
#history .history-card .history-summary,
#history .history-card.history-text-only .history-summary {
 display:-webkit-box!important;
 -webkit-box-orient:vertical!important;
 -webkit-line-clamp:5!important;
 line-clamp:5;
 overflow:hidden!important;
 max-height:none!important;
 white-space:normal;
 overflow-wrap:anywhere;
}

/* Annual navigation remains in the history section after a full page load. */
#history{scroll-margin-top:14px}
.history-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
#history .history-section-heading h2{margin:0}
.history-year-nav{display:flex;align-items:center;gap:5px;flex-shrink:0;font-variant-numeric:tabular-nums}
.history-year-nav .button{min-height:30px;min-width:65px;padding:5px 9px;white-space:nowrap;background:var(--paper);border-color:var(--line);color:var(--green)}
.history-year-nav .button:hover{background:var(--mint);border-color:var(--green)}
.history-nav-current{font-size:13px;font-weight:750;color:var(--ink);min-width:36px;text-align:center}
.history-year-nav .history-nav-disabled{opacity:.35;pointer-events:none}
.history-section-bottom{display:flex;justify-content:flex-end;border-top:1px solid var(--line);margin-top:12px;padding-top:9px}
@media(max-width:480px){.history-section-heading .history-year-nav{width:100%;justify-content:space-between}.history-section-bottom .history-year-nav{width:100%;justify-content:space-between}}

/* V50: localized year information and minimal public footer. */
.year-facts p{line-height:1.6;margin:0 0 10px}
.year-facts h2{margin-bottom:10px}
.year-facts p.year-facts-note{font-size:12px;color:var(--muted)}
.year-facts-links{display:flex;gap:8px 16px;flex-wrap:wrap;align-items:center;font-size:12px;padding-top:8px;border-top:1px solid var(--line)}
.year-facts-links a,.year-facts-links button{color:var(--green);font-weight:650}
.year-facts-links button:hover{text-decoration:underline}
.years-resource-links{margin-top:14px}
.footer.simple-footer .wrap{display:flex;justify-content:center;align-items:center;text-align:center;min-height:0;padding-top:12px;padding-bottom:12px}

/* Keep the event text visually unchanged while linking to its original article. */
.history-content a.history-text-link{display:block;color:inherit;text-decoration:none;cursor:pointer}
.history-content a.history-text-link:hover{color:inherit;text-decoration:none}
.history-content a.history-text-link:hover h3,.history-content a.history-text-link:hover .years-preview-event-title{text-decoration:underline;text-underline-offset:3px}
.history-content a.history-text-link:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:3px}

/* Consistent scope symbols in headings and news cards. */
.history-scope-label{display:inline-flex;align-items:center;gap:5px;vertical-align:middle}
.history-scope-label .history-flag{width:24px;min-width:24px;height:18px}
.history-scope-label .cw-flag-img{width:24px;height:18px;object-fit:contain}
.history-scope-label .cw-flag-fallback{font-size:17px}
.history-world-icon{display:inline-block;width:19px;height:19px;flex:none;vertical-align:middle;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cellipse cx='12' cy='12' rx='4.4' ry='10'/%3E%3Cpath d='M2 12h20M4.6 6h14.8M4.6 18h14.8'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cellipse cx='12' cy='12' rx='4.4' ry='10'/%3E%3Cpath d='M2 12h20M4.6 6h14.8M4.6 18h14.8'/%3E%3C/svg%3E") center/contain no-repeat}
.history-meta .history-scope-label{gap:4px}
.history-meta .history-flag{width:17px;min-width:17px;height:13px}
.history-meta .history-flag .cw-flag-img{width:17px;height:13px}
.history-meta .history-flag .cw-flag-fallback{font-size:13px}
.history-meta .history-world-icon{width:14px;height:14px}
