/* Site search dropdown (site-search.js). Uses the ridge.css tokens with fallbacks. Each result type has its own
   colour so people can see at a glance whether a suggestion is hire, a repair, a bike for sale or a shop item. */
.ss-pop{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:60;max-height:min(70vh,520px);overflow:auto;overscroll-behavior:contain;
  background:#fff;border:1px solid var(--line,#E2E4DF);border-radius:var(--radius-lg,24px);box-shadow:var(--shadow-2,0 18px 48px rgba(18,20,23,.14));
  padding:8px;text-align:left;animation:ss-in var(--t-med,.26s) var(--ease,ease)}
@keyframes ss-in{from{opacity:0;transform:translateY(-6px) scale(.99)}to{opacity:1;transform:none}}
.ss-h{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--mute,#5B626B);padding:10px 12px 6px}
.ss-o{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:var(--radius-sm,12px);text-decoration:none;color:var(--ink,#121417);
  transition:background var(--t-fast,.15s) var(--ease,ease),transform var(--t-fast,.15s) var(--ease,ease);-webkit-tap-highlight-color:transparent}
.ss-o:active{transform:scale(.98)}
.ss-i{flex:none;width:38px;height:38px;border-radius:var(--radius-sm,12px);display:grid;place-items:center}
.ss-pop .ss-i svg{width:21px;height:21px;color:inherit} /* beats the host form's own svg rule (.bike-search svg) */
/* Type colours: the ridge.css brand tokens (Nov 2026), so results match the homepage tiles. Solid hue chip, white icon,
   soft tint behind the selected row and the "Try" chips. Fallbacks are the same values, for pages without ridge.css. */
.ss-hire{--ss-c:var(--c-green,#3E9A1F);--ss-s:var(--c-green-soft,#E9F5E2)}
.ss-repair{--ss-c:var(--c-orange,#D46F0B);--ss-s:var(--c-orange-soft,#FDF0E1)}
.ss-bike{--ss-c:var(--c-blue,#1786C0);--ss-s:var(--c-blue-soft,#E3F2FA)}
.ss-shop,.ss-guide{--ss-c:var(--c-purple,#7B2FA8);--ss-s:var(--c-purple-soft,#F2E8F8)}
.ss-page{--ss-c:var(--c-teal,#00939C);--ss-s:var(--c-teal-soft,#DFF4F5)}
.ss-go{--ss-c:var(--ink,#121417);--ss-s:#F1F3EE}
/* A parts guide can carry its own colour (guides.json "colour"), matching its /parts page */
.ss-col-orange{--ss-c:var(--c-orange,#D46F0B);--ss-s:var(--c-orange-soft,#FDF0E1)}.ss-col-blue{--ss-c:var(--c-blue,#1786C0);--ss-s:var(--c-blue-soft,#E3F2FA)}
.ss-col-green{--ss-c:var(--c-green,#3E9A1F);--ss-s:var(--c-green-soft,#E9F5E2)}.ss-col-purple{--ss-c:var(--c-purple,#7B2FA8);--ss-s:var(--c-purple-soft,#F2E8F8)}
.ss-col-red{--ss-c:var(--c-red,#D9362B);--ss-s:var(--c-red-soft,#FCE9E7)}.ss-col-teal{--ss-c:var(--c-teal,#00939C);--ss-s:var(--c-teal-soft,#DFF4F5)}
.ss-i{background:var(--ss-c);color:#fff;box-shadow:0 4px 10px -4px var(--ss-c)}
/* the item's own photo instead of the icon (14 Nov 2026): white tile, thin line, no coloured glow */
.ss-i.ss-img{background:#fff;box-shadow:none;border:1px solid var(--line,#D8DBD5);overflow:hidden}
.ss-i.ss-img img{width:100%;height:100%;object-fit:cover;display:block}
.ss-o[aria-selected="true"]{background:var(--ss-s)}
@media(hover:hover){.ss-o:hover{background:var(--ss-s)}}
.ss-x{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.ss-x b{font-weight:650;font-size:15px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ss-x b mark{background:none;color:inherit;font-weight:800;text-decoration:underline;text-decoration-color:var(--sun,#FFC400);text-decoration-thickness:3px;text-underline-offset:2px}
.ss-x small{font-size:13px;color:var(--mute,#5B626B);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ss-p{flex:none;font-weight:700;font-size:14px;font-variant-numeric:tabular-nums}
.ss-chips{display:flex;flex-wrap:wrap;gap:8px;padding:2px 10px 10px}
.ss-chip{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;background:#F1F3EE;color:var(--ink,#121417);font-weight:600;font-size:14px;text-decoration:none;
  transition:background var(--t-fast,.15s) var(--ease,ease),transform var(--t-fast,.15s) var(--ease,ease)}
.ss-chip[class*="ss-"]{background:var(--ss-s,#F1F3EE)}
@media(hover:hover){.ss-chip:hover{color:var(--ss-c,var(--ink,#121417));box-shadow:inset 0 0 0 1.5px var(--ss-c,#E6E9E2)}}
.ss-chip:active{transform:scale(.96)}
.ss-chip[aria-selected="true"]{color:var(--ss-c,var(--ink,#121417));box-shadow:inset 0 0 0 1.5px var(--ss-c,#E6E9E2)} /* arrow keys */
/* Phones: the homepage scrolls the box up under the header on focus and sets --vvh to the visible height above the
   keyboard, so the list ends just above the keyboard instead of hiding behind it. */
@media(max-width:600px){.ss-pop{border-radius:var(--radius-md,16px);padding:6px;max-height:max(200px,calc(var(--vvh,100vh) - var(--header-h,71px) - 100px))}.ss-i{width:34px;height:34px;border-radius:10px}.ss-x b{font-size:14.5px}}
/* Header search (every page; site-search.js inserts it right of the logo). It fills the space between the logo and
   the menu / Book a repair button, up to 340px. Under 112px it is just the magnifier (.ss-mini). While focused in a
   narrow header (.ss-open) the menu and button step aside and it takes the row. On the homepage (.ss-wait) it is
   invisible but keeps its space, so nothing moves when it slides in. */
.top.ss-has .wrap{gap:clamp(10px,2vw,24px)}
.ss-dock{flex:1 1 0;min-width:44px;max-width:340px;display:flex;align-items:center;gap:4px;position:relative;
  transition:opacity var(--t-med,.26s) var(--ease,ease),transform var(--t-med,.26s) var(--ease,ease),visibility var(--t-med,.26s)}
.ss-dock label{position:relative;display:flex;align-items:center;flex:1;min-width:0}
/* the magnifier sits in flow and overlaps the input's left padding (no absolute positioning: on phones the label
   is left static so the dropdown can span the header) */
.ss-dock label>svg{flex:none;position:relative;z-index:1;width:18px;height:18px;margin:0 -31px 0 13px;color:var(--mute,#555C66);pointer-events:none}
.ss-dock input{display:block;flex:1;min-width:0;width:auto;height:42px;margin:0;padding:0 16px 0 39px;border:1.5px solid var(--line,#D8DBD5);border-radius:999px;background:#fff;
  font:inherit;font-size:16px;color:var(--ink,#121417);-webkit-appearance:none;appearance:none;transition:border-color var(--t-fast,.15s),box-shadow var(--t-fast,.15s)}
.ss-dock input::placeholder{color:var(--mute,#555C66);opacity:1}
.ss-dock input::-webkit-search-cancel-button{display:none;-webkit-appearance:none}
@media(hover:hover){.ss-dock input:hover{border-color:#B9BEB4}}
.ss-dock input:focus{outline:0;border-color:var(--ink,#121417);box-shadow:0 0 0 4px rgba(18,20,23,.06)}
.ss-dock input:focus-visible{outline:3px solid var(--sun,#FFC400);outline-offset:2px} /* the site's keyboard focus ring (ridge.css) */
.ss-dock.ss-mini input{padding:0;cursor:pointer}
.ss-dock.ss-mini label>svg{margin:0 calc(-50% - 9px) 0 calc(50% - 9px)} /* magnifier centred in the pill */
.ss-dock.ss-mini input::placeholder{color:transparent}
.ss-close{display:none;flex:none;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:none;color:var(--ink,#121417);cursor:pointer;place-items:center}
.ss-close svg{width:20px;height:20px}
@media(hover:hover){.ss-close:hover{background:#ECEEE9}}
.top.ss-open .nav,.top.ss-open .btn{display:none}
.top.ss-open .ss-dock{max-width:640px}
.top.ss-open .ss-close{display:grid}
.top.ss-wait .ss-dock:not(:focus-within){opacity:0;visibility:hidden;transform:translateY(14px) scale(.94);pointer-events:none}
.ss-dock .ss-pop{right:auto;width:max(100%,440px);max-width:calc(100vw - 24px)}
/* Phones: the dropdown spans the screen under the header (the header is its positioning box) and ends above the keyboard. */
@media(max-width:600px){
  .ss-dock,.ss-dock label{position:static}
  .ss-dock .ss-pop{left:10px;right:10px;width:auto;max-width:none;max-height:max(200px,calc(var(--vvh,100vh) - var(--header-h,71px) - 18px))}
}
@media(prefers-reduced-motion:reduce){.ss-pop{animation:none}.ss-dock{transition:none}}
