/* 29Safety website: view-only pictures of finished documents for the made-up sample companies (scripts/site-samples).
   A strip of pages on the home and industry pages, one page in each guide's "try" box, the packages samples, and the
   window that opens a page bigger (docs.js). Works on the dark site and on the guides in their light and dark looks:
   colors come from the page (currentColor, the page's --line and --muted) with fallbacks. Pages are white paper. */

/* the page button: a white sheet on a quiet tray, the whole picture visible, a magnifier in the corner */
.ds-zoom{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:17/22;min-height:0;overflow:hidden;margin:0;padding:8px;border:1px solid var(--line,rgba(127,127,127,.35));border-radius:6px;background:rgba(127,127,127,.08);cursor:zoom-in;font:inherit;color:inherit;-webkit-tap-highlight-color:transparent;transition:border-color .2s ease,background-color .2s ease}
.ds-zoom img{display:block;min-width:0;min-height:0;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.18),0 6px 18px -8px rgba(0,0,0,.45);user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none}
.ds-zoom:hover{border-color:currentColor;background:rgba(127,127,127,.14)}
.ds-zoom:focus-visible{outline:3px solid #F26B1D;outline-offset:2px}
.ds-mag{position:absolute;right:6px;bottom:6px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:rgba(14,19,25,.82);color:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.25);pointer-events:none}
.ds-mag svg{display:block}

/* a strip of finished pages (home, construction, general industry) */
.ds-strip{margin-top:36px;padding-top:26px;border-top:1px solid var(--line,rgba(127,127,127,.35))}
.ds-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 24px}
.ds-head h3{margin:0;font-size:20px;line-height:1.25}
.ds-head .ds-note{margin:0;font-size:14px;color:var(--muted,currentColor)}
.ds-row{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.ds-row.n5{grid-template-columns:repeat(5,minmax(0,1fr))}
.ds-row.n4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ds-row.n3,.ds-row.n2,.ds-row.n1{grid-template-columns:repeat(6,minmax(0,1fr))}
.ds-row li{margin:0;padding:0;min-width:0}
.ds-row li::before{content:none}
.ds-fig{margin:0;display:flex;flex-direction:column;gap:8px;min-width:0}
.ds-fig figcaption{font-size:14px;line-height:1.35;color:var(--soft,currentColor);overflow-wrap:anywhere}
@media (max-width:980px){.ds-row,.ds-row.n5,.ds-row.n4{grid-template-columns:repeat(3,minmax(0,1fr))}.ds-row.n3,.ds-row.n2,.ds-row.n1{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:560px){.ds-row{gap:12px 10px}.ds-zoom{padding:5px}.ds-mag{width:24px;height:24px;right:4px;bottom:4px}.ds-mag svg{width:13px;height:13px}.ds-fig figcaption{font-size:13px}}

/* one page in a guide's "try" box (the box is navy in both guide looks) */
.try .ds-one{float:right;width:168px;margin:2px 0 8px 22px;display:flex;flex-direction:column;gap:8px}
.try .ds-one .ds-zoom{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.07)}
.try .ds-one .ds-zoom:hover{border-color:rgba(255,255,255,.6)}
.try .ds-one figcaption{display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:1.35;color:#C9D3E3}
.try .ds-one figcaption b{color:#fff;font-weight:600}
.try:has(.ds-one){display:block}
.try:has(.ds-one) > div:not(.acts){margin-bottom:18px}
.try:has(.ds-one) .acts{clear:right}
@media (max-width:560px){.try:has(.ds-one){display:flex;flex-direction:column}.try .ds-one{order:1;float:none;width:auto;margin:0 0 18px;flex-direction:row;align-items:center;gap:14px}.try .ds-one .ds-zoom{width:104px;flex:none}.try .ds-one figcaption{font-size:13px}.try:has(.ds-one) > div:not(.acts){margin-bottom:16px}.try:has(.ds-one) .acts{order:2}}

/* the /see-inside gallery: the page fills its card, as before; the button only opens it bigger */
.tour-fig .ds-zoom{aspect-ratio:auto;padding:0;border-radius:12px;background:#fff;border-color:var(--line,rgba(127,127,127,.35))}
.tour-fig .ds-zoom img{width:100%;height:auto;max-height:560px;object-fit:contain;object-position:top center;box-shadow:none}
@media (max-width:860px){.tour-fig .ds-zoom img{max-height:none}}

/* the packages page's samples: the same page buttons, three across */
.pk-shot .ds-zoom{padding:12px}

/* the window that opens a page bigger */
.ds-box{width:min(1100px,100vw - 24px);max-width:none;max-height:none;height:calc(100vh - 24px);height:calc(100dvh - 24px);margin:auto;padding:0;border:0;border-radius:10px;background:#0E1319;color:#F2F3F4;overflow:hidden}
.ds-box::backdrop{background:rgba(5,8,12,.86)}
.ds-box[open]{display:flex;flex-direction:column}
.ds-box .ds-bar{display:flex;align-items:center;gap:12px;padding:10px 10px 10px 18px;border-bottom:1px solid rgba(255,255,255,.12)}
.ds-box .ds-cap{flex:1;min-width:0;font-size:15px;line-height:1.3}
.ds-box .ds-cap b{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ds-box .ds-cap span{display:block;font-size:13px;color:#A9B0BA}
.ds-box .ds-count{font-size:13px;color:#A9B0BA;white-space:nowrap}
.ds-box button{display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:1px solid rgba(255,255,255,.22);border-radius:8px;background:transparent;color:#fff;cursor:pointer;font:inherit}
.ds-box button:hover{background:rgba(255,255,255,.1)}
.ds-box button:focus-visible{outline:3px solid #F26B1D;outline-offset:2px}
.ds-box button[hidden]{display:none}
.ds-box .ds-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:14px;overflow:auto;overscroll-behavior:contain}
.ds-box .ds-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;background:#fff;user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none}
.ds-box .ds-stage img{cursor:zoom-in}
.ds-box .ds-stage img:focus-visible{outline:3px solid #F26B1D;outline-offset:-3px}
/* full size inside the scrolling stage (a tap on the page): anchored top left so no part is out of reach */
.ds-box .ds-stage.big{align-items:flex-start;justify-content:flex-start}
.ds-box .ds-stage img.big{max-width:none;max-height:none;width:1100px;height:auto;flex:none;cursor:zoom-out}
.ds-box .ds-nav{display:flex;gap:8px}
/* "Open the PDF", for a document that has a public sample PDF */
.ds-box .ds-pdf{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid rgba(255,255,255,.22);border-radius:8px;color:#fff;font-size:14px;font-weight:600;text-decoration:none;white-space:pre}
.ds-box .ds-pdf:hover{background:rgba(255,255,255,.1)}
.ds-box .ds-pdf:focus-visible{outline:3px solid #F26B1D;outline-offset:2px}
.ds-box .ds-pdf[hidden]{display:none}
html.ds-lock,html.ds-lock body{overflow:hidden}
@media (max-width:560px){.ds-box{width:100vw;height:100vh;height:100dvh;border-radius:0}.ds-box .ds-bar{padding-left:14px}.ds-box .ds-stage{padding:8px}.ds-box .ds-count{display:none}.ds-box .ds-pdf-w{display:none}.ds-box .ds-pdf{padding:0 12px}}
@media (prefers-reduced-motion:no-preference){.ds-box[open]{animation:ds-in .18s ease-out}@keyframes ds-in{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:none}}}
