/* Finelib Knowledge – shared visual polish v1 (presentation only; no tool, map or form logic is touched).
   Brings Markets, Maps, Compare, Match and Calculators headers in line with the Finelib Match look:
   olive brand bar, deep-green menu, orange hover/current item, swipeable menu on phones. */
:root{--flp-olive:#83ae31;--flp-deep:#143a25;--flp-orange:#f28b0b}

/* Markets / Match / Prices style: <header> + <nav> */
body>header:not(.finelib-header){background:var(--flp-olive)!important}
body>header:not(.finelib-header) strong,body>header:not(.finelib-header) b{color:var(--flp-deep)!important}
body>nav{background:var(--flp-deep)!important}
body>nav a{border-radius:0!important;color:#fff!important}
body>nav a:hover,body>nav a:focus-visible,body>nav a[aria-current=page]{background:var(--flp-orange)!important;color:var(--flp-deep)!important}

/* Compare style: .top + .nav */
body>.top{background:var(--flp-olive)!important}
body>.top b,body>.top strong{color:var(--flp-deep)!important}
body>.nav{background:var(--flp-deep)!important}
body>.nav a{color:#fff!important}
body>.nav a:hover,body>.nav a:focus-visible{background:var(--flp-orange)!important;color:var(--flp-deep)!important}

/* Maps style: header.finelib-header */
.finelib-header .finelib-top{background:var(--flp-olive)!important}
.finelib-header .finelib-top strong{color:var(--flp-deep)!important}
.finelib-header .finelib-menu{background:var(--flp-deep)!important}
.finelib-header .finelib-menu a{color:#fff!important;border-radius:0!important;background:transparent!important}
.finelib-header .finelib-menu a:hover,.finelib-header .finelib-menu a:focus-visible,.finelib-header .finelib-menu a[aria-current=page]{background:var(--flp-orange)!important;color:var(--flp-deep)!important}

/* Footers: consistent olive top rule */
body>footer{border-top:4px solid var(--flp-olive)}

/* Phones: one swipeable menu row instead of 2–3 wrapped rows */
@media(max-width:700px){
 body>nav,body>.nav,.finelib-header .finelib-menu-inner,.fl-unified-header .fl-nav{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:0!important}
 body>nav::-webkit-scrollbar,body>.nav::-webkit-scrollbar,.finelib-header .finelib-menu-inner::-webkit-scrollbar,.fl-unified-header .fl-nav::-webkit-scrollbar{display:none}
 body>nav a,body>.nav a,.finelib-header .finelib-menu-inner a,.fl-unified-header .fl-nav a{flex:0 0 auto!important;white-space:nowrap!important}
 .finelib-header .finelib-top img.finelib-logo{width:130px!important;min-height:0!important}
 .finelib-header .finelib-top-right span{display:none}
 body>header:not(.finelib-header){padding:10px 16px!important;flex-wrap:nowrap!important}
 body>header:not(.finelib-header) img{width:115px!important;height:auto!important}
 body>header:not(.finelib-header) strong{font-size:19px!important}
}
