/* Home medical equipment catalog (v2) — loaded after styles.css on equipment.html only. */
.eq-hero { padding: 40px 0 18px; }
.eq-hero .lead { max-width: 860px; }

/* sticky filter bar: search, "good for", count, category chips */
.eq-bar { position: sticky; top: 72px; z-index: 40; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line); padding: 10px 0 8px; }
.eq-bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.eq-bar .eq-search { flex: 1 1 320px; max-width: 520px; }
.eq-bar .eq-search input { margin: 0; padding: 10px 16px; font-size: .98rem; }
.eq-sit { font: inherit; font-size: .9rem; padding: 9px 34px 9px 14px; border-radius: 999px; border: 1.5px solid #c9d3db; background: #fff; color: var(--navy);
  max-width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.eq-sit:focus, .eq-bar .eq-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,124,122,.16); }
.eq-count { margin: 0; font-size: .86rem; color: var(--muted); white-space: nowrap; }
.eq-clear { font: inherit; font-size: .84rem; font-weight: 600; border: 0; background: none; color: var(--teal-2); text-decoration: underline; cursor: pointer; padding: 4px 2px; }
.eq-bar .eq-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; margin-top: 8px; padding-bottom: 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 24px), transparent 100%); padding-inline: 12px 24px; margin-inline: -12px; }
.eq-bar .eq-chips::-webkit-scrollbar { display: none; }
.eq-chipwrap { position: relative; }
.eq-arr { position: absolute; top: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--navy); font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(18,50,79,.14); display: grid; place-items: center; padding: 0 0 3px; }
.eq-arr[hidden] { display: none; }
.eq-arr.prev { inset-inline-start: -6px; }
.eq-arr.next { inset-inline-end: -6px; }
[dir="rtl"] .eq-arr { transform: scaleX(-1); }
.eq-bar .chip-btn { white-space: nowrap; flex: 0 0 auto; padding: 6px 12px; font-size: .85rem; }
.chip-btn .n { display: inline-block; min-width: 1.5em; padding: 0 5px; margin-inline-start: 3px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-2); font-size: .76rem; line-height: 1.5; text-align: center; }
.chip-btn.on .n { background: rgba(255,255,255,.22); color: #fff; }
.chip-btn.zero { opacity: .5; }

/* category sections */
.eq-notice { margin: 22px 0 4px; }
.eq-cat { padding: 34px 0 6px; scroll-margin-top: 190px; }
.eq-cat-head h2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.eq-cat-n { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--teal-2); background: var(--teal-soft); border-radius: 999px; padding: 1px 10px; }
.eq-guide { background: #f3f8f8; border: 1px solid #d6e9e7; border-radius: var(--radius); padding: 14px 18px 6px; margin: 0 0 20px; max-width: 980px; }
.eq-guide h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-2); margin: 0 0 6px; }
.eq-guide ul { margin: 0 0 8px; padding-inline-start: 20px; }
.eq-guide li { margin: 0 0 6px; font-size: .95rem; color: #2e3b47; }
.filtering .eq-guide, .filtering .eq-srcs { display: none; }
.eq-srcs { font-size: .8rem; color: var(--muted); margin: 16px 0 0; line-height: 1.55; }
.eq-srcs a { color: var(--teal-2); }

/* cards */
.eq-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.eq-card[hidden], .eq-cat[hidden] { display: none; }
.eq-media { aspect-ratio: 3 / 2; }
.eq-body { padding: 14px 16px 16px; }
.eq-body h3 { font-size: 1.12rem; margin-bottom: 4px; }
.eq-body p.eq-what { color: #34414d; font-size: .94rem; margin: 0 0 10px; }
.eq-facts { margin: 0 0 10px; display: grid; gap: 7px; }
.eq-facts div { display: grid; gap: 1px; }
.eq-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-2); }
.eq-facts dd { margin: 0; font-size: .9rem; color: #3c4955; line-height: 1.5; }
.eq-facts .eq-fit dd { background: #eef5fb; border-radius: 8px; padding: 5px 9px; color: #28415a; }
.eq-body .eq-safety { margin: 0 0 8px; font-size: .86rem !important; line-height: 1.5; }
.eq-body .eq-ask { font-size: .84rem; color: #2e4a60; margin: 0 0 8px; line-height: 1.5; }
.eq-body .eq-cov { font-size: .78rem; color: var(--muted); margin: 0 0 8px; line-height: 1.45; border-top: 1px dashed var(--line); padding-top: 7px; }
.eq-vid { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.eq-vid .eq-watch { margin: 0; }
.eq-vid .eq-src { font-size: .74rem; color: #8a96a2; }
.eq-covnote { font-size: .82rem; color: var(--muted); margin: 30px 0 10px; max-width: 900px; line-height: 1.55; }

/* header nav: v1 forced .eq-nav to display:flex, which left the mobile dropdown permanently open over the page.
   On this page keep the links inline on tablets and hide them on phones (the logo links home; "Book a visit" is in the page). */
@media (max-width: 1080px) {
  .eq-nav { position: static; display: flex; flex-direction: row; padding: 0; border: 0; box-shadow: none; background: none; margin-inline-start: auto; }
  .eq-nav a { padding: 6px 8px; font-size: .88rem; }
}
@media (max-width: 760px) { .eq-nav { display: none; } }
@media (max-width: 640px) {
  .eq-hero { padding: 26px 0 10px; }
  .eq-hero h1 { font-size: 1.75rem; }
  .eq-hero .lead { font-size: 1rem; }
  .eq-bar { padding: 8px 0 6px; }
  .eq-bar-row { flex-wrap: nowrap; gap: 6px; }
  .eq-bar .eq-search { flex: 1 1 58%; min-width: 0; max-width: none; }
  .eq-bar .eq-search input { padding: 8px 12px; font-size: .92rem; }
  .eq-sit { flex: 0 1 42%; min-width: 0; font-size: .8rem; padding: 8px 26px 8px 10px; background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; }
  [dir="rtl"] .eq-sit { padding: 8px 10px 8px 26px; background-position: 9px 55%, 14px 55%; }
  .eq-count { display: none; }
  .eq-clear { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #c9d3db; background: #fff; font-size: 0; text-decoration: none; padding: 0; position: relative; }
  .eq-clear::before { content: "×"; font-size: 1.25rem; line-height: 1; color: var(--navy); position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 2px; }
  .eq-arr { display: none !important; }
  .eq-grid { grid-template-columns: 1fr; }
  .eq-cat { scroll-margin-top: 230px; }
}

/* right-to-left (Yiddish) */
[dir="rtl"] .eq-sit { padding: 9px 14px 9px 34px; background-position: 13px 55%, 18px 55%; }
[dir="rtl"] .eq-bar .eq-chips { -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 14px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(270deg, transparent 0, #000 14px, #000 calc(100% - 24px), transparent 100%); }

/* ---------- phone fit (2026-09-27) ---------- */
.eq-nav a { white-space: nowrap; }
@media (max-width: 900px) { .eq-nav { display: none; } }   /* "Home" and a second "Book a visit" do not fit beside the header's own Book button */
@media (max-width: 640px) {
  /* the two-row phone header scrolls away; the filter bar is what stays on screen */
  .site-header { position: relative; }
  .eq-bar { top: 0; padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
  .eq-cat { scroll-margin-top: 170px; }
}
@media (max-width: 900px), (pointer: coarse) {
  /* 16 px fields: iOS Safari zooms the page into anything smaller */
  .eq-bar .eq-search input, .eq-sit { font-size: 16px; min-height: 44px; }
  .eq-arr { width: 44px; height: 44px; }                 /* category scroll arrows: 44 px touch targets */
}
@media (max-width: 640px) { .eq-clear { flex: 0 0 44px; width: 44px; height: 44px; } }
@media (max-width: 480px) {
  .eq-bar-row { flex-wrap: wrap; }
  .eq-bar .eq-search { flex: 1 1 100%; }
  .eq-sit { flex: 1 1 0; }
}
.eq-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
@media (max-width: 640px) { .eq-grid { grid-template-columns: minmax(0, 1fr); } }
