/* Luftek: GLAVA in NOGA (shell) – ena komponenta za vse strani luftek.eu (SL, HR, EN, podnebje, kraji, pravne strani, 404).
   Označba: <header class="l"> in <footer class="l"> (tools/build_sites.py header()/footer()). Barve, pisave in polmeri samo iz tokens.css. */

/* ---------------------------------------------------------------- glava (velikost enaka kot header.top v aplikaciji: 41 px na računalniku, 50 px na telefonu) */
header.l { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: .6rem; min-height: 41px; box-sizing: border-box;
  padding: .2rem var(--gut); padding-top: max(.2rem, env(safe-area-inset-top)); background: var(--card); border-bottom: 1px solid var(--line); }
header.l .b { display: flex; align-items: center; gap: .5rem; flex: none; color: var(--fg); text-decoration: none; font-weight: var(--fw-black); font-size: .95rem; letter-spacing: -.02em; line-height: 1.05; }
header.l .b img { width: 24px; height: 24px; border-radius: 6px; display: block; }
header.l nav { display: flex; align-items: center; gap: .1rem; margin: 0 auto; font-size: .82rem; min-width: 0; }
header.l nav a { display: flex; align-items: center; gap: .3rem; min-height: 30px; padding: .2rem .6rem; border-radius: var(--r-pill); box-sizing: border-box;
  color: var(--muted); text-decoration: none; font-weight: var(--fw-medium); white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
header.l nav a svg, header.l nav a img { width: 16px; height: 16px; flex: none; }
header.l nav a:hover { color: var(--fg); background: var(--bg2); }
header.l nav a[aria-current] { color: var(--fg); background: color-mix(in srgb, var(--accent) 20%, transparent); }
header.l nav .sep { width: 1px; height: 18px; margin: 0 .3rem; background: var(--line-strong); flex: none; }
header.l nav a.x { border: 1px solid var(--line); color: var(--fg); }
header.l nav a.x:hover { border-color: var(--accent); background: var(--bg2); }
header.l .tools { display: flex; align-items: center; gap: .35rem; flex: none; }
header.l .ib { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 .3rem; border: 0; border-radius: var(--r-m); background: transparent; color: var(--fg); cursor: pointer; font: inherit; font-weight: 700; }
header.l .ib:hover { background: var(--bg2); }
header.l .ib svg { width: 17px; height: 17px; }
header.l details.langsel { padding: 0; border: 0; }
header.l .langbtn { display: inline-flex; align-items: center; gap: .2rem; height: 30px; padding: 0 .5rem 0 .6rem; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .75rem; font-weight: var(--fw-black); box-sizing: border-box; }
.langsel { position: relative; } .langsel summary { list-style: none; display: inline-flex; align-items: center; gap: .25rem; } .langsel summary::-webkit-details-marker { display: none; }
.langsel[open] summary svg { transform: rotate(180deg); }
.langlist { position: absolute; z-index: 60; right: 0; top: calc(100% + 6px); min-width: 11.5rem; margin: 0; padding: .3rem; list-style: none; border-radius: 14px; background: var(--card, #fff); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.langlist a { display: flex; align-items: center; gap: .55rem; padding: .55rem .6rem; border-radius: 10px; color: var(--fg); text-decoration: none; font-size: .9rem; font-weight: 500; }
.langlist a:hover, .langlist a:focus-visible { background: var(--bg); } .langlist a.on { font-weight: 700; }
.langlist .lc { display: inline-grid; place-items: center; width: 1.9rem; height: 1.5rem; border-radius: 8px; background: var(--bg); font-size: .7rem; font-weight: 800; } .langlist .lk { margin-left: auto; color: var(--accent); }
@media (max-width: 1100px) { header.l nav a span, header.l .b span { display: none; } }
@media (max-width: 760px) {
  header.l { min-height: 50px; padding: .15rem 6px; padding-top: max(.15rem, env(safe-area-inset-top)); gap: .2rem; }
  header.l nav { flex: 1; margin: 0; justify-content: space-between; gap: 0; overflow-x: auto; scrollbar-width: none; }
  header.l nav::-webkit-scrollbar { display: none; }
  header.l nav a { min-height: 44px; min-width: 30px; padding: 0 .3rem; justify-content: center; }
  header.l nav a.lo { display: none; }
  header.l nav .sep { display: none; }
  header.l .ib, header.l .langbtn { height: 44px; min-width: 30px; }
  header.l .langbtn { padding: 0 .4rem; min-width: 0; } header.l .langbtn svg { display: none; }
}
