/* Jimbo Social: Road Log look.
   A road-trip identity for the feed: channel colors, highway-shield channel tags,
   mile-marker timestamps, dashboard-switch reactions, Today's Run and a real "caught up" stop. */

.js-page { --jx-amber: #f5a623; --jx-ink: #141414; --jx-green: #0d6b3a;
  --jx-card-1: #ffffff; --jx-card-2: #fffaf0; --jx-edge: #ebe2cf; --jx-sw-1: #ffffff; --jx-sw-2: #f1ebdf; --jx-sw-edge: #ddd3bf; --jx-asph: #2b2c31; }
[data-theme='dark'] .js-page { --jx-card-1: #1f2025; --jx-card-2: #18191d; --jx-edge: #2c2d33; --jx-sw-1: #2a2b31; --jx-sw-2: #1d1e22; --jx-sw-edge: #34353c; }

/* Members go straight to the road. The big welcome banner is for visitors. */
html.jx-member .js-hero, body.jsf-member .js-hero { display: none; }
html.jx-member .header:not(.is-scrolled), body.jsf-member .header:not(.is-scrolled) { background: #111213; border-color: #26272c; }

/* ---------- Visitor welcome: a night highway that moves ---------- */
.js-hero { isolation: isolate; }
.js-hero::after { content: ''; position: absolute; z-index: -1; left: -30%; bottom: -40%; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(245 166 35 / .28), rgb(245 166 35 / 0) 62%); animation: jx-beam 9s ease-in-out infinite alternate; pointer-events: none; }
@keyframes jx-beam { from { transform: translate(0, 0); } to { transform: translate(70%, -18%); } }
.js-hero__road .dash { stroke-dasharray: 18 22; animation: jx-dash 1.6s linear infinite; }
@keyframes jx-dash { to { stroke-dashoffset: -40; } }
.jx-ticker { margin-top: 1.1rem; display: grid; gap: .35rem; max-width: 640px; padding: .55rem .8rem; border-radius: 12px;
  background: rgb(0 0 0 / .45); border: 1px solid rgb(245 166 35 / .35); box-shadow: inset 0 0 18px rgb(245 166 35 / .08); overflow: hidden; }
.jx-ticker__k { flex: none; display: inline-flex; align-items: center; gap: .4rem; font: 800 .7rem/1 var(--font-display, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: var(--jx-amber); }
.jx-ticker__k i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px #ef4444; animation: jx-blink 1.4s steps(2) infinite; }
@keyframes jx-blink { 50% { opacity: .25; } }
.jx-ticker__w { position: relative; flex: 1; min-width: 0; height: 1.3em; overflow: hidden; color: #f3efe6; font-size: .92rem; }
.jx-ticker__w span { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(100%); transition: opacity .45s, transform .45s; }
.jx-ticker__w span.is-on { opacity: 1; transform: none; }
.jx-ticker__w b { color: #fff; }
.jx-ticker__w em { font-style: normal; color: #5eead4; font-size: .78em; font-weight: 700; }

/* ---------- The feed is a road ---------- */
.js-feed { position: relative; }
.js-feed::before { content: ''; position: absolute; z-index: 0; top: 0; bottom: 0; left: calc(1.1rem + 21px); width: 3px;
  background: repeating-linear-gradient(180deg, var(--jx-amber) 0 14px, transparent 14px 26px); opacity: .55; pointer-events: none; }
.js-feed > * { position: relative; z-index: 1; }

.js-post { --ch: var(--jx-amber); background: linear-gradient(180deg, var(--jx-card-1), var(--jx-card-2)); border-color: var(--jx-edge); overflow: hidden;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), 0 1px 0 rgb(0 0 0 / .03), 0 14px 26px -22px rgb(60 38 0 / .55); }
[data-theme='dark'] .js-post { box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 16px 30px -22px rgb(0 0 0 / .9); }
.js-post::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--ch), color-mix(in oklab, var(--ch) 55%, #000)); }
.js-post::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--ch), transparent 70%); opacity: .55; pointer-events: none; }
.js-post[data-ch='ask'] { --ch: #3b82f6; } .js-post[data-ch='deliveries'] { --ch: #22a35a; } .js-post[data-ch='reports'] { --ch: #e5484d; }
.js-post[data-ch='stops'] { --ch: #f97316; } .js-post[data-ch='fixes'] { --ch: #64748b; } .js-post[data-ch='faith'] { --ch: #8b5cf6; }
.js-post[data-ch='newbies'] { --ch: #14b8a6; } .js-post[data-ch='offduty'] { --ch: #ec4899; }
.js-post.is-pinned { --ch: var(--jx-amber); }

/* Avatar ring in the channel color, like a lit marker on the road line */
.js-post__av img, .js-post__av .js-av { box-shadow: 0 0 0 2px var(--jx-card-1), 0 0 0 4px var(--ch), 0 6px 12px -4px rgb(0 0 0 / .35); }

/* Channel tag as a highway shield */
.js-post__meta .js-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .18rem .55rem .26rem; border-radius: 6px 6px 45% 45% / 6px 6px 38% 38%;
  background: linear-gradient(180deg, color-mix(in oklab, var(--ch) 88%, #fff), var(--ch)); color: #fff !important; font: 800 .7rem/1.1 var(--font-display, sans-serif);
  letter-spacing: .03em; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .75), 0 2px 0 color-mix(in oklab, var(--ch) 60%, #000); text-shadow: 0 1px 0 rgb(0 0 0 / .25); }
.js-post[data-ch='road'] .js-post__meta .js-chip, .js-post.is-pinned .js-post__meta .js-chip { color: #1a1205 !important; text-shadow: none; }

/* Timestamp as a green mile-marker sign */
.js-post__meta .js-time { display: inline-flex; align-items: center; padding: .12rem .42rem; border-radius: 4px; background: var(--jx-green); color: #fff !important;
  font: 800 .68rem/1.1 var(--font-display, sans-serif); letter-spacing: .04em; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .85); }
.js-post__meta .js-time time { color: inherit; }
.js-post__meta .js-time::before { content: none; }
.js-post__meta { gap: .4rem; }

/* Reactions as dashboard switches with an indicator light */
.js-reacts { gap: .22rem; }
.js-react { position: relative; height: 36px; min-width: 36px; padding: 0 .42rem; background: linear-gradient(180deg, var(--jx-sw-1), var(--jx-sw-2)); border: 1px solid var(--jx-sw-edge);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 2px 0 var(--jx-sw-edge); transition: transform .08s, box-shadow .08s, color .2s; }
[data-theme='dark'] .js-react { box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), 0 2px 0 #0b0b0d; }
.js-react:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3); }
.js-react.is-on { color: #1a1205; background: linear-gradient(180deg, #ffd27a, var(--jx-amber)); border-color: #c98208; box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 2px 0 #9a6200, 0 0 16px -2px rgb(245 166 35 / .7); }
.js-react.is-on::after { content: ''; position: absolute; top: 4px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; }
.js-react__n { font-variant-numeric: tabular-nums; }

/* Posts roll in once, the first time you see them */
@media (prefers-reduced-motion: no-preference) {
  .js-post.jx-rise { animation: jx-rise .5s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes jx-rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
}

/* Double-tap thumbs up */
.jx-pop { position: fixed; z-index: 9999; width: 92px; height: 92px; margin: -46px 0 0 -46px; pointer-events: none; display: grid; place-items: center; border-radius: 50%;
  color: #1a1205; background: radial-gradient(circle at 40% 35%, #ffe2a3, var(--jx-amber) 60%, #c98208); box-shadow: 0 10px 30px -6px rgb(245 166 35 / .8), inset 0 2px 0 rgb(255 255 255 / .7);
  animation: jx-pop .8s cubic-bezier(.2,.9,.3,1.3) forwards; }
.jx-pop svg { width: 46px; height: 46px; }
@keyframes jx-pop { 0% { transform: scale(.2) rotate(-18deg); opacity: 0; } 25% { transform: scale(1.12) rotate(4deg); opacity: 1; } 55% { transform: scale(1); } 100% { transform: translateY(-60px) scale(.7); opacity: 0; } }

/* ---------- Today's Run ---------- */
.jx-run { position: relative; overflow: hidden; border-radius: var(--js-r, 14px); padding: 1rem 1rem .9rem; color: #f3efe6;
  background: radial-gradient(120% 90% at 100% 0%, rgb(245 166 35 / .22), transparent 55%), linear-gradient(180deg, #23252b, #141518);
  border: 1px solid #33353c; box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), 0 18px 34px -24px rgb(0 0 0 / .9); }
.jx-run__top { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.jx-run__k { font: 800 .7rem/1 var(--font-display, sans-serif); letter-spacing: .18em; text-transform: uppercase; color: var(--jx-amber); }
.jx-run__day { font: 800 .72rem/1 var(--font-display, sans-serif); letter-spacing: .06em; color: #c9ccd1; }
.jx-run__day b { color: #fff; }
.jx-run h3 { margin: .35rem 0 .75rem; font: 800 1.25rem/1.15 var(--font-display, sans-serif); color: #fff; }
.jx-route { position: relative; height: 34px; margin: 0 6px .7rem; }
.jx-route__road { position: absolute; left: 0; right: 0; top: 13px; height: 8px; border-radius: 6px; background: #3a3c43; box-shadow: inset 0 2px 3px rgb(0 0 0 / .6); }
.jx-route__road::after { content: ''; position: absolute; left: 6px; right: 6px; top: 3px; height: 2px; background: repeating-linear-gradient(90deg, #f5d27a 0 8px, transparent 8px 14px); opacity: .6; }
.jx-route__fill { position: absolute; left: 0; top: 13px; height: 8px; border-radius: 6px; background: linear-gradient(90deg, #c98208, var(--jx-amber)); box-shadow: 0 0 12px rgb(245 166 35 / .6); transition: width .8s cubic-bezier(.2,.7,.2,1); }
.jx-route__stop { position: absolute; top: 8px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #2a2c32; border: 3px solid #555862; transition: background .3s, border-color .3s; }
.jx-route__stop.is-done { background: var(--jx-amber); border-color: #fff; box-shadow: 0 0 10px rgb(245 166 35 / .8); }
.jx-route__truck { position: absolute; top: -6px; width: 36px; height: 22px; margin-left: -18px; transition: left .8s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 3px 3px rgb(0 0 0 / .6)); }
.jx-stops { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin: 0; padding: 0; list-style: none; }
.jx-stop { display: grid; justify-items: start; gap: .3rem; width: 100%; height: 100%; padding: .55rem .6rem .6rem; border-radius: 11px; border: 1px solid #34363d;
  background: linear-gradient(180deg, #2a2c32, #1f2125); color: #f3efe6; font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); }
.jx-stop:active { transform: translateY(1px); }
.jx-stop__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.jx-stop__n { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #3a3c43; color: #fff; font: 800 .74rem/1 var(--font-display, sans-serif); }
.jx-stop.is-done .jx-stop__n { background: var(--jx-amber); color: #1a1205; }
.jx-stop b { font-size: .82rem; line-height: 1.2; }
.jx-stop__c { font: 800 .74rem/1 var(--font-display, sans-serif); color: #c9ccd1; font-variant-numeric: tabular-nums; }
.jx-stop.is-done { border-color: rgb(245 166 35 / .55); }
.jx-stop.is-done .jx-stop__c { color: var(--jx-amber); }
.jx-run__f { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; }
.jx-run__fine { font-size: .72rem; color: #8e939b; }
.jx-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .95rem; border-radius: 999px; border: 1px solid #c98208; cursor: pointer;
  background: linear-gradient(180deg, #ffd27a, var(--jx-amber)); color: #1a1205; font: 800 .82rem/1 var(--font-display, sans-serif); box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 2px 0 #9a6200; text-decoration: none; }
.jx-btn--ghost { background: transparent; color: inherit; border-color: color-mix(in oklab, currentColor 35%, transparent); box-shadow: none; }
.jx-btn svg { width: 16px; height: 16px; }
.jx-run.is-done h3 { color: var(--jx-amber); }
.jx-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.jx-confetti i { position: absolute; top: -10px; width: 7px; height: 12px; border-radius: 2px; animation: jx-fall 1.8s ease-in forwards; }
@keyframes jx-fall { to { transform: translateY(260px) rotate(540deg); opacity: 0; } }

/* ---------- A real "caught up" stop at the end of the road ---------- */
.jx-end { margin: .4rem 0 1rem; padding: 1.2rem 1rem; border-radius: var(--js-r, 14px); text-align: center; border: 1px dashed color-mix(in oklab, var(--jx-amber) 60%, transparent);
  background: radial-gradient(90% 120% at 50% 0%, rgb(245 166 35 / .14), transparent 60%); }
.jx-end__sign { display: inline-grid; place-items: center; padding: .45rem .9rem .5rem; border-radius: 6px; background: var(--jx-green); color: #fff; box-shadow: inset 0 0 0 2px #fff, 0 3px 0 #06391f; }
.jx-end__sign b { font: 900 .95rem/1.05 var(--font-display, sans-serif); letter-spacing: .06em; text-transform: uppercase; }
.jx-end__sign small { font: 700 .66rem/1.2 var(--font-display, sans-serif); letter-spacing: .08em; opacity: .9; }
.jx-end p { margin: .7rem auto .8rem; max-width: 30ch; color: var(--js-mut); font-size: .9rem; }
.jx-end__row { display: flex; gap: .45rem; justify-content: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .js-hero::after, .js-hero__road .dash, .jx-ticker__k i { animation: none; }
  .jx-route__fill, .jx-route__truck { transition: none; }
  .jx-pop { animation-duration: .01s; }
  .jx-confetti { display: none; }
}

/* ---------- Bottom tab bar stays on the bottom (iPhone Safari 26 fix) ----------
   iOS 26 Safari can paint bottom-pinned bars in the middle of the screen after scrolling or after the keyboard closes.
   The blur moves to a layer behind the bar, the bar re-anchors to the visible bottom of the screen,
   and it steps aside while the keyboard is up. */
.js-page .js-tabs { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 0;
  transform: translate3d(0, var(--jx-tabs-y, 0px), 0); will-change: transform; transition: opacity .15s; }
.js-page .js-tabs::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; bottom: -80px; pointer-events: none;
  background: color-mix(in oklab, var(--color-surface) 96%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--js-line); }
.js-page .js-tabs.jx-kb { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Find Drivers: member and online counts ---------- */
.mb-count { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .2rem 0 .7rem; }
.mb-count__i { display: grid; gap: 2px; padding: .7rem .95rem .75rem; border-radius: 14px; border: 1px solid var(--jx-edge);
  background: linear-gradient(180deg, var(--jx-card-1), var(--jx-card-2)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 10px 22px -18px rgb(60 38 0 / .55); position: relative; }
[data-theme='dark'] .mb-count__i { box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 12px 24px -18px rgb(0 0 0 / .9); }
.mb-count__i b { font: 900 1.9rem/1 var(--font-display, sans-serif); letter-spacing: -.5px; font-variant-numeric: tabular-nums; color: var(--color-text); }
.mb-count__i small { font: 800 .7rem/1.1 var(--font-display, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--js-mut); }
.mb-count__i--on b { color: #16a34a; }
[data-theme='dark'] .mb-count__i--on b { color: #4ade80; }
.mb-count__i--on i { position: absolute; top: .8rem; right: .9rem; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgb(34 197 94 / .6); animation: jx-live 1.8s ease-out infinite; }
@keyframes jx-live { 0% { box-shadow: 0 0 0 0 rgb(34 197 94 / .55); } 100% { box-shadow: 0 0 0 10px rgb(34 197 94 / 0); } }
@media (prefers-reduced-motion: reduce) { .mb-count__i--on i { animation: none; } }

/* ---------- Channel tabs always visible ----------
   With the member banner hidden, keep room for the fixed site header so the Social bar never covers the tabs,
   then pin the channel tabs right under the Social bar on phones and tablets. */
html.jx-member .js-top, body.jsf-member .js-top { margin-top: 76px; }
@media (max-width: 1000px) {
  .js-page .js-rail { position: sticky; top: 63px; z-index: 29; padding: .5rem 0 .55rem; margin-top: -.35rem;
    background: var(--color-bg); box-shadow: 0 0 0 100vmax var(--color-bg), 0 1px 0 100vmax var(--js-line); clip-path: inset(0 -100vmax -1px); transition: top .35s var(--ease); }
  body.js-page:has(.header:not(.is-hidden)) .js-rail { top: 139px; }
  .js-page .js-rail__in { position: static; scroll-snap-type: x proximity; scroll-padding-inline: 1rem;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent);
            mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent); }
  .js-page .js-rail__in.jx-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 36px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 36px), transparent); }
  .js-page .js-rail__in.jx-r0 { -webkit-mask-image: none; mask-image: none; }
  .js-page .js-rail__in.jx-l.jx-r0 { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px); mask-image: linear-gradient(90deg, transparent, #000 28px); }
  .js-page .js-rail a { scroll-snap-align: start; padding: .42rem .8rem .42rem .45rem; border-radius: 999px; border: 1px solid var(--js-line); background: var(--js-card); color: var(--color-text); }
  .js-page .js-rail a .js-i { width: 26px; height: 26px; padding: 5px; border-radius: 999px; }
  .js-page .js-rail a b { font-weight: 700; }
  .js-page .js-rail a.is-on { background: #17130b; border-color: #17130b; color: #fff; box-shadow: 0 6px 16px -8px rgb(23 19 11 / .7); }
  .js-page .js-rail a.is-on::before { display: none; }
  [data-theme='dark'] .js-page .js-rail a.is-on, [data-theme='dark'].js-page .js-rail a.is-on { background: var(--amber); border-color: var(--amber); color: #17130b; }
  [data-theme='dark'] .js-page .js-rail a.is-on .js-i { background: #17130b; color: var(--amber); }
}

/* ---------- Jimbo Market: search box always visible on phones ---------- */
.fm-msearch { display: none; }
@media (max-width: 820px) {
  .fm-msearch { display: flex; align-items: center; gap: .55rem; position: sticky; top: 71px; z-index: 28; margin: .55rem 0 .6rem; padding: 0 .5rem 0 1rem; height: 50px;
    border-radius: 999px; background: var(--js-card, var(--color-surface)); border: 1.5px solid var(--js-line); box-shadow: 0 10px 24px -16px rgb(0 0 0 / .45), 0 0 0 6px var(--color-bg); transition: top .35s var(--ease); }
  body.js-page:has(.header:not(.is-hidden)) .fm-msearch { top: 147px; }
  .fm-msearch:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px rgb(245 166 35 / .28), 0 0 0 6px var(--color-bg); }
  .fm-msearch > .js-i { width: 20px; height: 20px; color: var(--js-mut); flex: none; }
  .fm-msearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: inherit; font-size: 16px; font-weight: 500; color: var(--color-text); -webkit-appearance: none; appearance: none; }
  .fm-msearch input::placeholder { color: var(--js-mut); }
  .fm-msearch input::-webkit-search-cancel-button { display: none; }
  .fm-msearch__x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--color-surface-2); color: var(--color-text); }
  .fm-msearch__x[hidden] { display: none; }
  .fm-msearch__x .js-i { width: 16px; height: 16px; }
}
