/* 29Safety sample pages (the JHA, the lockout procedure and the toolbox talk record, English and Spanish), on top of
   theme.css. One layout for all three: the real document on one side, what each part does on the other. As you scroll,
   the page follows the part you're reading and an orange box marks it (public/site/sample.js). On a phone the page sits
   at the top of the screen, zoomed in on that part, and the words scroll underneath. */

.sx-top{padding-block:80px 34px}
.sx-top h1{font-size:clamp(40px,5.4vw,72px);font-weight:800;font-variation-settings:"wdth" 88;letter-spacing:-.018em;max-width:16ch}
.sx-top .lede{margin-top:20px;font-size:clamp(18px,1.6vw,21px);line-height:1.5;max-width:36em;color:#E6E8E4}
.sx-ctl{display:flex;gap:14px;flex-wrap:wrap;margin-top:26px}

.sx{padding-block:10px 40px}
.sx-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:64px}
.sx-grid.land{grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr);gap:52px}
.sx-stage{position:sticky;top:96px;align-self:start}
/* the page: a white sheet at the document's own shape; .sx-pg holds the picture and the box at the picture's full size
   (1200 px wide) and sample.js scales and moves it with a transform, so the box always lines up with the part */
.sx-sheet{position:relative;overflow:hidden;background:var(--paper);border-radius:2px;box-shadow:0 30px 80px -30px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.06);aspect-ratio:1200/1553;width:min(100%,calc((100vh - 140px) * 1200 / 1553));margin-inline:auto}
.sx-sheet.land{aspect-ratio:1200/927;width:min(100%,calc((100vh - 140px) * 1200 / 927))}
.sx-pg{position:absolute;left:0;top:0;width:1200px;height:1553px;transform-origin:0 0;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.sx-sheet.land .sx-pg{height:927px}
.sx-pg img{display:block;width:100%;height:100%;max-width:none;user-select:none;-webkit-user-drag:none;transition:opacity .3s ease}
.sx-pg img.swap{opacity:.25}
.sx-hl{position:absolute;border:4px solid var(--ember);border-radius:4px;box-shadow:0 0 0 2400px rgba(7,11,17,.5);pointer-events:none;transition:left .6s cubic-bezier(.2,.7,.2,1),top .6s cubic-bezier(.2,.7,.2,1),width .6s cubic-bezier(.2,.7,.2,1),height .6s cubic-bezier(.2,.7,.2,1)}
.sx-pager{display:flex;justify-content:space-between;gap:16px;margin-top:12px;font-size:14px;color:var(--dim)}
.sx-pager span:last-child{text-align:right}

.sx-beats{display:flex;flex-direction:column;padding-bottom:18vh}
.sx-beat{min-height:70vh;display:flex;flex-direction:column;justify-content:center;padding-block:24px;opacity:.62;transition:opacity .4s ease}   /* .62: the parts you are not on still read at 4.5:1 (Nov 2026) */
.sx-beat.on{opacity:1}
.sx-beat h2{font-size:clamp(28px,3vw,40px)}
.sx-beat p{margin-top:14px;color:#D9DCD8;max-width:28em;font-size:19px}

.sx-files{display:flex;flex-wrap:wrap;gap:12px 26px;align-items:center;padding-top:26px;border-top:1px solid var(--line);font-size:16px;color:var(--muted)}
.sx-files a{color:var(--text);font-weight:600;text-underline-offset:5px}

/* the sample JHA page: take a control away and watch the risk climb (moved from the home page; drawn by sample.js) */
.try{padding-block:80px 10px;border-top:1px solid var(--line);margin-top:56px}
.try-head{display:flex;justify-content:space-between;align-items:end;gap:32px;flex-wrap:wrap}
.try-head h2{font-size:clamp(32px,3.6vw,48px);max-width:16ch}
.try-head p{color:var(--muted);max-width:26em;margin-top:12px}
.try-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:48px;margin-top:44px;align-items:start}
.hz{border-top:1px solid var(--line);padding-block:20px}
.hz:last-child{border-bottom:1px solid var(--line)}
.hz-top{display:flex;justify-content:space-between;gap:16px;align-items:baseline}
.hz-top b{font-size:19px;font-weight:650}
.chips{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--muted);white-space:nowrap}
.chip{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--text);font-size:14px;font-variant-numeric:tabular-nums}
.chip i{width:11px;height:11px;border-radius:2px;display:inline-block}
.ctrls{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:12px}
.ctrls label{display:flex;align-items:center;gap:9px;font-size:16px;color:var(--soft);cursor:pointer}
.ctrls input{width:24px;height:24px;accent-color:var(--ember)}
.mx2{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.mxb .t{font-size:14px;font-weight:700;color:var(--muted);margin-bottom:8px}
.g5{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.g5 div{aspect-ratio:1;border-radius:3px;display:flex;align-items:center;justify-content:center;font:800 18px var(--display);transition:background .35s ease,transform .35s ease,color .35s ease}
.g5 div.on{transform:scale(1.04)}
.axis{display:flex;justify-content:space-between;font-size:12px;color:var(--dim);margin-top:6px}
.sumline{margin-top:22px;font-size:17px;color:var(--soft);min-height:3.2em}
.sumline b{color:var(--text)}

/* after the walk-through: make your own, and the other samples */
.sx-end{padding-block:70px 90px;border-top:1px solid var(--line);margin-top:56px}
.sx-end-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:56px;align-items:start}
.sx-end h2{font-size:clamp(30px,3.4vw,46px)}
.sx-end p{margin-top:14px;color:var(--soft);max-width:34em}
.sx-act{display:flex;gap:14px;flex-wrap:wrap;margin-top:26px}
.sx-end .sx-fine{margin-top:14px;font-size:15px;color:var(--muted)}
.sx-more h3{font-size:20px}
.sx-more ul{list-style:none;margin:14px 0 0;padding:0}
.sx-more li{border-top:1px solid var(--line)}
.sx-more li:last-child{border-bottom:1px solid var(--line)}
.sx-more a{display:block;padding:14px 0;color:var(--text);font-weight:600;text-decoration:none}
.sx-more a:hover{text-decoration:underline;text-decoration-color:var(--ember);text-underline-offset:5px}
.sx-more small{display:block;font-weight:400;color:var(--muted);font-size:15px;margin-top:2px}

/* phones: the page stays at the top of the screen, zoomed in on the part being read, and the words scroll under it */
@media (max-width:860px){
  .sx-top{padding-block:44px 22px}
  .sx-grid,.sx-grid.land{grid-template-columns:minmax(0,1fr);gap:0}
  .sx-stage{top:calc(64px + env(safe-area-inset-top,0px));z-index:3;background:rgba(8,12,19,.96);margin-inline:-16px;padding:8px 16px 10px}
  .sx-stage::after{content:"";position:absolute;left:0;right:0;top:100%;height:24px;background:linear-gradient(180deg,rgba(8,12,19,.96),rgba(8,12,19,0));pointer-events:none}
  .sx-sheet,.sx-sheet.land{aspect-ratio:auto;width:100%;height:42vh;min-height:220px;max-height:380px}
  .sx-hl{border-width:3px}
  .sx-pager{margin-top:8px;font-size:13px}
  .sx-beats{padding-bottom:30vh}
  .sx-beat{min-height:58vh;justify-content:flex-start;padding-top:26px;opacity:.62}
  .sx-beat h2{font-size:26px}
  .sx-beat p{font-size:17px;line-height:1.55}
  .sx-end{padding-block:52px 64px;margin-top:36px}
  .sx-end-grid{grid-template-columns:minmax(0,1fr);gap:36px}
  .try{padding-block:56px 0;margin-top:36px}
  .try-grid{grid-template-columns:minmax(0,1fr);gap:28px}
  .hz-top{flex-wrap:wrap;gap:6px 16px}
}
@media (prefers-reduced-motion:reduce){.sx-pg,.sx-hl,.sx-beat,.sx-pg img,.g5 div{transition:none}}
html.hm .sx-pg,html.hm .sx-hl{transition:none}
