.home-template .site-header-inner { display: flex !important; flex-direction: column !important; align-items: center !important; }
.home-template .site-header-inner::before, .nsm-scroll-logo::before { content: none !important; }
.nsm-wave-overlay { display: none !important; }
.home-template .site-header-inner, .nsm-scroll-logo { isolation: isolate !important; overflow: visible !important; }
.nsm-surf-logo { display: inline-block; position: relative; isolation: isolate; flex: 0 0 auto; width: min(270px, 80vw); height: 58px; line-height: 0; vertical-align: middle; }
.home-template .site-header-inner .nsm-surf-logo > .site-logo, .nsm-scroll-logo .nsm-surf-logo > img { left: 0px; top: 50%; z-index: 2; display: block; object-fit: contain; position: absolute !important; width: 100% !important; height: auto !important; max-width: 100% !important; max-height: none !important; opacity: 1 !important; filter: url("#nsm-logo-ink-outline") !important; animation: auto ease 0s 1 normal none running none !important; transform: translateY(-50%) !important; }
.nsm-surf-refraction img { left: 0px; top: 50%; object-fit: contain; position: absolute !important; transform: translateY(-50%) !important; display: block !important; width: 100% !important; height: auto !important; max-width: 100% !important; max-height: none !important; filter: none !important; }
.nsm-surf-logo svg { position: absolute; display: block; overflow: visible; pointer-events: none; }
.nsm-surf-crest { z-index: 1; width: 116%; height: 76px; left: -8%; top: -23px; transform-origin: 50% 65%; opacity: 0; animation: 7.5s cubic-bezier(0.22, 0.65, 0.3, 1) 0s infinite normal none running nsm-surf-break; }
.nsm-surf-foam { z-index: 4; width: 116%; height: 96px; left: -8%; top: -12px; transform-origin: 50% 52%; opacity: 0; animation: 7.5s ease-out 0s infinite normal none running nsm-surf-rush; }
.nsm-surf-spray { z-index: 5; width: 132%; height: 110px; left: -16%; top: -25px; transform-origin: 50% 58%; opacity: 0; animation: 7.5s ease-out 0s infinite normal none running nsm-surf-spray; }
.home-template .site-header-inner .nsm-surf-logo > .nsm-surf-refraction, .nsm-scroll-logo .nsm-surf-logo > .nsm-surf-refraction { inset: 0px; z-index: 3; opacity: 0; pointer-events: none; position: absolute !important; filter: brightness(0) saturate(100%) invert(78%) sepia(26%) saturate(756%) hue-rotate(147deg) !important; animation: 7.5s linear 0s infinite normal none running nsm-surf-letters !important; }
.nsm-scroll-logo .nsm-surf-crest { top: -23px; height: 76px; }
.nsm-scroll-logo .nsm-surf-foam, .nsm-scroll-logo .nsm-surf-spray { top: -12px; height: 78px; }
@keyframes nsm-surf-break { 
  0%, 4% { opacity: 0; transform: translateY(-14px) scale(0.48, 0.32); }
  9% { opacity: 0.35; transform: translateY(-10px) scale(0.65, 0.5); }
  15% { opacity: 0.7; transform: translateY(-4px) scale(0.86, 0.8); }
  19% { opacity: 0.85; transform: translateY(0px) scale(1, 1); }
  23% { opacity: 0.5; transform: translateY(9px) scale(1.08, 0.7); }
  28%, 100% { opacity: 0; transform: translateY(22px) scale(1.18, 0.18); }
}
@keyframes nsm-surf-rush { 
  0%, 18% { opacity: 0; transform: translateY(-9px) scale(0.52, 0.24); }
  22% { opacity: 0.9; transform: translateY(-2px) scale(0.78, 0.7); }
  27% { opacity: 0.86; transform: translateY(5px) scale(1.06, 1.02); }
  34% { opacity: 0; transform: translateY(13px) scale(1.35, 1.26); }
  100% { opacity: 0; transform: translateY(13px) scale(1.35, 1.26); }
}
@keyframes nsm-surf-spray { 
  0%, 19% { opacity: 0; transform: translateY(-6px) scale(0.55, 0.35); }
  23% { opacity: 0.88; transform: translateY(-5px) scale(0.9, 0.9); }
  31% { opacity: 0.4; transform: translateY(5px) scale(1.2, 1.1); }
  37%, 100% { opacity: 0; transform: translateY(12px) scale(1.4, 1.3); }
}
@keyframes nsm-surf-letters { 
  0%, 18% { opacity: 0; clip-path: polygon(0px 0px, 100% 0px, 100% 0px, 0px 0px); }
  21% { opacity: 0.85; clip-path: polygon(0px 5%, 100% 0px, 100% 48%, 0px 38%); }
  26% { opacity: 0.7; clip-path: polygon(0px 46%, 100% 36%, 100% 96%, 0px 100%); }
  30% { opacity: 0; clip-path: polygon(0px 100%, 100% 100%, 100% 100%, 0px 100%); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nsm-surf-logo svg, .nsm-surf-logo .nsm-surf-refraction { display: none !important; animation: auto ease 0s 1 normal none running none !important; }
}
.nsm-scroll-logo { border-bottom-color: rgb(51, 51, 51) !important; box-shadow: rgb(0, 0, 0) 0px 3px 12px !important; }
/* numbered ribbon badges for the top three local picks */
#nsm-local-favorites .lf-item:nth-child(-n+3) .lf-rank, #nsb-food-finder .nsbff-community-pick:nth-of-type(-n+3)>span{display:flex!important;align-items:center;justify-content:center;width:38px!important;min-width:38px;height:48px!important;min-height:48px!important;padding:0!important;border:0!important;border-radius:0!important;clip-path:polygon(0 0,100% 0,100% 78%,72% 100%,50% 86%,28% 100%,0 78%);background:#d9a441!important;color:#fff!important;font:700 18px/1 Arial,sans-serif!important;text-shadow:0 1px 1px #0006;box-shadow:none!important;}
#nsm-local-favorites .lf-item:nth-child(2) .lf-rank,#nsb-food-finder .nsbff-community-pick:nth-of-type(3)>span{background:#9aa6b2!important;}
#nsm-local-favorites .lf-item:nth-child(3) .lf-rank,#nsb-food-finder .nsbff-community-pick:nth-of-type(4)>span{background:#b8794e!important;}
#nsm-local-favorites .lf-item:nth-child(n+4) .lf-rank{background:transparent!important;color:inherit!important;clip-path:none!important;width:auto!important;min-width:0!important;height:auto!important;min-height:0!important;}
@media(max-width:767px){#nsm-local-favorites .lf-item:nth-child(-n+3) .lf-rank,#nsb-food-finder .nsbff-community-pick:nth-of-type(-n+3)>span{width:32px!important;min-width:32px!important;height:42px!important;min-height:42px!important;font-size:16px!important;}}

/* Filled political vote stamps with high-contrast text */
#nsb-election-ledger#nsb-election-ledger .v4-stamp.yes{color:#fff!important;background:#176b46!important;border-color:#176b46!important;box-shadow:0 2px 0 #123d2d!important}
#nsb-election-ledger#nsb-election-ledger .v4-stamp.no{color:#fff!important;background:#a63b32!important;border-color:#a63b32!important;box-shadow:0 2px 0 #642820!important}
#nscv-explorer#nscv-explorer .nscv-outcome.nscv-outcome-passed,#nscv-explorer#nscv-explorer .nscv-ballot-label:not(.nscv-no){color:#fff!important;background:#176b46!important;border-color:#176b46!important;box-shadow:0 2px 0 #123d2d!important}
#nscv-explorer#nscv-explorer .nscv-outcome.nscv-outcome-not-passed,#nscv-explorer#nscv-explorer .nscv-ballot-label.nscv-no{color:#fff!important;background:#a63b32!important;border-color:#a63b32!important;box-shadow:0 2px 0 #642820!important}
#nscv-explorer#nscv-explorer .nscv-outcome.nscv-outcome-deferred,#nscv-explorer#nscv-explorer .nscv-outcome.nscv-outcome-no-second,#nscv-explorer#nscv-explorer .nscv-outcome.nscv-outcome-unresolved{color:#fff!important;background:#755000!important;border-color:#755000!important;box-shadow:0 2px 0 #493300!important}
#nscv-explorer#nscv-explorer .nscv-outcome.nscv-outcome-withdrawn,#nscv-explorer#nscv-explorer .nscv-outcome.nscv-outcome-other{color:#fff!important;background:#435569!important;border-color:#435569!important;box-shadow:0 2px 0 #263541!important}

/* Fill the YES / NO vote badges in the council header illustration */
#nscv-explorer#nscv-explorer .n8-vote-stamps b:first-child{color:#fff!important;background:#176b46!important;border-color:#176b46!important}
#nscv-explorer#nscv-explorer .n8-vote-stamps b:last-child{color:#fff!important;background:#a63b32!important;border-color:#a63b32!important}

/* Filled YES/NO stamps on the homepage Council Votes card */
html.n6 #site-main a.n7-votes .n7-stamps b:first-child{color:#fff!important;background:#176b46!important;border-color:#176b46!important;box-shadow:0 2px 0 #123d2d!important}
html.n6 #site-main a.n7-votes .n7-stamps b:last-child{color:#fff!important;background:#a63b32!important;border-color:#a63b32!important;box-shadow:0 2px 0 #642820!important}
