/* Feature pages (7-day inspection, handover certificate, register).
   Loaded after style.css and landing.css; only adds what those lack. */
.crumbs { font-size: 13.5px; color: var(--steel); padding-top: 28px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--steel); }
.crumbs a:hover { color: var(--ink); }

.fhero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center; padding-top: 40px; padding-bottom: 72px; }
.fhero h1 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -.035em; }
.fhero .lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 32em; margin: 22px 0 30px; }
.fshot { justify-self: center; width: 100%; max-width: 300px; border-radius: 30px; background: var(--ink); padding: 7px; box-shadow: 0 30px 60px -16px rgba(23,32,43,.45); }
.fshot img { display: block; width: 100%; height: auto; border-radius: 23px; }
.wide { margin-top: 36px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 48px -20px rgba(23,32,43,.3); }
.wide img { display: block; width: 100%; height: auto; }

.fsec { padding-top: 72px; padding-bottom: 8px; }
.fsec h2.sec { max-width: 24em; }
.fl { list-style: none; margin: 28px 0 0; padding: 0; max-width: 46em; }
.fl li { position: relative; padding: 14px 0 14px 26px; font-size: 16.5px; line-height: 1.6; border-top: 1px solid var(--line); }
.fl li:last-child { border-bottom: 1px solid var(--line); }
.fl li::before { content: ""; position: absolute; left: 0; top: 25px; width: 10px; height: 4px; border-radius: 1px; background: var(--free); }
.fl b { font-weight: 600; }
.src { font-size: 14px; color: var(--steel); margin: 18px 0 0; max-width: 46em; }

.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: start; }
.split .fshot { margin-top: 28px; max-width: 270px; }

