/* dd-diagram.css: interactive diagram viewer (js/dd-diagram.js). Tokens come from dd-site.css when present. */
[data-dd-diagram]:empty { display: none; }
.dd-dg {
  --dg-orange: var(--dd-orange, #FE5006);
  --dg-orange-hover: var(--dd-orange-hover, #E84700);
  --dg-ink: var(--dd-ink, #171A1F);
  --dg-steel: var(--dd-steel, #59616B);
  --dg-line: var(--dd-line, #E3E6E9);
  --dg-grey: var(--dd-grey, #F4F5F7);
  font-family: var(--dd-font, "Onest", system-ui, -apple-system, "Segoe UI", Arial, sans-serif);
  color: var(--dg-ink);
  margin: 0 0 24px;
  max-width: 100%;
  display: flex; flex-direction: column;
  box-sizing: border-box;
}
.dd-dg *, .dd-dg *::before, .dd-dg *::after { box-sizing: border-box; }
/* Toolbar: three small icon buttons in the top-right corner of the diagram box; the hint is one grey line under the box. */
.dd-dg__tools { position: absolute; top: 8px; right: 8px; z-index: 4; display: flex; gap: 4px; cursor: default; }
.dd-dg__tools button {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--dg-line); border-radius: 4px; background: rgba(255, 255, 255, .94); color: var(--dg-ink); cursor: pointer;
}
.dd-dg__tools svg { display: block; width: 20px; height: 20px; }
.dd-dg__tools button:hover { background: var(--dg-grey); }
@media (pointer: coarse), (max-width: 600px) { .dd-dg__tools button { width: 44px; height: 44px; } }
.dd-dg__hint { flex: 0 0 auto; margin: 6px 0 0; min-height: 20px; color: var(--dg-steel); font-size: 14px; line-height: 20px; }
.dd-dg__hint:empty { display: none; }

.dd-dg__vp {
  position: relative; width: 100%; overflow: hidden; background: #fff; border: 1px solid var(--dg-line); border-radius: 6px;
  flex: 1 1 auto; min-height: 0; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.dd-dg__vp.is-zoomed { touch-action: none; }
.dd-dg__vp.is-drag { cursor: grabbing; }
.dd-dg__stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; --s: 1; }
.dd-dg__img-wrap { position: absolute; inset: 0; overflow: hidden; }
.dd-dg__img { position: absolute; max-width: none; height: auto; pointer-events: none; }

.dd-dg__spot {
  position: absolute; transform: translate(-50%, -50%);
  min-width: calc(30px / var(--s)); min-height: calc(30px / var(--s));
  margin: 0; padding: 0; background: transparent; border: calc(2px / var(--s)) solid transparent;
  border-radius: calc(5px / var(--s)); cursor: pointer; font: inherit;
}
@media (pointer: coarse) { .dd-dg__spot { min-width: calc(36px / var(--s)); min-height: calc(36px / var(--s)); } }
.dd-dg__spot:hover, .dd-dg__spot.is-on { background: rgba(254, 80, 6, .2); border-color: var(--dg-orange); }
.dd-dg__spot:focus { outline: none; }
.dd-dg__spot:focus-visible { background: rgba(254, 80, 6, .2); border-color: var(--dg-orange); outline: calc(3px / var(--s)) solid var(--dg-ink); outline-offset: calc(1px / var(--s)); }
.dd-dg__vp:focus-visible, .dd-dg__tools button:focus-visible, .dd-dg__x:focus-visible, .dd-dg__lnk:focus-visible, .dd-dg__cta:focus-visible {
  outline: 3px solid var(--dg-ink); outline-offset: 2px;
}

.dd-dg__card {
  position: absolute; left: 8px; bottom: 8px; z-index: 3; width: min(340px, calc(100% - 16px)); max-height: 60%; overflow: auto;
  padding: 14px 44px 14px 14px; background: #fff; border: 1px solid var(--dg-line); border-top: 3px solid var(--dg-orange);
  border-radius: 6px; box-shadow: 0 6px 24px rgba(23, 26, 31, .18); cursor: default; user-select: text; -webkit-user-select: text;
}
.dd-dg__card[hidden] { display: none; }
.dd-dg__card p { margin: 0; overflow-wrap: anywhere; }
.dd-dg__c-row + .dd-dg__c-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--dg-line); }
.dd-dg__c-key { color: var(--dg-steel); font-size: 14px; }
.dd-dg__c-num { font-size: 18px; font-weight: 700; line-height: 1.3; }
.dd-dg__c-name { font-size: 16px; line-height: 1.35; margin-top: 2px !important; }
.dd-dg__c-act { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 8px; }
.dd-dg__lnk { display: inline-flex; align-items: center; min-height: 44px; color: var(--dg-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dd-dg__cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border: 0; border-radius: 4px;
  background: var(--dg-orange); color: #fff; font-size: 19px; font-weight: 700; line-height: 1.2; font-family: inherit; text-align: center; cursor: pointer;
}
.dd-dg__cta:hover { background: var(--dg-orange-hover); color: #fff; }
.dd-dg__x {
  position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--dg-ink);
  font-size: 28px; line-height: 1; cursor: pointer;
}

/* Description table, product page: link and highlight (layout/colours of the table itself are under .dd-pg-on below). */
.dd-tr { cursor: default; }
.dd-tr.dd-tr-on td { background: rgba(254, 80, 6, .08) !important; }
.dd-tr.dd-tr-on td:first-child { box-shadow: inset 3px 0 0 var(--dd-orange, #FE5006); }
.dd-tr__lnk { color: var(--dd-ink, #171A1F); font-weight: 600; text-decoration: underline; text-decoration-color: #C5CAD0; text-underline-offset: 3px; }
.dd-tr__lnk:hover { color: var(--dd-ink, #171A1F); text-decoration-color: currentColor; }
.dd-tr__lnk:focus-visible { outline: 3px solid var(--dd-ink, #171A1F); outline-offset: 2px; }

@media (max-width: 600px) {
  .dd-dg__card { padding-right: 40px; max-height: 70%; }
}
@media (prefers-reduced-motion: reduce) { .dd-dg *, .dd-tr { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Shared box height: one value for the diagram box and for the column next to it. */
.dd-pg-on, .dd-part { --ddh: min(640px, 80vh, 125vw); }
@media (min-width: 1024px) { .dd-pg-on, .dd-part { --ddh: min(640px, 80vh); } }
[data-dd-wrap][hidden], [data-dd-diagram][hidden], .dd-dg [hidden] { display: none !important; }

/* Product page (server-rendered; class .dd-pg-on on #product): the slot keeps a fixed height from first paint, so variant A (viewer),
   variant B (static picture) and the fallback all occupy the same box. Below 1024px: stacked (bar, diagram, table). */
.dd-pg-on .dd-gal { display: none; }
.dd-dg-slot { width: 100%; max-width: 100%; float: none; flex: 0 0 100%; }
.dd-dg-slot--on { height: var(--ddh); margin: 0 0 24px; }
.dd-dg-slot--on:empty { display: block; }
.dd-dg-slot--on .dd-dg { height: 100%; margin: 0; }
.dd-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; margin: 0 0 12px; }
.dd-bar .btn { width: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 220px; min-height: 48px; margin: 0; font-size: 19px; font-weight: 700; color: #fff; }
.dd-pg-on .dd-buy { float: none; flex: 0 0 100%; width: 100%; max-width: 100%; }
.dd-building .dd-static { display: none; }
.dd-dg__wh { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 6px; background: rgba(23, 26, 31, .88); color: #fff; font-size: 15px; line-height: 1.3; text-align: center; pointer-events: none; }
.dd-static { height: 100%; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--dd-line, #E3E6E9); border-radius: 6px; overflow: hidden; }
.dd-static img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 600px) { .dd-bar .btn { flex: 1 1 100%; } }

/* Product page table card: neutral, no orange band or tab underline (scoped to diagram products only). */
.dd-pg-on table.blueTable thead { display: none; }
.dd-pg-on .dd-buy, .dd-pg-on table.blueTable, .dd-pg-on table.blueTable > tbody, .dd-pg-on table.blueTable > tbody > tr, .dd-pg-on table.blueTable > tbody > tr > td { display: block; width: 100%; max-width: 100%; border: 0; padding: 0; margin: 0; background: none; }
.dd-pg-on table.blueTable > tfoot { display: none; }
.dd-pg-on .nav-tabs { border-bottom: 1px solid var(--dd-line, #E3E6E9); margin: 0 0 12px; }
.dd-pg-on .nav-tabs > li > a { color: var(--dd-ink, #171A1F); font-weight: 600; background: none; border: 0; }
.dd-pg-on .nav-tabs > li > a::after, .dd-pg-on .nav-tabs > li > a::before { display: none !important; }
.dd-pg-on .dd-buy .row { margin-left: 0; margin-right: 0; }
.dd-pg-on #tabs-container { width: 100%; max-width: 100%; float: none; padding: 0; }
.dd-pg-on .tab-content > br { display: none; }
.dd-pg-on #tab-description { background: #fff; border: 0; padding: 0; margin: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.dd-pg-on #tab-description table { width: 100% !important; max-width: 100%; margin: 0; border-collapse: collapse; table-layout: auto; border: 1px solid var(--dd-line, #E3E6E9); }
.dd-pg-on #tab-description colgroup { display: none; }
.dd-pg-on #tab-description tr { height: auto !important; background: none; }
.dd-pg-on #tab-description td, .dd-pg-on #tab-description th {
  width: auto !important; height: auto !important; padding: 8px 12px; border: 0 !important; border-bottom: 1px solid var(--dd-line, #E3E6E9) !important;
  background: #fff !important; color: var(--dd-ink, #171A1F) !important; font: 400 15px/1.35 var(--dd-font, "Onest", system-ui, Arial, sans-serif) !important;
  text-align: left !important; vertical-align: middle; overflow-wrap: anywhere;
}
.dd-pg-on #tab-description tr:nth-child(even) td { background: #FAFBFC !important; }
.dd-pg-on #tab-description tr:first-child td { background: #F4F5F7 !important; font-weight: 600 !important; position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--dd-line, #E3E6E9); }
.dd-pg-on #tab-description td:first-child { width: 64px !important; white-space: nowrap; }
.dd-pg-on #tab-description tr.dd-tr-on td { background: rgba(254, 80, 6, .08) !important; }
.dd-pg-on #tab-description tr.dd-tr-on td:first-child { box-shadow: inset 3px 0 0 var(--dd-orange, #FE5006); }
.dd-pg-on #tab-description .dd-tr__lnk { display: inline-block; padding: 4px 0; }

@media (min-width: 1024px) {
  .dd-pg-on #content > .row { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); column-gap: 24px; align-items: start; margin-left: 0; margin-right: 0; }
  .dd-pg-on #content > .row::before, .dd-pg-on #content > .row::after { display: none; }
  .dd-pg-on #content > .row > .dd-dg-slot { grid-column: 1; grid-row: 1 / span 3; position: sticky; top: 12px; margin: 0; padding: 0; width: auto; }
  .dd-pg-on #content > .row > .dd-bar { grid-column: 2; grid-row: 1; width: auto; margin: 0 0 12px; padding: 0; }
  .dd-pg-on #content > .row > .dd-buy { grid-column: 2; grid-row: 2; width: auto; padding: 0; margin: 0; }
  .dd-pg-on #tab-description { max-height: calc(var(--ddh) - 120px); }
}

/* Part page layout and cards: inline <style> in template/product/dd_part.twig. */
@media (prefers-reduced-motion: reduce) { .dd-pg-on #tab-description { scroll-behavior: auto; } }
