/* NMRON 19.1.11: integrate into the existing utility bar; no floating header */
.nmron-hbar { position:relative; box-sizing:border-box; min-height:48px; }
.nmron-hbrand { display:inline-flex; align-items:center; gap:9px; flex:0 0 auto; padding:2px 8px; border-radius:12px; color:#142a4b !important; text-decoration:none !important; white-space:nowrap; max-width:230px; }
.nmron-hbrand:focus-visible,.nmron-hinstall:focus-visible,.nmron-hmore:focus-visible {outline:3px solid #86b3ff!important;outline-offset:3px}
.nmron-hbrand img { width:34px; height:34px; object-fit:contain; flex-shrink:0; }
.nmron-hbrand .nmron-hbrand-name {font-size:13px; font-weight:900; letter-spacing:-.2px; line-height:1.15; display:block}
.nmron-hbrand .nmron-hbrand-sub {font-size:9px; text-transform:uppercase; line-height:1.4; letter-spacing:.055em; font-weight:600; color:#687d98; display:block}
.nmron-hbuttons { display:inline-flex;flex:0 0 auto; align-items:center; gap:5px; margin-left:8px; }
.nmron-hinstall {display:inline-flex!important;align-items:center;justify-content:center;gap:6px;padding:9px 13px!important;min-height:35px;line-height:1.1;border:1px solid #2163ec!important;border-radius:11px!important;background:#2163ec!important;color:#fff!important;font:700 12px system-ui, sans-serif!important;white-space:nowrap;cursor:pointer!important;box-shadow:0 5px 14px #2163ec2d}
.nmron-hinstall svg {width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nmron-hmore { min-width:35px;min-height:35px;display:inline-grid;place-items:center; background:#fff!important;border:1px solid #d9e4f4!important;border-radius:10px!important;color:#18416b!important;cursor:pointer!important;font-size:20px!important;line-height:1!important}
html.nmron-hbar-ready header.topbar > a.brand-link {display:none!important}
html.nmron-hbar-ready header.topbar {justify-content:center!important;gap:14px!important;}
html.nmron-hbar-ready header.topbar .desktop-nav {margin-inline:auto!important;}
html.nmron-hbar-ready .nmron-mini-brand-old {display:none!important}
.nmron-hmodal {position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:18px;background:#0b1b35a8;backdrop-filter:blur(4px)}
.nmron-hmodal[data-open="true"] {display:flex}
.nmron-hdialog {position:relative;width:min(100%,480px);padding:27px;border-radius:20px;background:#fff;color:#152d4e;box-shadow:0 25px 65px #05142b44;font:400 15px/1.55 system-ui,sans-serif}
.nmron-hdialog h2 {font:800 23px/1.2 system-ui,sans-serif;margin:0 28px 14px 0;color:#122c4c}
.nmron-hdialog p {margin:8px 0 13px;color:#485e77}
.nmron-hdialog ol {padding-left:23px;margin:10px 0;color:#1c3554}
.nmron-hdialog li {margin:7px 0}
.nmron-hdialog kbd {font:600 13px system-ui;background:#eef3fa;border:1px solid #d7e3f2;border-radius:4px;padding:2px 5px}
.nmron-hdialog a {color:#1959d2}
.nmron-hclose {position:absolute;right:14px;top:13px;width:32px;height:32px;border:none;border-radius:9px;background:#eef3fc;cursor:pointer;color:#213d64;font-size:21px}
.nmron-hdialog .nmron-hcopy {background:#1d60e9;border:0;border-radius:9px;color:white;font:700 13px system-ui;padding:11px 15px;cursor:pointer}
@media(max-width:980px){.nmron-hbrand .nmron-hbrand-sub {display:none}.nmron-hbrand{padding:2px;gap:5px}.nmron-hbrand img{width:30px;height:30px}.nmron-hbuttons{margin-left:3px}.nmron-hinstall{padding:8px!important}}
@media(max-width:600px){.nmron-hbrand .nmron-hbrand-name{font-size:11px}.nmron-hbrand img{width:27px;height:27px}.nmron-hinstall{font-size:11px!important;padding:8px!important;min-height:33px}.nmron-hmore{min-width:33px;min-height:33px} html.nmron-hbar-ready header.topbar{min-height:0!important}}

/* The original logo is only suppressed after the upper toolbar has a working brand. */
html:not(.nmron-hbar-ready) header.topbar .nmron-hbuttons { position:relative; }
@media(max-width:680px) {
  html.nmron-hbar-ready .nmron-hbrand-sub {display:none!important}
  .nmron-hbar { gap:4px!important }
  .nmron-hinstall { padding:8px 9px!important }
  .nmron-hbuttons { gap:3px!important }
}

/* NMRON 19.1.12: only the original second navigation, no new headers. */
header.topbar .desktop-nav.nmron-navlinks-19112 {
  min-width:0;
  max-width:min(100%,calc(100vw - 400px));
  overflow-x:auto;
  overflow-y:hidden;
  flex-wrap:nowrap;
  white-space:nowrap;
  scrollbar-width:thin;
  scrollbar-color:#cfdbed transparent;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
}
header.topbar .desktop-nav.nmron-navlinks-19112 > a,
header.topbar .desktop-nav.nmron-navlinks-19112 > button { flex-shrink:0; }
header.topbar .desktop-nav .nmron-nav-extra { 
  display:inline-flex; align-items:center; justify-content:center;
  font:inherit; text-decoration:none; color:inherit;
  border-radius:10px; padding:8px 10px; white-space:nowrap;
}
header.topbar .desktop-nav .nmron-nav-extra:hover {background:rgba(39,103,230,.08);color:#1d57c4}
header.topbar .desktop-nav .nmron-nav-extra[aria-current="page"] {background:#fff;color:#205bd6;font-weight:750}
header.topbar .desktop-nav .nmron-nav-extra:focus-visible {outline:3px solid #89b2fb;outline-offset:2px}
@media(min-width:1350px){header.topbar .desktop-nav.nmron-navlinks-19112 {max-width: min(100%,calc(100vw - 450px));}}

/* 19.1.13 | same NMRON typography, without a new bar */
.nmron-hbar .nmron-hbrand,.nmron-hbar .nmron-hinstall,.nmron-hbar .nmron-hmore,.nmron-hbar a,.nmron-hbar button{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:-.015em}

/* NMRON 19.1.18 | One native navigation font for every item. No additional bar. */
header.topbar nav.desktop-nav.nmron-navlinks-19112 > a,
header.topbar nav.desktop-nav.nmron-navlinks-19112 > button {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  font-style: normal !important;
  line-height: 1.2 !important;
  letter-spacing: -0.012em !important;
  text-transform: none !important;
  white-space: nowrap !important;
  border-radius: 10px;
  padding: 9px 10px !important;
  min-height: 37px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
header.topbar nav.desktop-nav.nmron-navlinks-19112 > a.nmron-nav-extra {
  font: unset; /* reset the previous extra-link styling */
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  font-style: normal !important;
  line-height: 1.2 !important;
  letter-spacing: -0.012em !important;
  text-decoration: none;
  color: inherit;
  padding: 9px 10px !important;
}
header.topbar nav.desktop-nav.nmron-navlinks-19112 > a.nmron-nav-extra[aria-current="page"] {
  color: #205bd6 !important;
  background: #fff !important;
}
@media (max-width: 1100px) {
  header.topbar nav.desktop-nav.nmron-navlinks-19112 { scrollbar-width: thin; }
}

/* NMRON 19.1.19 | Unified navigation, explicit light/dark mode, weather effects behind content. */
/* Keep native links and inserted links exactly the same weight, tracking and color. */
header.topbar nav.desktop-nav.nmron-navlinks-19112 > a,
header.topbar nav.desktop-nav.nmron-navlinks-19112 > button,
header.topbar nav.desktop-nav.nmron-navlinks-19112 > a.nmron-nav-extra {
 font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
 font-size:13px!important; font-weight:650!important; letter-spacing:-.008em!important;
 line-height:1.2!important; color:#586c86!important; font-style:normal!important;
 text-transform:none!important; text-decoration:none!important;
}
header.topbar nav.desktop-nav.nmron-navlinks-19112 > :is(a,button):hover { color:#185edf!important; }
header.topbar nav.desktop-nav.nmron-navlinks-19112 > a[aria-current="page"],
header.topbar nav.desktop-nav.nmron-navlinks-19112 > a[aria-current="page"].nmron-nav-extra {color:#1b57c5!important;background:#fff!important;}
/* Existing Settings button: restore the missing cog icon, keep its original click handler. */
header.topbar .top-actions button.round-action[aria-label="Ustawienia"] { font-size:0!important; }
header.topbar .top-actions button.round-action[aria-label="Ustawienia"]::before {
 content:""; width:19px; height:19px; display:block; background:currentColor;
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round' d='M10 2h4l.7 2.3a8 8 0 0 1 1.7.7l2.1-1.1 2.8 2.8-1.1 2.1c.3.5.5 1.1.7 1.7L23 11v2l-2.3.7c-.2.6-.4 1.2-.7 1.7l1.1 2.1-2.8 2.8-2.1-1.1c-.5.3-1.1.5-1.7.7L14 22h-4l-.7-2.3a8 8 0 0 1-1.7-.7l-2.1 1.1-2.8-2.8 1.1-2.1a8 8 0 0 1-.7-1.7L1 13v-2l2.3-.7c.2-.6.4-1.2.7-1.7L2.9 6.5l2.8-2.8L7.8 4.8c.5-.3 1.1-.5 1.7-.7L10 2Z'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center/contain no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round' d='M10 2h4l.7 2.3a8 8 0 0 1 1.7.7l2.1-1.1 2.8 2.8-1.1 2.1c.3.5.5 1.1.7 1.7L23 11v2l-2.3.7c-.2.6-.4 1.2-.7 1.7l1.1 2.1-2.8 2.8-2.1-1.1c-.5.3-1.1.5-1.7.7L14 22h-4l-.7-2.3a8 8 0 0 1-1.7-.7l-2.1 1.1-2.8-2.8 1.1-2.1a8 8 0 0 1-.7-1.7L1 13v-2l2.3-.7c.2-.6.4-1.2.7-1.7L2.9 6.5l2.8-2.8L7.8 4.8c.5-.3 1.1-.5 1.7-.7L10 2Z'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* Theme button is separate from Settings and remains usable with keyboard. */
header.topbar .nmron-theme-switch,.nmron-hbuttons .nmron-theme-switch {display:grid!important;place-items:center!important;flex:0 0 42px;min-width:42px;height:42px;background:#f1f6ff!important;color:#315a96!important;border:1px solid #d8e5f8!important;border-radius:13px!important;cursor:pointer!important}
header.topbar .nmron-theme-switch svg,.nmron-hbuttons .nmron-theme-switch svg{width:19px;height:19px;display:block;}
header.topbar .nmron-theme-switch:focus-visible,.nmron-hbuttons .nmron-theme-switch:focus-visible {outline:3px solid #70abff!important;outline-offset:2px}
header.topbar .nmron-theme-switch:hover,.nmron-hbuttons .nmron-theme-switch:hover {background:#e7f0ff!important}
/* The original rain canvas has z-index:28 and currently overlays article text. */
.weather-canvas,.weather-atmosphere {pointer-events:none!important;}
.weather-canvas {z-index:1!important}
.weather-atmosphere {z-index:0!important}
.site-main,.shell,header.topbar {position:relative;z-index:2}
/* Existing explicit setting from v7.7.3 is the single source of truth. */
html[data-theme="light"] {color-scheme:light}
html[data-theme="dark"] {color-scheme:dark; --ink:#edf4ff; --muted:#adc0da;--muted-2:#9ab0c9;--line:#6b8ab438;--line-strong:#799cbd66;--paper:#0b1322;--paper-2:#132136;--white:#182b43e8;--shadow-sm:0 10px 30px #0005;--shadow-md:0 24px 70px #0006;--shadow-lg:0 35px 85px #0008}
html[data-theme="dark"],html[data-theme="dark"] body {background-color:#0b1322!important;color:#edf4ff}
html[data-theme="dark"] body {background:radial-gradient(circle at 13% 5%,#1b3b683a,transparent 40rem),radial-gradient(circle at 92% 27%,#16345a50,transparent 42rem),#0b1322!important}
html[data-theme="dark"] body::before{opacity:.16}
html[data-theme="dark"] :is(.glass-panel,.module-card,.topbar,.hero-card,.n65-panel,.n65-hero-card,.c27-shell,.c27-shortcut,.c27-stat,.c27-section,.navbox,.atlas-card,.at-card,.gallery-card,.place-card,.side-card,.map-panel,.map-section,.filters,.source-banner,.gallery-grid .gallery-card) {background:#17263bdb!important;border-color:#334d6b!important;color:#edf4ff!important;box-shadow:0 12px 34px #0003!important}
html[data-theme="dark"] :is(.desktop-nav,.weather-pill,.clock-pill,.round-action,.nmron-hmore,.nmron-hmodal .nmron-hdialog,.nmron-hdialog kbd,.n65-tabs,.n65-tab,.c27-shortcut,.c27-stat,.utility,.utility-links a,.utility-links button,.navbox,.nmron-hbar) {background:#192d47!important;color:#e2eefd!important;border-color:#3a5474!important}
html[data-theme="dark"] :is(.nmron-hbrand,.nmron-hbrand-sub,.nmron-hbrand-name,.brand-copy strong,.brand-copy small,.brand,.navbox,.topbar) {color:#ecf4ff!important}
html[data-theme="dark"] :is(.hero-lead,.module-hero p,.hero-card p,.n65-hero-card p,.n65-meta,.n65-kicker,.c27-section p,.weather-pill em,.brand-copy small,.nmron-hbrand-sub) {color:#b4c6db!important}
html[data-theme="dark"] :is(.hero h1,.module-hero h1,.n65-hero-card h1,.n65-section-head h2,.n65-section-head h3,.c27-section h2) {color:#f2f7ff!important}
html[data-theme="dark"] header.topbar nav.desktop-nav.nmron-navlinks-19112 > :is(a,button),
html[data-theme="dark"] header.topbar nav.desktop-nav.nmron-navlinks-19112 > a.nmron-nav-extra {color:#c3d3e9!important}
html[data-theme="dark"] header.topbar nav.desktop-nav.nmron-navlinks-19112 > a[aria-current="page"] {background:#264c83!important;color:#fff!important}
html[data-theme="dark"] header.topbar .nmron-theme-switch,html[data-theme="dark"] .nmron-hbuttons .nmron-theme-switch {background:#244268!important;color:#ffdc8b!important;border-color:#44618b!important}
html[data-theme="dark"] :is(.site-main input,.site-main textarea,.site-main select,.n65-input,.c27-input,.c27-textarea,.c27-select) {background:#13243b!important;color:#eef5ff!important;border-color:#415776!important}
html[data-theme="dark"] :is(.site-main input,.site-main textarea,.site-main select)::placeholder{color:#9fb2cc!important}
html[data-theme="dark"] :is(.n65-room,.n65-message .n65-msg-box,.n65-chat,.n65-side,.n65-people,.n65-chat-head,.n65-composer,.n65-empty,.c27-review,.c27-rank,.c27-photo,.c27-form) {background-color:#192b43!important;color:#eaf3ff!important;border-color:#36516e!important}
html[data-theme="dark"] .nmron-hmodal .nmron-hdialog :is(p,ol,li){color:#c2d3e8!important}
html[data-theme="dark"] .nmron-hdialog h2{color:#f4f8ff!important}
@media(max-width:720px){header.topbar .nmron-theme-switch,.nmron-hbuttons .nmron-theme-switch{min-width:35px;flex-basis:35px;width:35px;height:35px;border-radius:10px!important}}
@media(prefers-reduced-motion:reduce){html[data-theme] *{scroll-behavior:auto}}