.related { padding-top: 88px; padding-bottom: 72px; }
.related .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .fhero, .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .fshot, .split .fshot { max-width: 240px; }
}
@media (max-width: 560px) {
  .crumbs { padding-top: 20px; }
  .fhero { padding-top: 28px; padding-bottom: 48px; }
  .fhero .lead { font-size: 17px; }
  .fsec { padding-top: 52px; }
  .fl li { font-size: 15.5px; }
  .related { padding-top: 64px; }
  .related .fgrid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Hero scenes. scene.js moves each one with the scroll: the text stays
   put on the left while the scene runs on the right. Without the script the
   scene shows its first frame (or, for the certificate, its last). */
.fhero.has-scn { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; padding-top: 0; padding-bottom: 0; gap: 0 64px; }
.has-scn > div:first-child { position: sticky; top: 68px; min-height: calc(100svh - 68px - 60px); display: flex; flex-direction: column; justify-content: center; padding: 24px 0 48px; }
.scn { height: 230vh; }
.scn-pin { position: sticky; top: 68px; height: calc(100svh - 68px); display: flex; align-items: center; justify-content: center; padding: 16px 0; }
.no-scn .scn { height: auto; }
.no-scn .scn-pin { position: static; height: auto; padding: 0 0 48px; }
.sbar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sbar b { font: 600 clamp(20px, 1.8vw, 26px)/1.1 var(--body); letter-spacing: -.02em; }
.sbar span { font: 500 13px var(--mono); color: var(--steel); }
figure.tagfig, figure.reg, figure.cert { margin: 0; width: 100%; }

/* The tag hangs from a scaffold tube on a cable tie. */
.tagfig { max-width: 400px; }
.tagfig figcaption, .reg figcaption { margin-top: 18px; min-height: 3em; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.tube { height: 26px; margin: 0 -40px; border-radius: 13px; background: linear-gradient(#c3ccd2, #f4f6f7 30%, #9aa6ae 70%, #7c8891); box-shadow: 0 6px 12px -6px rgba(23,32,43,.4); }
.stag { --c: var(--free); position: relative; margin: 26px auto 0; width: 88%; padding: 22px 22px 18px; background: #fff; border: 1px solid var(--line); border-top: 10px solid var(--c); border-radius: 6px 6px 10px 10px; box-shadow: 0 24px 40px -18px rgba(23,32,43,.45); transform-origin: 50% -40px; transition: border-color .3s; }
.stag.due { --c: var(--wind); }
.stag.lock { --c: var(--lock); }
.tie { position: absolute; left: 50%; top: -52px; width: 16px; height: 50px; margin-left: -8px; border: 3px solid var(--ink); border-radius: 9px; }
.tfirm { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.tstat { margin: 6px 0 10px; font: 700 clamp(34px, 3.2vw, 46px)/1 var(--display); letter-spacing: .01em; text-transform: uppercase; color: var(--c); transition: color .3s; }
.stag.due .tstat { color: #b0760a; }
.tref { font-size: 15px; color: var(--ink-2); }
.tref b { margin-right: 4px; color: var(--ink); }
.stag dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.stag dt { color: var(--steel); }
.stag dd { margin: 0; font-weight: 600; }
.tdays { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.tdays li { height: 10px; border-radius: 3px; background: #e3e8eb; transition: background-color .25s; }
.tdays li.on { background: var(--c); }
@media (prefers-reduced-motion: no-preference) {
  .stag.swing { animation: swing 1.1s cubic-bezier(.3,.7,.4,1); }
  @keyframes swing { 0% { transform: rotate(0); } 20% { transform: rotate(-5deg); } 45% { transform: rotate(3deg); } 70% { transform: rotate(-1.2deg); } 100% { transform: rotate(0); } }
}

/* The certificate: a printed sheet that fills in as the inspection goes on. */
.cert { position: relative; max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px 18px; box-shadow: 0 30px 50px -24px rgba(23,32,43,.45); }
.cert header { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.cfirm { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.cert header b { grid-column: 1; font: 700 24px/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.cno { grid-column: 2; grid-row: 1 / 3; align-self: center; font: 500 14px var(--mono); padding: 5px 9px; border: 1.5px solid var(--ink); border-radius: 5px; }
.cf { margin: 0; }
.cf > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; }
.cf dt { color: var(--steel); }
.cf dd { margin: 0; font-weight: 500; position: relative; transition: opacity .3s, transform .3s; }
.cert.run .cf dd { opacity: 0; transform: translateX(6px); }
.cert.run .cf dd.on { opacity: 1; transform: none; }
.sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; }
.sig svg { display: block; width: 100%; height: 46px; border-bottom: 1px solid var(--ink-2); }
.sig path { fill: none; stroke: #1d3f73; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: var(--d, 0); }
.sig span { display: block; margin-top: 5px; font-size: 12px; color: var(--steel); }
.stamp { display: block; width: max-content; margin: 16px auto 2px; padding: 6px 14px; border: 3px solid var(--free); border-radius: 6px; color: var(--free); font: 700 26px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; transform: rotate(-8deg); background: rgba(255,255,255,.88); transition: opacity .25s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.cert.run .stamp { opacity: 0; transform: rotate(-8deg) scale(1.6); }
.cert.run .stamp.on { opacity: 1; transform: rotate(-8deg) scale(1); }

/* The register: rows move to their new place when the order changes. */
.reg { max-width: 540px; }
.rhead { display: flex; justify-content: space-between; padding: 0 14px 8px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.rlist { list-style: none; margin: 0; padding: 0; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--lift); overflow: hidden; }
.rlist li { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; background: #fff; }
.reg.run .rlist li { position: absolute; left: 0; right: 0; top: 0; transform: translateY(calc(var(--i) * 52px)); transition: transform .45s cubic-bezier(.3,.7,.3,1), background-color .3s; }
.rlist .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--free); flex: none; }
.rlist b { font: 500 14px var(--mono); }
.rplace { flex: 1; min-width: 0; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { flex: none; font: 600 12.5px var(--body); padding: 4px 9px; border-radius: 5px; background: #eef1f2; color: var(--ink-2); }
.rlist li.due .dot { background: var(--wind); }
.rlist li.due .chip { background: #fbefd6; color: #8a5c06; }
.rlist li.lock { background: #fdf1f0; }
.rlist li.lock .dot { background: var(--lock); }
.rlist li.lock .chip { background: var(--lock); color: #fff; }

@media (max-width: 900px) {
  .fhero.has-scn { grid-template-columns: minmax(0, 1fr); }
  .has-scn > div:first-child { position: static; min-height: 0; padding: 20px 0 0; }
  .scn { height: 200vh; }
}
@media (max-width: 560px) {
  .cert { padding: 16px 16px 14px; }
  .cf > div { grid-template-columns: 7.4em 1fr; gap: 8px; padding: 6px 0; font-size: 12.5px; }
  .cert header b { font-size: 20px; }
  .stamp { font-size: 21px; }
  .scn-pin { align-items: flex-start; padding-top: 16px; }
  .rlist li { gap: 8px; padding: 0 10px; font-size: 13.5px; }
  .rlist b { font-size: 13px; }
  .chip { font-size: 12px; padding: 3px 7px; }
  .tube { margin: 0 -8px; }
}
