/* Theme bridge for the New River Days app.
   This is intentionally token-based: map your existing site's color variables
   to these values, instead of applying broad selectors to all cards/buttons.
   For the standalone demo, see demo.html. */
:root[data-nrd-theme="light"] {
  color-scheme: light;
  --nrd-page-bg: #fbfaf6;
  --nrd-surface: #ffffff;
  --nrd-ink: #18332c;
  --nrd-muted: #596e66;
  --nrd-line: #dbe5df;
  --nrd-green: #146b50;
}
:root[data-nrd-theme="dark"] {
  color-scheme: dark;
  --nrd-page-bg: #101c1b;
  --nrd-surface: #1b2c28;
  --nrd-ink: #f0f5e8;
  --nrd-muted: #bdd0c1;
  --nrd-line: #355149;
  --nrd-green: #9cd7a5;
}

nrd-glowcap{display:inline-flex;width:132px;height:60px;flex:none;vertical-align:middle}
@media(max-width:760px){nrd-glowcap{width:112px;height:51px}}@media(max-width:360px){nrd-glowcap{width:100px;height:46px}}
@media (prefers-reduced-motion: no-preference){body,.x-page,.x-top,.x-card,.x-event,.x-row,.x-signup,.x-footer,footer,header:not(.x-top){transition:background-color 1.7s ease,color 1.7s ease,border-color 1.7s ease}}
.x-top .x-wrap{gap:8px}.x-top nrd-glowcap{order:9}.x-top .x-logo{min-width:0}.x-top .x-logo__img{max-width:100%;height:auto}
@media(max-width:760px){.x-top .x-logo{flex:1;min-width:0}.x-top .x-burger{order:10}.x-top .x-wrap{gap:5px}}
header:not(.x-top) nrd-glowcap{float:right}
:root[data-nrd-theme="dark"]{color-scheme:dark!important;--x-page:#101b27;--x-card:#202f40;--x-navy:#e6effa;--x-navy-2:#d7e7f8;--x-blue:#a9d1ff;--x-river-ink:#a9d1ff;--text-primary:#f2f5f9;--text-secondary:#c4d0dc;--mat-agent:#192b3bf2;--stroke-secondary:#627286;--navy:#e6effa;--cream:#101b27;--river-ink:#a9d1ff}
:root[data-nrd-theme="dark"] body,:root[data-nrd-theme="dark"] .x-page{background:#101b27;color:#f2f5f9}
:root[data-nrd-theme="dark"] :is(.x-card,.card,.x-event,.x-row,.x-signup,.x-drawer,.x-modal,.mg-body,.x-filter,.x-panel,.x-footer,footer,header:not(.x-top)){background-color:#202f40;color:#f2f5f9;border-color:#627286}
:root[data-nrd-theme="dark"] :is(h1,h2,h3,h4,p,li,label,.eff,.back){color:inherit}
:root[data-nrd-theme="dark"] a:not(.x-cta){color:#b5d8ff}
:root[data-nrd-theme="dark"] :is(input,select,textarea){background:#172534;color:#fff;border-color:#aab9c8}
:root[data-nrd-theme="dark"] .x-map{color-scheme:light;background:#fff;color:#182b3d}
:root[data-nrd-theme="dark"] .x-top{background:#192b3b!important}
:root[data-nrd-theme="dark"] .x-top .x-logo__img{background:transparent;filter:brightness(0) invert(.94)}
:root[data-nrd-theme="dark"] .x-top .x-logo__img[src$="logo-horizontal.svg"]{content:url('/logo-horizontal-dark.svg');filter:none}
:root[data-nrd-theme="dark"] .x-search{background:#202f40;color:#eef4fb}
:root[data-nrd-theme="dark"] .x-search .x-field{color:#eef4fb}
:root[data-nrd-theme="dark"] .x-search .x-field input{background:transparent;color:#f4f7fb;border-color:transparent}
:root[data-nrd-theme="dark"] .x-search .x-field input::placeholder{color:#c6d2df;opacity:1}
:root[data-nrd-theme="dark"] .x-search .x-field select{background:transparent;color:#eef4fb}
:root[data-nrd-theme="dark"] .x-search .x-field select option{background:#202f40;color:#f4f7fb}
@media(max-width:640px){:root[data-nrd-theme="dark"] .x-search{background:transparent}:root[data-nrd-theme="dark"] .x-search .x-field{background:#202f40}:root[data-nrd-theme="dark"] .x-search .x-field--sel svg,:root[data-nrd-theme="dark"] .x-search .x-search__go{color:#eef4fb}}
:root[data-nrd-theme="dark"] .x-top .x-burger{color:#f2f5f9!important}
:root[data-nrd-theme="dark"] .x-top .x-menu button,:root[data-nrd-theme="dark"] .x-top .x-iconbtn{color:#f2f5f9!important}
:root[data-nrd-theme="dark"] .x-top .x-iconbtn{background:#30465a!important}
:root[data-nrd-theme="dark"] .x-m a{color:#34465b!important}
:root[data-nrd-theme="dark"] .x-m a[aria-current="page"]{color:#79330e!important}
:root[data-nrd-theme="dark"] select{background:#fff;color:#172534}
:root[data-nrd-theme="dark"] .x-tabbar a,:root[data-nrd-theme="dark"] .x-tabbar button{color:#34465b!important}
:root[data-nrd-theme="dark"] .x-tabbar a.is-on{color:#79330e!important}
:root[data-nrd-theme="dark"] .nrd-phone-bar a{color:#0b2d52!important}
:root[data-nrd-theme="dark"] .nrd-top-signup{background:#202f40!important;color:#f2f5f9!important}
:root[data-nrd-theme="dark"] .nrd-top-signup :is(h2,p){color:#f2f5f9!important}
:root[data-nrd-theme="dark"] input::placeholder,:root[data-nrd-theme="dark"] textarea::placeholder{color:#c3d0de;opacity:1}
:root[data-nrd-theme="dark"] .x-nsu button,:root[data-nrd-theme="dark"] .x-cta{background:#a83b0b!important;color:#fff!important}
:root[data-nrd-theme="dark"] .x-joinbtn{color:#ffb9a7!important}
:root[data-nrd-theme="dark"] .x-tag{color:#172534!important}
:root[data-nrd-theme="dark"] .x-drawer{background:#202f40!important}
:root[data-nrd-theme="dark"] .x-band{background:#18334c!important;color:#fff}
:root[data-nrd-theme="dark"] .x-pet__body{background:#202f40;color:#f2f5f9}
:root[data-nrd-theme="dark"] :is(.x-fcard,.x-catstrip){background:#202f40!important;color:#f2f5f9!important}
:root[data-nrd-theme="dark"] :is(.x-fcard h3,.x-fcard .x-loc,.x-fcard .x-card__info){color:#f2f5f9!important}
:root[data-nrd-theme="dark"] :is(.x-ghost,.x-more,.x-filter button,.x-wx,.x-fc li,.x-date){color:#172534!important}
:root[data-nrd-theme="dark"] .x-cal button[data-day]{color:#172534!important}
:root[data-nrd-theme="dark"] .x-date em{color:#a8221c!important}
:root[data-nrd-theme="dark"] .x-date strong{color:#172534!important}
@media(max-width:760px){.x-top .x-wrap{gap:8px}.x-top .x-logo__img{max-width:calc(100% - 8px)}}
:root[data-nrd-theme="dark"] .x-catstrip :is(a,button,span){color:#f2f5f9!important}
:root[data-nrd-theme="dark"] .x-more{color:#b5d8ff!important}
:root[data-nrd-theme="dark"] a.x-more{color:#b5d8ff!important}
:root[data-nrd-theme="dark"] .x-ghost{background:#fff!important;color:#172534!important}
:root[data-nrd-theme="dark"] .wxw__lbl :is(b,span){color:#172534!important}
:root[data-nrd-theme="dark"] .wxw__day :is(b,i,strong,em){color:#172534!important}
:root[data-nrd-theme="dark"] :is(.x-cal__dow,.x-cal__num,.x-cal__n){color:#172534!important}
:root[data-nrd-theme="dark"] .x-seg.x-cal button{background:#fff!important;opacity:1!important}
:root[data-nrd-theme="dark"] .x-seg.x-cal button[aria-pressed="true"]{box-shadow:inset 0 0 0 3px #16518a!important}
:root[data-nrd-theme="dark"] .x-map :is(span,a){color:#172534!important}
:root[data-nrd-theme="dark"] #featbiz-title,:root[data-nrd-theme="dark"] #featbiz-title + p{color:#172534!important}
:root[data-nrd-theme="dark"] footer .x-flogo img{background:#fff;border-radius:8px;padding:8px;box-sizing:content-box}
:root[data-nrd-theme="dark"] a.go{background:#a82d19;color:#fff!important}
:root[data-nrd-theme="dark"] .x-tag--season{background:#292440!important;color:#fff!important}
:root[data-nrd-theme="dark"] .ng-steps{background:#202f40;color:#f2f5f9}
:root[data-nrd-theme="dark"] .ng-sec__hd{color:#172534!important}
:root[data-nrd-theme="dark"] .ng-sec__hd :is(h2,p,.ng-tag){color:#172534!important}
:root[data-nrd-theme="dark"] .mg-body :is(h3,p,span,b){color:#f2f5f9!important}
:root[data-nrd-theme="dark"] .ng-src{color:#172534!important}
:root[data-nrd-theme="dark"] :is(.ng-hero__k,.ng-n,.kc__pill){background:#9d3b0d!important;color:#fff!important}
:root[data-nrd-theme="dark"] :is(.kc,.mg-slot){color:#172534!important}
:root[data-nrd-theme="dark"] :is(.kc,.mg-slot) :is(p,b,span,a){color:#172534!important}
:root[data-nrd-theme="dark"] .ng-jump a,:root[data-nrd-theme="dark"] .ng-steps li a b{color:#172534!important}
:root[data-nrd-theme="dark"] .kc .kc__pill,:root[data-nrd-theme="dark"] .kc .kc__band p{color:#fff!important}
