/* Compact identity and navigation shared by the timeline and reference pages. */
.site-header,.reference-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;height:auto;min-height:0;gap:24px;padding-top:10px;padding-bottom:10px}
.brand,.reference-brand{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;max-width:none;flex:none;text-decoration:none}
.brand-mark,.reference-brand>img{width:44px;height:44px;flex:none}
.brand,.reference-brand{position:relative;z-index:1}
.brand-mark img,.reference-brand>img{transform-origin:center;transition:transform 180ms ease-out}
.brand:focus-visible,.reference-brand:focus-visible{outline-offset:14px}
.brand:focus-visible .brand-mark img,.reference-brand:focus-visible>img{transform:scale(1.65)}
@media(hover:hover) and (pointer:fine){
 .brand:hover .brand-mark img,.reference-brand:hover>img{transform:scale(1.65)}
}
@media(prefers-reduced-motion:reduce){
 .brand-mark img,.reference-brand>img{transition:none}
}
.atlas-selection{display:flex;align-items:center;gap:16px;min-width:0}
.atlas-selection>#countryMenu,.atlas-selection>.country-switch{flex:none}
.atlas-selection>#atlasMenu,.atlas-selection>.atlas-heading{min-width:0}
.header-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:nowrap;margin:0;min-width:0}
.country-switch,.atlas-switch,.language-dropdown,.more-menu{position:relative;font-family:var(--font-text,"PT Sans",sans-serif);font-size:14px;min-width:0}
.country-switch,.language-dropdown,.more-menu{flex:none}
.country-switch summary,.language-dropdown summary,.more-menu summary{display:flex;align-items:center;justify-content:space-between;gap:14px;list-style:none;border:1px solid #cfcabf;border-radius:7px;min-height:44px;padding:6px 11px;color:#29464b;background:#faf8f1;cursor:pointer}
.country-switch summary{min-width:90px}
.language-dropdown summary{min-width:68px;gap:8px}
.more-menu summary{border-color:transparent;background:transparent;width:44px;height:44px;justify-content:center;gap:0;padding:11px}
.more-menu summary svg{display:block;flex:none}
.country-switch summary::-webkit-details-marker,.atlas-switch summary::-webkit-details-marker,.language-dropdown summary::-webkit-details-marker,.more-menu summary::-webkit-details-marker{display:none}
.country-switch summary:focus-visible,.atlas-switch summary:focus-visible,.language-dropdown summary:focus-visible,.more-menu summary:focus-visible{outline:2px solid #385c61;outline-offset:3px}
.selector-copy{display:grid;gap:1px;text-align:left;min-width:0}
.selector-copy>small{font:400 10px/1.2 var(--font-text,"PT Sans",sans-serif);color:#788476}
.selector-copy>span{font-size:14px;line-height:1.3}
.atlas-heading{min-width:0}
.atlas-switch summary{display:block;list-style:none;min-height:42px;align-content:center;padding:3px 0;border-radius:5px;color:#29464b;cursor:pointer}
.atlas-switch summary:hover,.more-menu summary:hover{color:#8a6b34}
.atlas-title{display:flex;align-items:center;gap:10px;margin:0;font:400 22px/1.2 var(--font-display,"PT Serif",serif);letter-spacing:0}
.atlas-title svg{flex:none;width:14px;height:14px;opacity:.7}
.atlas-tagline{display:block;margin-top:-2px;color:#7c8779;font:400 12px/1.4 var(--font-text,"PT Sans",sans-serif)}
.country-switch>nav,.atlas-switch>nav,.language-dropdown>nav,.more-menu>nav,.reference-header .country-switch>nav,.reference-header .atlas-switch>nav,.reference-header .language-dropdown>nav,.reference-header .more-menu>nav{position:absolute;top:calc(100% + 6px);left:0;min-width:150px;max-height:min(60vh,420px);overflow-y:auto;padding:5px;display:grid;align-items:stretch;justify-content:stretch;gap:2px;background:#fffdf7;border:1px solid #d7d0c4;border-radius:9px;box-shadow:0 8px 24px #182f3526;z-index:100}
.atlas-switch>nav,.reference-header .atlas-switch>nav{min-width:100%;width:max-content;max-width:min(440px,calc(100vw - 32px))}
.language-dropdown>nav,.more-menu>nav,.reference-header .language-dropdown>nav,.reference-header .more-menu>nav{right:0;left:auto}
.more-menu>nav,.reference-header .more-menu>nav{min-width:190px}
.country-switch>nav>a,.atlas-switch>nav>a,.language-dropdown>nav>a,.more-menu>nav>a,.more-menu>nav>button{display:flex;align-items:center;min-height:44px;padding:9px 11px;text-align:left;text-decoration:none;border:0;border-radius:5px;color:#29464b;background:transparent;font:400 14px/1.3 var(--font-text,"PT Sans",sans-serif);cursor:pointer}
.country-switch>nav>a,.language-dropdown>nav>a{white-space:nowrap}
.atlas-switch>nav>a{display:grid;gap:4px;padding:11px 12px}
.atlas-switch>nav>a small{font-size:11px;color:#788476}
.country-switch>nav>a:hover,.country-switch>nav>a[aria-current],.atlas-switch>nav>a:hover,.atlas-switch>nav>a[aria-current],.language-dropdown>nav>a:hover,.language-dropdown>nav>a[aria-current],.more-menu>nav>a:hover,.more-menu>nav>button:hover{background:#e9eee9;color:#21424a}
.language-dropdown>nav>a[aria-current]::after{content:'✓';margin-left:auto;padding-left:16px}
.atlas-switch>nav>a[aria-current]>span::after{content:'✓';margin-left:12px;color:#527665}
.presentation-action,.reference-header a.presentation-action{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:11px 17px;border:1px solid #203e43;border-radius:7px;background:#203e43;color:#fffaf0;text-decoration:none;font:700 14px/1.3 var(--font-text,"PT Sans",sans-serif);white-space:nowrap;box-shadow:0 2px 5px #203e4310;transition:background .15s,box-shadow .15s}
.presentation-action svg{flex:none;color:#e2c58e}
.presentation-action:hover,.reference-header a.presentation-action:hover{background:#31595e;color:#fffaf0;box-shadow:0 3px 9px #203e4320}
.presentation-action:focus-visible{outline:3px solid #ad8647;outline-offset:3px}
/* Dates and the topic action share one row, wrapping only when space runs out. */
.detail-period-row,.reference-period-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 18px}
.detail-period-row{margin:20px 0;padding:16px 0;border-top:1px solid #dde1d4;border-bottom:1px solid #dde1d4}
.reference-period-row{margin:0 0 26px;padding:0 0 22px;border-bottom:1px solid #dde1d4}
.detail-period-row .detail-dates,.reference-period-row .reference-dates{display:flex;flex:1 1 240px;flex-wrap:wrap;gap:16px 22px;border:0;padding:0;margin:0;min-width:0}
.detail-period-row .detail-dates>div,.reference-period-row .reference-dates>div{flex:1 1 105px;min-width:0}
.detail-period-row .presentation-action,.reference-period-row .presentation-action{flex:none;margin-left:auto}
.detail-period-actions{display:flex;flex:0 1 auto;max-width:100%;min-width:0;align-items:center;flex-wrap:wrap;gap:8px;margin-left:auto}
.detail-period-actions .detail-period-primary,.detail-period-actions .detail-period-secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 1 auto;min-height:44px;max-width:100%;margin:0;padding:10px 12px;border:1px solid #203e43;border-radius:7px;text-align:left;white-space:normal;font:700 14px/1.3 var(--font-text,"PT Sans",sans-serif)}
.detail-period-primary{background:#203e43;color:#fffaf0}
.detail-period-primary svg{flex:none;color:#e2c58e}
.detail-period-primary:hover{background:#31595e}
.detail-period-primary:focus-visible{outline:3px solid #ad8647;outline-offset:3px}
.detail-period-actions .detail-period-secondary{border-color:#c6cfc2;background:transparent;color:#29464b;box-shadow:none}
.detail-period-secondary svg{color:currentColor}
.detail-period-actions .detail-period-secondary:hover{background:#e9eee9;color:#21424a}
@media(max-width:760px){.detail-period-actions{margin-left:0}}
.detail-subtitle{margin-bottom:0}
.reference-actions{margin-top:16px}
.atlas-catalogue-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #c6cfc2;border-radius:7px;background:#faf8f1;color:#29464b;font:700 14px/1.25 var(--font-text,"PT Sans",sans-serif);text-decoration:none;white-space:nowrap}
.atlas-catalogue-link:hover{background:#e9eee9;color:#21424a}
.atlas-catalogue-link:focus-visible,.detail-atlas-nav a:focus-visible,.timeline-card-index:focus-visible{outline:2px solid #385c61;outline-offset:3px}
.detail-atlas-nav{display:flex;flex-wrap:wrap;gap:0 18px;margin-top:6px}
.detail-atlas-nav a,.timeline-card-index{display:inline-flex;align-items:center;min-height:36px;color:#29464b;font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:.2em}
.timeline-tools{display:flex;align-items:center;gap:12px;margin-left:auto}
.timeline-tools .layer-wrap{margin-left:0}
.timeline-card-index{white-space:nowrap}
@media(max-width:760px){.timeline-tools{grid-column:2;grid-row:2/4;flex-direction:column;align-items:flex-end;gap:2px}}
@media(max-width:1100px){
 .site-header,.reference-header{grid-template-columns:auto minmax(0,1fr);column-gap:20px;row-gap:10px}
 .header-actions{grid-column:1/-1;justify-content:flex-end}
 .atlas-selection{justify-content:flex-end}
 .atlas-title{font-size:21px}
}
@media(max-width:700px){
 .site-header,.reference-header{grid-template-columns:44px minmax(0,1fr);gap:10px;padding-top:12px;padding-bottom:12px}
 .brand-mark,.reference-brand>img{width:34px;height:34px}
 .atlas-selection{justify-content:flex-start;gap:10px}
 .atlas-title{font-size:18px;gap:6px}
 .atlas-tagline{font-size:11px;line-height:1.35;margin-top:1px}
 .atlas-switch summary{padding:2px 0;min-height:44px}
 .country-switch summary{min-width:68px;padding:6px 8px;gap:7px}
 .selector-copy>span{font-size:13px}
 .header-actions{justify-content:space-between;width:100%;gap:6px}
 .site-header .header-actions{flex-wrap:wrap}
 .header-actions .atlas-catalogue-link{padding-inline:8px;font-size:13px}
 .reference-entry-header .header-actions{justify-content:flex-end}
 .header-actions .presentation-action{flex:1;max-width:360px;padding:11px 9px;font-size:13px;gap:7px}
 .language-dropdown summary{min-width:62px;padding:8px;gap:8px;font-size:13px}
 .atlas-switch>nav,.reference-header .atlas-switch>nav{left:auto;right:0;max-width:calc(100vw - 32px)}
}
