/* One chronology, two presentations. Detailed is the no-JavaScript default. */
.history-view-bar{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding-block:20px;color:var(--muted);font-size:13px}
.history-view-switch{display:flex;border:1px solid var(--line);padding:3px;gap:3px;border-radius:6px}
.history-view-switch button{min-height:44px;padding:8px 18px;border:0;border-radius:3px;background:transparent;color:var(--ink);font-size:14px}
.history-view-switch button:hover{background:var(--panel)}
.history-view-switch button[aria-pressed=true]{background:var(--ink);color:var(--paper)}
.history-compact-text{display:none}
.event-resources{display:flex;flex-wrap:wrap;gap:0 16px}
[data-history-view=compact] .history-event .event-link{max-width:100%;white-space:normal}
[data-history-view=compact] .history-event>.event-link,[data-history-view=compact] .event-resources{max-width:45%}
[data-history-view=compact] .history-hero{display:block;padding-block:12px 22px;min-height:0}
[data-history-view=compact] .history-hero h1{font-size:clamp(2rem,4vw,3rem);line-height:1.1}
[data-history-view=compact] .history-hero h1 em,
[data-history-view=compact] .history-hero-art,
[data-history-view=compact] .history-lead,
[data-history-view=compact] .history-hero .actions,
[data-history-view=compact] .history-chapters,
[data-history-view=compact] .history-spotlight,
[data-history-view=compact] .chronology-heading h2,
[data-history-view=compact] .context-mini-card,
[data-history-view=compact] .year-context{display:none}
[data-history-view=compact] .chronology-heading{border:0;padding-block:0 24px}
[data-history-view=compact] .chronology-heading .source-note{margin:0;max-width:800px}
[data-history-view=compact] .year-group{display:grid;grid-template-columns:75px minmax(0,1fr);gap:0 20px;padding-block:16px}
[data-history-view=compact] .year-heading{grid-row:1 / span 3;margin:0}
[data-history-view=compact] .year-group h2{font-size:27px;margin:4px 0 0}
[data-history-view=compact] .year-events{grid-column:2;min-width:0}
[data-history-view=compact] .history-event{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:9px 0;margin:0;border:0;border-bottom:1px solid var(--line);background:none}
[data-history-view=compact] .history-event:last-child{border:0}
[data-history-view=compact] .history-event>p{font-size:14px;line-height:1.55;flex:1;min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
[data-history-view=compact] .history-event-highlight>:not(.history-compact-text):not(.event-link){display:none}
[data-history-view=compact] .history-compact-text{display:block}
[data-history-view=compact] .event-link{margin:0;padding-block:10px;flex-shrink:0;white-space:nowrap;min-height:44px;border:0}
[data-history-view=compact] .event-link span{margin-left:4px}
[data-history-view=compact] .anniversary-teaser{margin:0;padding:0;border:0;background:none}
[data-history-view=compact] .anniversary-teaser>:not(a){display:none}
[data-history-view=compact] .anniversary-teaser a{margin:0;padding-block:10px;font-size:14px}
@media(max-width:620px){
  .history-view-bar{justify-content:space-between;gap:10px;flex-wrap:wrap;padding-block:16px}
  .history-view-switch button{padding-inline:14px}
  [data-history-view=compact] .year-index{display:none}
  [data-history-view=compact] .year-group{grid-template-columns:1fr;gap:8px}
  [data-history-view=compact] .year-heading{grid-row:auto}
  [data-history-view=compact] .year-events,[data-history-view=compact] .anniversary-teaser{grid-column:1}
  [data-history-view=compact] .history-event{gap:10px}
  [data-history-view=compact] .history-event>p{font-size:14px;-webkit-line-clamp:3}
}
