/* Pelit – calculaterix.comin yläpalkki (12.11.2026). ~/arki/akfunktiot.php:n make_aknavi1():n Bulma-merkintä
   (navbar is-primary) ilman Bulmaa, mitoitettu calculaterix.comin mukaan (Jussi 13.11.2026):
   - leveys kuten sisältö: 960 / 1152 / 1344 px (1024 / 1216 / 1408 px alkaen), kapeammilla koko leveys;
   - valikko hampurilaisena alle 2000 px (calculaterix.comin Bulman navbar-raja), avautuu valkoisena paneelina
     palkin alle oikeaan reunaan; 2000 px:stä alkaen linkit palkissa. */
.navbar { background: #3B5998; color: #fff; min-height: 3.25rem; position: relative; z-index: 30; font-size: 1rem; }
.navbar > .container { position: relative; margin: 0 auto; display: flex; align-items: stretch; min-height: 3.25rem; }
.navbar-brand { display: flex; align-items: stretch; flex: 1 1 auto; min-height: 3.25rem; }
.navbar-item { display: flex; align-items: center; padding: 0.5rem 0.75rem; line-height: 1.5; color: #fff; text-decoration: none; position: relative; }
.navbar-item img { max-height: none; }
a.navbar-item:hover, a.navbar-item:focus-visible, a.navbar-item.is-active { background: #344e86; color: #fff; }
a.navbar-item:focus-visible, .navbar-burger:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.has-text-weight-bold { font-weight: 700; }
.has-text-weight-normal { font-weight: 400; }
.navbar-burger { display: block; cursor: pointer; position: relative; flex: 0 0 auto; width: 3.25rem; height: 3.25rem; margin-left: auto; color: #fff; }
.navbar-burger span { position: absolute; left: calc(50% - 8px); width: 16px; height: 1px; background: currentColor; transition: transform 86ms ease-out, opacity 86ms ease-out; }
.navbar-burger span:nth-child(1) { top: calc(50% - 6px); }
.navbar-burger span:nth-child(2) { top: calc(50% - 1px); }
.navbar-burger span:nth-child(3) { top: calc(50% + 4px); }
.navbar-burger.is-active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.navbar-burger.is-active span:nth-child(2) { opacity: 0; }
.navbar-burger.is-active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.navbar-menu { display: none; position: absolute; top: 100%; right: 0; min-width: 220px; max-width: 100%;
  background: #fff; box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1); padding: 0.5rem 0; border-radius: 0 0 6px 6px; }
.navbar-menu.is-active { display: block; }
.navbar-menu .navbar-item { color: #000; display: block; }
.navbar-menu a.navbar-item:hover, .navbar-menu a.navbar-item:focus-visible, .navbar-menu a.navbar-item.is-active { background: #fafafa; color: #3B5998; }
.navbar-menu a.navbar-item:focus-visible { outline: 3px solid #3B5998; }
.navbar-dropdown { display: none; }
@media (max-width: 768px) {
  .navbar-menu { left: 0; min-width: 0; border-radius: 0; }
}
@media (min-width: 1024px) {
  .navbar > .container { max-width: 960px; }
  .navbar-brand { margin-left: -0.75rem; }
  .navbar-burger { margin-right: -0.75rem; }
}
@media (min-width: 1216px) { .navbar > .container { max-width: 1152px; } }
@media (min-width: 1408px) { .navbar > .container { max-width: 1344px; } }
@media (min-width: 2000px) {
  .navbar-burger { display: none; }
  .navbar-menu { display: flex; position: static; min-width: 0; background: none; box-shadow: none; padding: 0; flex: 1 1 auto; }
  .navbar-menu .navbar-item { color: #fff; display: flex; }
  .navbar-menu a.navbar-item:hover, .navbar-menu a.navbar-item.is-active { background: #344e86; color: #fff; }
  .navbar-start { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .navbar-burger span { transition: none; } }
