/* Equipment (tray sealers): /equipment/ overview and /equipment/{slug}/ pages.
   v3.18. Uses only the tokens from style.css, so light and dark themes both work.
   Product photos have white backgrounds, so every photo area is white (no grey plate around a white photo). */

/* ---------- overview: groups ---------- */
.eq-groups-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 4px; }
.eq-groups-nav .chip { white-space: normal; }
.eq-group { scroll-margin-top: calc(var(--header-h) + 8px); }
.eq-group-head { margin-bottom: 22px; }
.eq-group-head .section-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.eq-group-head > p { margin: 8px 0 0; max-width: 780px; font-size: 16px; }
.eq-cmp-title { margin: 40px 0 0; font-size: 22px; font-weight: 800; }
.eq-machines.eq-machines-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: calc((100% - 40px) / 3 * 2 + 20px); }

/* ---------- overview: machine cards ---------- */
.eq-machines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.eq-machines > li { display: flex; }
.eq-machine { display: flex; flex-direction: column; width: 100%; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; overflow: hidden; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.eq-machine:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--text); }
.eq-machine:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.eq-machine-img { display: block; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--border); overflow: hidden; }
.eq-machine-img img { width: 100%; height: 100%; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .eq-machine-img img { transition: transform .35s var(--ease); }
  .eq-machine:hover .eq-machine-img img { transform: scale(1.03); }
}
.eq-machine-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 22px 22px; }
.eq-machine-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.eq-machine h3 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.eq-machine-short { color: var(--muted); font-size: 16px; line-height: 1.5; }
.eq-machine-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.eq-machine-stats b { color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; }
.eq-machine-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--primary); }
.eq-machine-go .ic { transition: transform .2s var(--ease); }
.eq-machine:hover .eq-machine-go .ic { transform: translateX(3px); }

