/* bara de navigare comună a paginilor secundare (toate în afară de hartă): o singură componentă, injectată de server.js
   (siteNav, buildPage) cu public/js/sitenav.js. Referința este /chronicle: valorile de aici nu depind de tema paginii (nicio
   variabilă a paginii, nicio suprascriere din alte fișiere), ca bara să fie identică la pixel pe toate paginile.
   Desktop: o bandă de 20 px pe fundalul „biroului” (#ECE6D6), apoi rândul pe hârtie crem, 1240 px, centrat, cu linia subțire
   dedesubt pe lățimea lui; „← Back to the map” aliniat cu marginea conținutului (24 px). Telefon (< 980 px): „← Map” + „Menu ▾”;
   sub 760 px fără banda de sus (foaia ocupă tot ecranul, ca pe /chronicle) */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); }
html body .sitenav { --sn-c: #1A1A17; display: block; position: relative; z-index: 30; margin: 0; padding: 20px 0 0; background: #ECE6D6; border: 0; box-shadow: none;
  font: 400 14.5px/1.2 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; letter-spacing: normal; text-transform: none; text-align: left; color: var(--sn-c); }
html body .sitenav * { box-sizing: border-box; }
html body .sitenav .sn-wrap { max-width: 1240px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 12px; background: #F6F1E4; border-bottom: 1px solid #E6E1D6; }
html body .sitenav a, html body .sitenav button { display: inline-flex; align-items: center; min-height: 36px; margin: 0; padding: 0 14px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: inherit; letter-spacing: normal; text-transform: none; color: var(--sn-c); background: #fff; border: 1px solid #DCD6C8; box-shadow: none; cursor: pointer; }
html body .sitenav a:hover, html body .sitenav button:hover { color: var(--sn-c); background: #fff; border-color: var(--sn-c); }
html body .sitenav a:focus-visible, html body .sitenav button:focus-visible { outline: 3px solid #C9A227; outline-offset: 2px; }
html body .sitenav .sn-back, html body .sitenav .sn-back:hover { background: var(--sn-c); border-color: var(--sn-c); color: #fff; font-weight: 600; flex: none; }
html body .sitenav .sn-back:hover { filter: brightness(1.15); }
.sn-back .sn-s { display: none; }
html body .sitenav .sn-links { display: flex; gap: 8px; margin-left: auto; flex-wrap: nowrap; background: none; }
html body .sitenav .sn-links a[aria-current="page"] { background: color-mix(in srgb, var(--sn-c) 10%, #fff); border-color: var(--sn-c); font-weight: 700; box-shadow: inset 0 0 0 1px var(--sn-c); }
html body .sitenav .sn-menu { display: none; margin-left: auto; gap: 6px; }
.sn-menu svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .15s; }
.sn-menu[aria-expanded="true"] svg { transform: rotate(180deg); }
/* fiecare buton are lățimea textului îngroșat (pagina curentă e bold): butoanele nu se mută când se schimbă pagina activă */
html body .sitenav .sn-links a { display: inline-grid; place-items: center; }
html body .sitenav .sn-links a > span, html body .sitenav .sn-links a::after { grid-area: 1 / 1; }
html body .sitenav .sn-links a::after { content: attr(data-t); font-weight: 700; visibility: hidden; height: 0; overflow: hidden; }
/* lângă bară, de o parte și de alta, doar fundalul „biroului”: umbra foii paginii (unde există) nu se vede în dreptul barei */
html body .sitenav { box-shadow: -1240px 0 0 #ECE6D6, 1240px 0 0 #ECE6D6; }
@media (max-width: 979.98px) {
  html body .sitenav .sn-wrap { padding: 8px 16px; }
  .sn-back .sn-l { display: none; }
  .sn-back .sn-s { display: inline; }
  html body .sitenav .sn-menu { display: inline-flex; }
  html body .sitenav .sn-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 6px; padding: 10px 16px 14px; background: #fff;
    border-bottom: 1px solid #E6E1D6; box-shadow: 0 10px 22px rgba(27, 42, 74, .12); }
  html body .sitenav .sn-links.open { display: flex; }
  html body .sitenav .sn-links a { min-height: 44px; justify-content: flex-start; border-radius: 10px; }
}
@media (max-width: 760px) { html body .sitenav { padding-top: 0; } }
@media print { html body .sitenav { display: none; } }
