#dialog.vm-dialog {
  --vm-ink: var(--ink, #202526);
  --vm-muted: var(--muted, #5d6468);
  --vm-line: #c7c8c3;
  --vm-gold: var(--gold, #ffa33b);
  width: min(572px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 0;
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--vm-ink);
  background: #fff;
  border: 0;
  border-top: 3px solid var(--vm-gold);
  border-radius: 4px;
  box-shadow: 0 24px 90px #06132245;
  font-family: inherit;
  text-align: left;
}

#dialog::backdrop { background: rgb(23 25 24 / 64%); }
html:has(#dialog[open]) { overflow: hidden; }
#dialog *, #dialog *::before, #dialog *::after { box-sizing: border-box; }
#dialog [hidden] { display: none; }
.vm-dialog-body { position: relative; padding: 38px; }
#dialog h2 {
  margin: 0 38px 25px 0;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -.045em;
  font-weight: 700;
  color: var(--vm-ink);
}
#dialog h2:focus { outline: 0; }
#dialog .vm-dismiss {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vm-muted);
  border-radius: 3px;
  cursor: pointer;
}
#dialog .vm-dismiss:hover { background: #f0f3f4; color: var(--vm-ink); }
#dialog :is(button, input, textarea, a):focus-visible { outline: 2px solid #295d96; outline-offset: 3px; }
#dialog .btn { min-height: 44px; }
.vm-product {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -6px 0 22px;
  padding: 11px 14px;
  background: var(--wash, #f4f3ef);
  border-left: 3px solid var(--vm-gold);
  color: var(--vm-ink);
  font-size: 14px;
  line-height: 1.45;
}
.vm-product svg, .vm-result svg { flex: none; }
.vm-product span { overflow-wrap: anywhere; }
.vm-form { display: grid; gap: 18px; }
.vm-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vm-form label { display: block; color: var(--vm-ink); font-size: 14px; font-weight: 600; }
.vm-form :is(input:not([type="checkbox"]), textarea) {
  display: block;
  width: 100%;
  margin: 7px 0 0;
  padding: 12px 13px;
  border: 1px solid var(--vm-line);
  border-radius: 3px;
  outline: 0;
  background: #fff;
  color: var(--vm-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.42;
}
.vm-form textarea { min-height: 88px; resize: vertical; }
.vm-form .vm-optional { margin-left: 3px; color: var(--vm-muted); font-size: 12px; font-weight: 400; }
#dialog .vm-check { display: flex; align-items: flex-start; gap: 10px; color: var(--vm-muted); font-size: 13px; font-weight: 400; line-height: 1.5; cursor: pointer; }
#dialog .vm-check input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #243642; cursor: pointer; }
#dialog .vm-error { margin: 0; color: #963424; font-size: 14px; line-height: 1.5; }
.vm-submit, .vm-done { justify-self: start; }
.vm-submit:disabled { opacity: .65; cursor: progress; }
.vm-success-symbol { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 19px; border-radius: 50%; color: #584500; background: #fff2c3; }
.vm-confirm { color: var(--vm-muted); margin: -8px 0 24px; line-height: 1.6; }
.vm-confirm strong { display: inline-block; color: var(--vm-ink); }
.vm-progress { margin: 0 40px 17px 0; color: var(--vm-muted); font-size: 13px; font-weight: 600; }
.vm-progress div { display: flex; gap: 4px; width: 90px; margin-top: 7px; }
.vm-progress i { flex: 1; height: 3px; background: #dce0e3; }
.vm-progress i.on { background: var(--vm-gold); }
.vm-picker fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.vm-power-options, .vm-type-options, .vm-mode-options { display: grid; gap: 8px; }
.vm-power-options { grid-template-columns: repeat(3, 1fr); }
.vm-type-options, .vm-mode-options { grid-template-columns: repeat(2, 1fr); }
.vm-power-options .vm-choice:last-child, .vm-type-options .vm-choice:last-child { grid-column: 1 / -1; }
.vm-choice { position: relative; min-width: 0; cursor: pointer; }
.vm-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.vm-choice > span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 44px;
  height: 100%;
  padding: 10px 8px;
  gap: 6px;
  border: 1px solid var(--vm-line);
  border-radius: 3px;
  background: #fff;
  color: var(--vm-ink);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  text-align: center;
}
.vm-choice:hover > span { border-color: #78858f; }
.vm-choice input:checked + span { border-color: #976014; background: #fff4df; box-shadow: inset 0 0 0 1px #976014; }
.vm-choice input:focus-visible + span { outline: 2px solid #295d96; outline-offset: 2px; }
.vm-choice img { display: block; width: 82px; height: 48px; object-fit: contain; mix-blend-mode: multiply; }
.vm-choice input:disabled + span { background: #f4f5f5; color: #57636a; border-color: #e1e5e7; cursor: not-allowed; }
.vm-choice input:disabled + span img { opacity: .48; }
.vm-choice small { font-size: 11px; font-weight: 400; }
.vm-avr { margin-top: 18px; }
.vm-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 24px; }
.vm-actions .vm-back { margin-right: auto; }
.vm-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--vm-line);
  border-radius: 3px;
  color: var(--vm-muted);
}
.vm-search-field:focus-within { outline: 2px solid #295d96; outline-offset: 1px; }
#dialog .vm-search-field input {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--vm-ink);
}
.vm-search-caption { margin: 19px 0 8px; font-size: 12px; color: var(--vm-muted); }
.vm-select { display: grid; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--vm-ink); }
.vm-select select { display: block; width: 100%; min-height: 44px; max-width: 100%; padding: 8px 12px; background: #fff; border: 1px solid var(--vm-line); border-radius: 3px; font: inherit; font-weight: 400; color: inherit; }
.vm-result-group + .vm-result-group { margin-top: 13px; }
.vm-result-group h3 { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 7px; color: var(--vm-muted); background: #f2f4f5; font-size: 13px; line-height: 1.45; font-weight: 600; }
.vm-result-group h3 span { font-variant-numeric: tabular-nums; }
.vm-show-more { padding: 10px 7px; min-height: 44px; background: transparent; border: 0; color: var(--vm-ink); font: inherit; font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vm-catalog-state { color: var(--vm-muted); }
.vm-results { max-height: min(45dvh, 350px); overflow-y: auto; overscroll-behavior: contain; }
.vm-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 6px; border-bottom: 1px solid #e2e5e8; color: var(--vm-ink); text-decoration: none; }
.vm-result:focus-visible { outline-offset: -2px !important; }
.vm-result:hover { background: #f4f6f7; }
.vm-result > span { min-width: 0; }
.vm-result strong, .vm-result small { overflow-wrap: anywhere; }
.vm-result strong, .vm-result small { display: block; }
.vm-result strong { font-size: 15px; font-weight: 600; }
.vm-result small { margin-top: 3px; color: var(--vm-muted); font-size: 13px; }
.vm-no-match { padding: 8px 0; }
.vm-no-match p { margin: 0 0 15px; font-size: 14px; line-height: 1.5; }

/* Catalog pages share the shell's typography and colour palette. */
.subpage .crumbs { flex-wrap: wrap; row-gap: 5px; line-height: 1.45; }
.subpage .crumbs a:hover, .equipment-category a:hover { text-decoration: underline; text-underline-offset: .2em; }
.subpage .catalog-heading { margin: 0 0 20px; max-width: 990px; }
.subpage .catalog-heading h1, .equipment-intro h1 {
  font-family: "Roboto Display", Inter, sans-serif;
  font-stretch: 75%;
  letter-spacing: -.03em;
}
.subpage .catalog-heading h1 { font-size: clamp(34px, 4.3vw, 60px); line-height: 1.05; }
.subpage .catalog-heading .sub-lead { max-width: 86ch; margin: 12px 0 0; font-size: 15px; line-height: 1.55; }
.catalog-related { width: fit-content; max-width: 100%; margin: 0 0 21px; font-size: 14px; }
.catalog-related summary { width: fit-content; cursor: pointer; font-weight: 650; line-height: 1.5; }
.catalog-related summary::marker { color: #80501b; }
.catalog-related details, .catalog-related .power-links { margin: 12px 0 0 14px; }
.subpage .section-tabs { gap: 6px; }
.catalog-section-select { display: none; }
.subpage .section-tabs [data-picker] { margin-left: auto; }
.subpage .filters { background: var(--wash); border-color: var(--line); }
.subpage .catalog-table { width: 100%; border-collapse: collapse; }
.catalog-table thead { background: #efefeb; }
.catalog-table thead th { border-top: 1px solid #cdcec8; }
.catalog-table tbody th, .catalog-table tbody td { line-height: 1.45; padding-block: 15px; vertical-align: middle; }
.catalog-table tbody td { font-variant-numeric: tabular-nums; }
.catalog-table th:first-child { padding-left: 16px; }
.catalog-table tbody th a { display: inline-block; color: var(--ink); text-underline-offset: .2em; }
.catalog-table tbody th a::after { content: '›'; color: #81501b; margin-left: .45em; }
.catalog-table tbody tr:focus-within, .catalog-table tbody tr:hover { background: #faf7f2; }
.catalog-table tbody td:last-child { padding-right: 16px; }

.detail.equipment-sheet { display: block; }
.equipment-overview { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.8fr); gap: clamp(28px,5vw,78px); align-items: center; padding: 0 0 clamp(30px,4vw,60px); }
.equipment-overview:not(:has(figure)) { grid-template-columns: minmax(0,900px); }
.equipment-category { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.equipment-sheet .equipment-intro h1 { margin: 0; font-size: clamp(36px,4.1vw,60px); line-height: 1.04; overflow-wrap: anywhere; }
.equipment-key-facts { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 24px 0; }
.equipment-key-facts dt { margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.equipment-key-facts dd { margin: 0; font-size: clamp(17px,1.65vw,23px); font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.equipment-offer { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 23px; }
.equipment-offer .detail-quote { margin: 0; min-height: 46px; }
.equipment-offer span { font-size: 13px; color: var(--muted); }
.equipment-sheet .detail-image { position: relative; background: var(--wash); border: 1px solid var(--line); border-radius: 4px; aspect-ratio: 1.8; max-height: 310px; padding: 0; }
.equipment-sheet .equipment-figure img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8px; object-fit: contain; mix-blend-mode: multiply; }
.equipment-sheet figcaption { font-size: 12px; text-align: right; line-height: 1.3; }
.equipment-specification { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1fr); align-items: start; gap: clamp(28px,6vw,96px); border-top: 1px solid var(--ink); padding-top: clamp(24px,3vw,42px); }
.equipment-specification .spec-title, .equipment-related h2 { margin: 0; font-size: clamp(23px,2.4vw,34px); line-height: 1.16; letter-spacing: -.04em; }
.equipment-specification .product-summary { max-width: 55ch; margin: 13px 0 0; line-height: 1.55; }
.equipment-source { margin: 16px 0 0; font-size: 13px; }
.equipment-source a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.equipment-sheet .specs { margin: 0; border-top: 1px solid var(--line); }
.equipment-sheet .specs > div { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 16px; align-items: baseline; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.equipment-sheet .specs > div:nth-child(odd) { background: var(--wash); }
.equipment-sheet .specs :is(dt,dd) { margin: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.equipment-sheet .specs dd { text-align: left; font-weight: 550; }
.equipment-related { border-top: 1px solid var(--line); padding-top: 23px; margin-top: 36px; }
.equipment-related nav { margin-top: 12px; }
@media (max-width: 760px) {
  .subpage .section-tabs [data-picker] { margin-left: 0; }
  .equipment-overview { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .equipment-sheet .detail-image { max-height: 230px; }
  .equipment-specification { grid-template-columns: minmax(0,1fr); gap: 21px; }
  .equipment-key-facts { gap: 12px 20px; margin-block: 19px; }
  .equipment-key-facts dd { font-size: 18px; }
  .equipment-sheet .equipment-intro h1 { font-size: clamp(31px,7.3vw,44px); }
}
@media (max-width: 600px) {
  .subpage .section-tabs { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; }
  .subpage .section-tabs a { display: none; }
  .catalog-section-select { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
  .catalog-section-select select { width: 100%; min-height: 42px; padding: 8px; background: white; border: 1px solid #a6adb0; border-radius: 4px; color: var(--ink); font: inherit; font-size: 14px; }
  .subpage .section-tabs [data-picker] { min-height: 42px; padding: 8px 12px; font-size: 13px; }
  .subpage .catalog-heading { margin-bottom: 16px; }
  .subpage .catalog-heading .sub-lead { font-size: 14px; }
  .catalog-related { margin-bottom: 13px; }
  .subpage .catalog-table tbody tr { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 2px; }
  .subpage .catalog-table tbody tr:first-child { border-top: 1px solid var(--line); }
  .subpage .catalog-table tbody th { padding: 0 0 5px; }
  .subpage .catalog-table tbody th a { line-height: 1.45; }
  .subpage .catalog-table td[data-label] { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 10px; padding: 2px 0; line-height: 1.35; overflow-wrap: anywhere; }
  .subpage .catalog-table td[data-label]::before { content: attr(data-label); color: var(--muted); }
  .equipment-offer { gap: 8px 14px; }
  .equipment-sheet .specs > div { gap: 10px; padding: 9px 8px; }
  .equipment-sheet .specs :is(dt,dd) { font-size: 13px; }
}

@media (max-width: 520px) {
  #dialog.vm-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 24px); }
  .vm-dialog-body { padding: 29px 22px 24px; }
  #dialog h2 { margin-bottom: 21px; }
  #dialog .vm-dismiss { top: 6px; right: 6px; }
  .vm-field-pair { grid-template-columns: 1fr; }
  .vm-form :is(input:not([type="checkbox"]), textarea) { font-size: 16px; }
  .vm-power-options { grid-template-columns: 1fr 1fr; }
  .vm-actions { gap: 8px; }
  #dialog .vm-actions .btn { padding-inline: 13px; }
}
