/* Top bar and crumbs (inc_topnav.php), SnowGrabber's layout in road colours */

#jj_header.jjn { position: sticky; top: 0; z-index: 60; max-width: none; margin: 0; background: none; font-family: 'Droid Sans', Arial, sans-serif; }

.jjn_bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; min-height: 52px; box-sizing: border-box;
  padding: 0 max(12px, calc(50% - 640px)); color: #fff; background: rgba(28,30,33,.86);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); }
.jjn_bar::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: linear-gradient(rgba(28,30,33,.5), rgba(28,30,33,.5)), url(/img/jj-header-road.jpg) no-repeat center 52% / cover;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); }
.jjn_bar a { color: #fff; text-decoration: none; }
.jjn_brand { display: flex; align-items: center; gap: 8px; flex: none; font: bold 22px/1.1 Verdana, Geneva, sans-serif; white-space: nowrap; }
.jjn_brand b, .jjn_brand span, a.jjn_place { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding: .08em 0; filter: drop-shadow(0 0 1px rgba(0,0,0,.35)) drop-shadow(1px 2px 2px rgba(0,0,0,.65)); }
.jjn_brand b { color: #fff; background-image: linear-gradient(#fff 40%, #c9cdd3 95%); }
.jjn_brand span, a.jjn_place { color: #f2c21b; background-image: linear-gradient(#ffe36b 20%, #f2c21b 60%, #c99a06 100%); }
a.jjn_place { flex: 0 1 auto; min-width: 0; font: bold 24px/1.1 Verdana, Geneva, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.jjn_btns { display: flex; gap: 8px; margin-left: auto; flex: none; }
a.jjn_btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 4px; font-size: 13px; font-weight: bold; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.4); }
a.jjn_btn i { font-style: normal; }
a.jjn_btn svg { width: 17px; height: 17px; flex: none; }
.jjn_bar a.jjn_pass { background: #006b3f; border: 1.5px solid #fff; }
.jjn_bar a.jjn_inc { background: #b3261e; }
.jjn_bar a.jjn_rw { background: #f2c21b; color: #1d1e20; }

.jjn_crumb { position: relative; z-index: 2; display: flex; align-items: center; gap: 0 4px; padding: 5px max(8px, calc(50% - 640px)) 6px;
  background: rgba(46,49,53,.92); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 1px 8px rgba(0,0,0,.18); white-space: nowrap; font-size: 13px; color: #fff; }
.jjn_crumb > button, .jjn_crumb > a.jjn_last { flex: 0 1 auto; min-width: 0; padding: 3px 9px; border: 1px solid rgba(255,255,255,.35); border-bottom-color: rgba(0,0,0,.35);
  border-radius: 4px; background: linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.1)); box-shadow: 0 1px 0 rgba(0,0,0,.25);
  color: #fff; font: bold 13px/1.3 'Droid Sans', Arial, sans-serif; overflow: hidden; text-overflow: ellipsis; cursor: pointer; text-decoration: none; }
.jjn_crumb > button::after { content: ' \25BE'; font-size: 11px; opacity: .7; }
.jjn_crumb > button[aria-pressed="true"] { color: #1d1e20; background: linear-gradient(#ffe36b, #f2c21b); border-color: #f2c21b; box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }
.jjn_crumb > button[aria-pressed="true"]::after { content: ' \25B4'; }
.jjn_crumb > i { flex: none; margin: 0 2px; font-style: normal; font-weight: bold; color: rgba(255,255,255,.55); }
.jjn_crumb form#jj-search-form { position: relative; display: flex; flex: 0 1 380px; margin: 0 0 0 auto; padding: 0; background: none; }
.jjn_crumb form#jj-search-form input { flex: 1; min-width: 0; height: 28px; box-sizing: border-box; margin: 0; padding: 0 12px; border: 0; border-radius: 3px 0 0 3px;
  background: rgba(255,255,255,.93); font-size: 13px; color: #233758; }
.jjn_crumb form#jj-search-form button { height: 28px; margin: 0; padding: 0 13px; border: 0; border-radius: 0 3px 3px 0; background: #f2c21b; color: #1d1e20;
  font: bold 13px 'Droid Sans', Arial, sans-serif; cursor: pointer; }
.jjn_crumb form#jj-search-form #jj-search-dropdown { position: absolute; top: 30px; left: 0; right: 0; white-space: normal; color: #222; }

.jjn_tray { position: absolute; left: 0; right: 0; top: 100%; z-index: 1; max-height: 64vh; overflow-y: auto; box-sizing: border-box;
  padding: 8px 56px 12px max(10px, calc(50% - 640px)); color: #fff; background: rgba(32,34,37,.94);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.jjn_tray[hidden] { display: none; }
.jjn_close { position: absolute; top: 6px; right: 8px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.2); color: #fff; font-size: 26px; line-height: 40px; cursor: pointer; }
.jjn_tabs { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 8px; }
.jjn_tabs button, #jjn_tray_state #state_subnav .sn_tab { padding: 4px 11px; border: 0; border-radius: 4px; background: rgba(255,255,255,.12); color: #fff;
  font: bold 13px 'Droid Sans', Arial, sans-serif; cursor: pointer; text-decoration: none; }
.jjn_tabs button[aria-pressed="true"], #jjn_tray_state #state_subnav .sn_tab[aria-selected="true"] { background: #fff; color: #1d1e20; }
.jjn_tabs .cam_number, .jjn_tray .cam_number { background: none !important; margin-left: 5px; font-size: 11px; font-weight: normal; opacity: .7; color: inherit !important; }
ul.jjn_list, #jjn_tray_state #state_subnav ul.sn_strip { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px 6px; max-width: none; margin: 0; padding: 0; list-style: none; }
ul.jjn_list[hidden], #jjn_tray_state #state_subnav ul.sn_strip[hidden] { display: none; }
ul.jjn_list a, #jjn_tray_state #state_subnav ul.sn_strip li a { display: inline-block; padding: 5px 11px; border-radius: 14px; background: rgba(255,255,255,.14);
  color: #fff; font-size: 14px; text-decoration: none; white-space: nowrap; }
ul.jjn_list a:hover, #jjn_tray_state #state_subnav ul.sn_strip li a:hover { background: rgba(255,255,255,.26); color: #fff; }
ul.jjn_list a.cam_hilite, #jjn_tray_state #state_subnav ul.sn_strip li a.cam_hilite { background: #f2c21b; color: #1d1e20; }
.jjn_tray .jjn_all a, #jjn_tray_state #state_subnav ul.sn_strip li.sn_more a { background: none; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; font-weight: bold; }
p.jjn_all { margin: 0 0 8px; }
p.jjn_all a { display: inline-block; padding: 4px 11px; color: #fff; text-decoration: none; font-size: 13px; }
div#jjn_tray_state #state_subnav { padding: 0; background: none; border: 0; }
div#jjn_tray_state #state_subnav .sn_tabs { justify-content: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
div#jjn_tray_state #state_subnav .sn_tab.sn_here { box-shadow: inset 0 -2px 0 #f2c21b; }
div#jjn_tray_state #state_subnav a.sn_all { background: none; color: #fff; opacity: .8; }

h1.jjn_h1 { max-width: 1200px; margin: 14px auto 2px; padding: 0 12px; background: none; color: #2b2e33; font: bold 26px/1.2 'Droid Sans', Arial, sans-serif; text-align: center; }
h1.jjn_h1 a:link, h1.jjn_h1 a:visited { color: #233758; }

.jjn_tabbar { display: none; }
body:has(a.jjn_rw) li.rw-banner-row { display: none; }

@media (max-width: 1000px) { a.jjn_btn i { display: none; } .jjn_brand > span { display: none; } }
@media (max-width: 700px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .jjn_bar { gap: 8px; min-height: 48px; padding: 0 10px; }
  .jjn_brand { flex-direction: row; font-size: 16px; gap: 6px; }
  a.jjn_place { font-size: 20px; }
  .jjn_btns, .jjn_crumb form#jj-search-form { display: none; }
  .jjn_crumb { overflow-x: auto; scrollbar-width: none; }
  body.jjn_find .jjn_crumb { overflow: visible; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.jjn_find .jjn_crumb form#jj-search-form { display: flex; position: fixed; left: 10px; right: 10px; width: auto; max-width: none; flex: none; top: 92px; z-index: 70; }
  body.jjn_find .jjn_crumb form#jj-search-form input, body.jjn_find .jjn_crumb form#jj-search-form button { height: 42px; font-size: 16px; }
  body.jjn_find .jjn_crumb form#jj-search-form #jj-search-dropdown { top: 44px; }
  .jjn_tray { padding: 8px 52px 12px 10px; max-height: 70vh; }
  h1.jjn_h1 { margin-top: 10px; font-size: 20px; }
  .jjn_tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid #e3e7ec; }
  .jjn_tabbar a, .jjn_tabbar button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; border: 0; background: none;
    font: 10px Verdana, Geneva, sans-serif; color: #4b5560; text-decoration: none; cursor: pointer; }
  .jjn_tabbar svg { width: 24px; height: 24px; }
  .jjn_tabbar .jjn_t_pass { color: #006b3f; }
  .jjn_tabbar .jjn_t_inc { color: #b3261e; }
  .jjn_tabbar sup { position: absolute; top: -3px; left: calc(50% + 8px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #006b3f; color: #fff;
    font-size: 10px; line-height: 17px; font-weight: bold; }
  .jjn_tabbar .jjn_t_inc sup { background: #b3261e; }
}

/* less space between the title and the first cams */
body:has(#jj_header.jjn) div.view-toolbar { padding-bottom: 6px; }
body:has(#jj_header.jjn) div#wrapper p.header-subnav { margin: 2px auto 6px; font-size: 12px; }
body:has(#jj_header.jjn) ul.result-structure { margin-top: 4px; }
body:has(#jj_header.jjn) p.header-para { margin: 0 auto 6px; }

/* anchors land below the sticky bar */
html { scroll-padding-top: 100px; }

/* drive pages keep their own bottom bar */
body.drive-page .jjn_tabbar { display: none; }
@media (max-width: 700px) { body.drive-page { padding-bottom: 0; } }