.eq-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; background: #fff3e0; color: #8a4b00; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
[data-theme="dark"] .eq-badge { background: #3a2a12; color: #ffc27a; }

/* ---------- overview: comparison ---------- */
.eq-cmp-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.eq-cmp-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.eq-cmp { width: 100%; min-width: 720px; table-layout: fixed; border-collapse: collapse; font-size: 15px; }
.eq-cmp th, .eq-cmp td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.eq-cmp thead th { font-size: 16px; font-weight: 800; }
.eq-cmp thead th a { color: var(--text); text-decoration: none; }
.eq-cmp thead th a:hover { color: var(--primary); }
.eq-cmp-2 { min-width: 560px; }
.eq-cmp tbody th, .eq-cmp thead td { width: 22%; }
.eq-cmp tbody th { color: var(--muted); font-weight: 600; font-size: 14px; }
.eq-cmp tr:last-child th, .eq-cmp tr:last-child td { border-bottom: 0; }
.eq-cmp b { font-variant-numeric: tabular-nums; }
.eq-cmp-cards { display: none; list-style: none; margin: 20px 0 0; padding: 0; gap: 12px; }
.eq-cmp-cards > li { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.eq-cmp-cards h4 { margin: 0 0 8px; font-size: 18px; }
.eq-cmp-cards h4 a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.eq-cmp-cards dl { margin: 0; display: grid; gap: 8px; }
.eq-cmp-cards dl > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.eq-cmp-cards dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.eq-cmp-cards dd { margin: 0; font-size: 15px; }
.eq-yes { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 700; }

.eq-faq .faq { max-width: 720px; }

/* ---------- overview: how to choose ---------- */
.eq-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.eq-steps li { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.eq-step-n { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 0 .4em; align-self: flex-start; margin-bottom: 6px; border-radius: 50%; background: var(--primary-50); color: var(--primary); font-weight: 800; }
.eq-steps strong { font-size: 17px; }
.eq-steps .muted { font-size: 15px; line-height: 1.5; }

/* ---------- one sealer: hero ---------- */
.eq-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.eq-hero-media { position: sticky; top: calc(var(--header-h) + 20px); aspect-ratio: 1; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.eq-hero-media img { width: 100%; height: 100%; object-fit: contain; }
.eq-hero-info h1 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; line-height: 1.15; }
.eq-hero-info .eyebrow { margin-bottom: 6px; }
.eq-lead { margin: 10px 0 0; font-size: 18px; line-height: 1.5; color: var(--muted); }
.eq-stats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.eq-stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 66%; }
.eq-stats li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.eq-stats b { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--primary); font-variant-numeric: tabular-nums; }
.eq-stats span { font-size: 14px; color: var(--muted); }
.eq-desc { margin: 20px 0 0; font-size: 16px; line-height: 1.65; }
.eq-features { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-size: 15px; }
.eq-features li { display: flex; align-items: flex-start; gap: 8px; }
.eq-features .ic { flex: none; margin-top: 4px; color: var(--accent-text); }
.eq-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- one sealer: moulds and containers ---------- */
.eq-moulds-section { scroll-margin-top: calc(var(--header-h) + 8px); }
.eq-moulds-head .section-title { display: flex; align-items: center; gap: 12px; }
.eq-moulds-head > p { margin: 8px 0 0; max-width: 760px; font-size: 16px; }
.eq-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.eq-jump-label { font-size: 14px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.eq-jump .chip { font-variant-numeric: tabular-nums; }
.eq-moulds { display: grid; gap: 20px; margin-top: 26px; }
.eq-mould { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); scroll-margin-top: calc(var(--header-h) + 20px); }
.eq-mould:target { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.eq-mould-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.eq-mould-name { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.eq-mould-label { width: 100%; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eq-mould h3 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.eq-mould-tags { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.eq-mould-btn { flex: none; white-space: normal; text-align: center; }
.eq-conts { list-style: none; margin: 0; padding: 20px 22px 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.eq-conts > li { display: flex; }
.eq-cont { display: flex; flex-direction: column; width: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
a.eq-cont:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); color: var(--text); }
a.eq-cont:hover b { color: var(--primary); }
a.eq-cont:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.eq-cont-img { display: grid; place-items: center; aspect-ratio: 1; background: #fff; color: var(--plate-muted); }
.eq-cont-img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.eq-cont-img .ic { width: 40px; height: 40px; opacity: .55; }
.eq-cont-body { min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 14px; border-top: 1px solid var(--border); line-height: 1.35; }
.eq-cont-body b { font-size: 16px; font-variant-numeric: tabular-nums; }
.eq-cont-name { font-size: 15px; }
.eq-cont-meta { font-size: 13px; color: var(--muted); }
.eq-cont.is-off { border-style: dashed; }
.eq-cont.is-off .eq-cont-img { background: var(--surface-2); }

/* ---------- can seamer: can sizes and specs ---------- */
.eq-cans { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.eq-can { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.eq-can-img { display: flex; align-items: flex-end; justify-content: center; padding: 18px 12px 10px; background: #fff; border-bottom: 1px solid var(--border); }
.eq-can-svg { width: auto; height: 190px; }
.eq-can-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px 18px; }
.eq-can-body b { font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.eq-can-body .muted { font-size: 15px; }
.eq-can-btn { margin-top: 10px; white-space: normal; }
.eq-can-note { margin: 12px 0 0; font-size: 14px; }
.eq-specs { margin: 20px 0 0; max-width: 860px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.eq-specs > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.eq-specs > div:last-child { border-bottom: 0; }
.eq-specs dt { color: var(--muted); font-weight: 600; font-size: 15px; }
.eq-specs dd { margin: 0; font-size: 16px; }
.eq-specs-note { margin: 12px 0 0; max-width: 860px; font-size: 14px; }

/* ---------- one machine: other machines ---------- */
.eq-other-kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.eq-other { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; margin-top: 18px; }
.eq-other-card { display: flex; flex-wrap: wrap; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; overflow: hidden; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.eq-other-card:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--text); }
.eq-other-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.eq-other-img { flex: 0 0 150px; min-height: 150px; background: #fff; border-right: 1px solid var(--border); }
.eq-other-img img { width: 100%; height: 100%; object-fit: contain; }
.eq-other-body { flex: 1 1 12rem; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; }
.eq-other-body strong { font-size: 18px; }
.eq-other-body .muted { font-size: 14px; line-height: 1.45; }
.eq-other-body .link-arrow { margin-top: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .eq-machines { gap: 14px; }
  .eq-machine-body { padding: 16px 18px 18px; }
  .eq-machine h3 { font-size: 21px; }
  .eq-hero { gap: 32px; }
  .eq-features { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .eq-machines { grid-template-columns: 1fr; gap: 12px; }
  .eq-machine { flex-direction: row; flex-wrap: wrap; }
  .eq-machine-img { flex: 0 0 132px; min-height: 132px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--border); }
  .eq-machine-body { flex: 1 1 12rem; padding: 14px 16px; gap: 4px; }
  .eq-machine h3 { font-size: 19px; }
  .eq-machine-short { font-size: 15px; }
  .eq-machine-stats { font-size: 14px; gap: 14px; }
  .eq-machine-stats b { font-size: 16px; }
  .eq-machine-go { padding-top: 6px; }
  .eq-steps { grid-template-columns: 1fr; }
  .eq-hero { grid-template-columns: 1fr; gap: 22px; }
  .eq-hero-media { position: static; max-width: 440px; width: 100%; margin: 0 auto; }
  .eq-machines.eq-machines-2 { grid-template-columns: 1fr; max-width: none; }
  .eq-cans { grid-template-columns: 1fr; gap: 12px; }
  .eq-can { flex-direction: row; flex-wrap: wrap; }
  .eq-can-img { flex: 0 0 112px; padding: 10px; border-bottom: 0; border-right: 1px solid var(--border); }
  .eq-can-svg { height: 130px; }
  .eq-can-body { flex: 1 1 12rem; }
  .eq-can-body b { font-size: 24px; }
  .eq-cmp-wrap { display: none; }
  .eq-cmp-cards { display: grid; }
}
@media (max-width: 640px) {
  .eq-machine-img { flex-basis: 108px; min-height: 108px; }
  .eq-kicker-text { display: none; }
  .eq-stats li { padding: 10px 12px; }
  .eq-stats b { font-size: 19px; white-space: nowrap; }
  .eq-stats span { font-size: 13px; }
  .eq-hero-actions .btn { flex: 1 1 100%; white-space: normal; }
  .eq-stats-2 { max-width: none; }
  .eq-cta .cta-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .eq-cta .cta-actions .btn { width: 100%; white-space: normal; }
  .eq-mould-head { flex-direction: column; align-items: stretch; padding: 16px; }
  .eq-mould h3 { font-size: 24px; }
  .eq-mould-btn { width: 100%; min-height: 46px; }
  .eq-conts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 16px 16px; }
  .eq-cont-body { padding: 8px 10px 10px; }
  .eq-cont-body b { font-size: 15px; }
  .eq-cont-name { font-size: 15px; }
  .eq-other-img { flex-basis: 112px; min-height: 112px; }
  .eq-specs > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; }
  .eq-cmp-title { margin-top: 28px; font-size: 20px; }
}
