:root {
  --bg: #fbfaf8; --text: #111; --muted: #595959; --faint: #6b6b6b; --line: #ddd;
  --accent: #f5b301;
  --steel: #69727d; --glass: #bfe3f0; --bg2: #fbfaf8;   /* these three colour the drawn machine illustrations */
  --font: "Segoe UI", "Arial Hebrew", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: rgba(245, 179, 1, .25); }
.page { max-width: 960px; margin: 0 auto; padding: 28px 24px 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* header */
.hd { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
.biz { font-size: 17px; font-weight: 600; line-height: 1.3; }

/* headings */
.crumb { display: inline-flex; align-items: center; min-height: 44px; margin-top: 36px; font-size: 14px; color: var(--muted); text-decoration: none; }
.crumb:hover { color: var(--text); }
h1 { font-weight: 300; font-size: 44px; font-size: clamp(36px, 7vw, 64px); line-height: 1.05; margin: 36px 0 8px; }
h1 b { font-weight: 700; }
.crumb + h1 { margin-top: 14px; }
.rule { width: 48px; height: 2px; background: var(--text); margin: 18px 0 8px; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 52ch; }

/* category and machine lists */
.list { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 44px 1fr 200px; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; cursor: pointer; }
.row .n { font-size: 13px; color: var(--faint); }
.row .t { font-size: clamp(20px, 3.4vw, 28px); font-weight: 300; transition: transform .2s; }
.row .t small { font-size: 13px; color: var(--faint); margin-inline-start: 10px; font-weight: 400; }
.row svg, .row img { width: 200px; height: auto; }
.row img { aspect-ratio: 5 / 3; object-fit: cover; }
.row svg { filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.row:hover .t, .row:focus-visible .t { transform: translateX(-6px); }
.row:hover svg, .row:focus-visible svg { filter: none; opacity: 1; }
.row:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* tools: square cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 30px 22px; margin-top: 4px; }
.card { display: block; text-decoration: none; color: inherit; }
.card .sq { position: relative; aspect-ratio: 1; background: #f1efea; display: grid; place-items: center; overflow: hidden; }
.card .sq img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.card .sq svg { width: 80%; height: auto; }
.card:hover .sq img, .card:focus-visible .sq img { transform: scale(1.04); }
.card:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.cap { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
.cap b { font-size: 17px; font-weight: 600; line-height: 1.3; }
.cap span { font-size: 14px; color: var(--muted); }
.cap i { font-style: normal; color: var(--faint); margin-inline-end: 5px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 28px 0 0; font-size: 14px; }
.tags a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); }
.tags a:hover, .tags a.on { color: var(--text); border-bottom: 1px solid var(--text); }

/* machine page */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 8px; align-items: start; }
.detail .pic { background: #f1efea; display: grid; place-items: center; }
.detail .pic img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.detail .pic svg { width: min(100%, 380px); padding: 28px 16px; }
.detail h1 { margin: 14px 0 8px; font-size: 34px; font-size: clamp(30px, 5vw, 44px); }
.thumbs { direction: ltr; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }   /* the extra photos */
.thumbs button { padding: 0; border: 1px solid var(--line); background: #f1efea; cursor: pointer; aspect-ratio: 1; overflow: hidden; opacity: .85; }
.thumbs button:hover, .thumbs button:focus-visible { opacity: 1; border-color: var(--text); outline: none; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.price-big { font-size: clamp(28px, 6vw, 36px); font-weight: 600; margin: 4px 0 0; }
.price-big small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.price-big.ask { font-size: 20px; font-weight: 400; color: var(--muted); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.key { padding: 14px 0; }
.key b { display: block; font-size: 18px; font-weight: 500; }
.key span { font-size: 13px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; margin-bottom: 26px; font-size: 15px; }
td { padding: 9px 0; border-bottom: 1px solid #eee; }
td:first-child { color: var(--muted); }
td:last-child { text-align: end; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { padding: 12px 24px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid var(--text); }
.btn.primary { background: var(--text); color: #fff; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #111; }

.foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 22px 0 30px; color: var(--muted); font-size: 14px; }
.foot p { margin: 4px 0; }
.fine { font-size: 13px; color: var(--faint); }

/* touch screens have no hover: always show the illustrations in colour */
@media (hover: none) {
  .row svg { filter: none; opacity: 1; }
  .row:hover .t { transform: none; }
}

/* phones */
@media (max-width: 720px) {
  .page { padding: 20px 16px 0; }
  .crumb { margin-top: 22px; padding: 10px 0; }
  h1 { margin-top: 22px; }
  .row { grid-template-columns: 30px 1fr 96px; padding: 16px 0; gap: 10px; }
  .row svg, .row img { width: 96px; }
  .row .t small { display: block; margin: 3px 0 0; }
  .grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .cap b { font-size: 15px; }
  .cap span { font-size: 13px; }
  .tags { gap: 0 18px; margin-top: 20px; }
  .tags a { padding: 10px 0; }
  .detail { grid-template-columns: 1fr; gap: 20px; }
  .key b { font-size: 15px; }
  .cta .btn { flex: 1 1 100%; text-align: center; padding: 14px 20px; }
  table { font-size: 14px; }
  .foot { margin-top: 40px; }
}
@media (max-width: 400px) {
  .key b { font-size: 14px; }
  .key { padding-inline-end: 6px; }
}

@media print { .crumb, .tags, .cta { display: none; } }

/* "new equipment" label */
.newtag { background: var(--accent); color: #111; font-size: 13px; font-weight: 700; padding: 3px 12px; }
.card .sq .newtag { position: absolute; top: 10px; inset-inline-start: 10px; }
.detail .newtag { display: inline-block; margin-top: 6px; }

.mid { font-size: 13px; color: var(--faint); margin-top: 10px; }
.detail .newtag + .mid { margin-top: 8px; }

/* ---------- accessibility ---------- */
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.skip { position: absolute; inset-inline-start: 12px; top: -70px; z-index: 10; background: #111; color: #fff; padding: 12px 18px; text-decoration: none; font-size: 15px; }
.skip:focus { top: 12px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
main:focus, h1:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover .sq img, .card:focus-visible .sq img, .row:hover .t, .row:focus-visible .t { transform: none; }
}

/* the accessibility statement page */
.doc h2 { font-size: 22px; font-weight: 700; margin: 32px 0 8px; }
.doc p, .doc li { max-width: 62ch; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 6px 0; }

/* the model sits on its own line under the type and brand */
.cap .model { display: block; font-size: 15px; color: var(--text); font-weight: 500; }
.detail h1 .model-h { display: block; font-weight: 300; }
@media (max-width: 720px) { .cap .model { font-size: 14px; } }

/* room between the price note and whatever comes next (the figures, the specs table or the call button) */
.price-big { margin-bottom: 24px; }

/* gallery: the shown photo is outlined; the big picture can be swiped; arrow buttons sit on it */
.thumbs button { position: relative; }
.thumbs button[aria-pressed="true"] { opacity: 1; }
.thumbs button[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--text); pointer-events: none; }
.detail .pic { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.detail .pic img { -webkit-user-drag: none; }
.detail .pic img.fade { animation: photofade .22s ease; }
@keyframes photofade { from { opacity: .25; } to { opacity: 1; } }
.nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0 0 4px; background: rgba(255, 255, 255, .9); color: #111; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 1px 5px rgba(0, 0, 0, .35); display: grid; place-items: center; }
.nav:hover { background: var(--accent); }
.nav.prev { left: 10px; }
.nav.next { right: 10px; }

/* the logo sits on the left of the header (the page runs right to left) and links to the main page */
.brand img { display: block; height: 80px; width: auto; }
@media (max-width: 720px) { .brand img { height: 66px; } }

/* Latin letters/numbers inside a line (model names such as 80CR-9A) are wrapped in a span; keep them the same size and colour as the text around them */
.cap span[lang], .key span[lang] { color: inherit; }
/* On iPhones the Hebrew font (Arial Hebrew) draws digits as small old-style numerals, so model names such as HX27Az looked tiny; Latin letters and digits use the system font with normal digits, a touch larger than the Hebrew text */
span[lang="en"] { font-size: 1.08em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-variant-numeric: lining-nums; }
