/* StruXure.co drawing kit styles: plan-sheet line drawings.
   Pairs with kit/sheetkit.py (which writes the class names) and sx-draw.js (which plays a sheet once). */

/* ---- the sheet: paper, drawing area, title block ---------------------------------------- */
.sx-sheet { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 156px; background: #fff; border: 1.5px solid var(--navy); border-radius: 3px; box-shadow: var(--shadow); }
.sx-sheet::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--navy); pointer-events: none; border-radius: 1px; }
.sx-sheet > .sx-area { position: relative; padding: 14px; min-width: 0; }
.sx-tb { position: relative; display: flex; flex-direction: column; margin: 6px 6px 6px 0; border-left: 1px solid var(--navy); font-size: 12.5px; line-height: 1.35; color: var(--ink); }
.sx-tb > div { padding: 10px 12px; border-bottom: 1px solid var(--navy); }
.sx-tb > div:last-child { border-bottom: 0; }
.sx-tb .k { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.sx-tb .firm { font: 600 16px/1.2 var(--display); color: var(--navy); }
.sx-tb .ttl { font: 600 16px/1.25 var(--display); color: var(--navy); flex: 1; }
.sx-tb .no { font: 700 30px/1 var(--display); letter-spacing: -0.02em; color: var(--navy); }
@media (max-width: 639px) {
  .sx-sheet { grid-template-columns: minmax(0, 1fr); }
  .sx-sheet > .sx-area { padding: 10px; }
  .sx-tb { flex-direction: row; flex-wrap: wrap; margin: 0 6px 6px; border-left: 0; border-top: 1px solid var(--navy); }
  .sx-tb > div { border-bottom: 0; border-right: 1px solid var(--navy); padding: 8px 10px; }
  .sx-tb > div:last-child { border-right: 0; }
  .sx-tb .ttl { flex: 1 1 40%; }
}

/* ---- drawing box and labels ------------------------------------------------------------- */
.sx-drawing { position: relative; width: 100%; }
.sx-svg { width: 100%; height: 100%; overflow: visible; }
.sx-svg text { font-family: var(--font); }
.sx-tag { position: absolute; transform: translate(-50%, -50%); z-index: 2; padding: 4px 8px; background: #fff; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); font: 600 12.5px/1.2 var(--sans); white-space: nowrap; pointer-events: none; }
.sx-tag.on-route { border-color: var(--teal-deep); color: var(--teal-deep); border-width: 1.5px; }
.sx-tag.on-edge { background: var(--navy); border-color: var(--navy); color: #fff; }
.sx-tag.at-left { transform: translate(0, -50%); }

/* ---- line weights ----------------------------------------------------------------------- */
.k-obj { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.k-thin { fill: none; stroke: #7A808A; stroke-width: .85; stroke-linecap: round; }
.k-frame { fill: none; stroke: var(--navy); stroke-width: 1.7; }
.k-wall, .k-wallf { fill: var(--navy); }
.k-grid { fill: none; stroke: var(--blue); stroke-width: .85; stroke-dasharray: 14 4 2 4; }
.k-bub-c { fill: #fff; stroke: var(--blue-deep); stroke-width: 1.2; }
.k-bub { font-weight: 700; font-size: 14px; fill: var(--blue-deep); dominant-baseline: central; }
.k-dim { fill: none; stroke: var(--muted); stroke-width: .85; }
.k-dimt { font-weight: 600; font-size: 14px; fill: var(--muted); }
.k-prop { fill: none; stroke: var(--muted); stroke-width: 1.1; stroke-dasharray: 18 5 3 5; }
.k-cl { stroke: #A7AFB9; stroke-width: .85; stroke-dasharray: 10 8; }
.k-hid { fill: none; stroke: var(--muted); stroke-width: 1.1; stroke-dasharray: 6 4; }
.k-swing { fill: none; stroke: var(--blue); stroke-width: .9; stroke-dasharray: 2 5; }
.k-hatch { stroke: #B4BCC6; stroke-width: .7; }
.k-route { fill: none; stroke: var(--blue); stroke-width: 2.8; stroke-dasharray: 9 6; stroke-linecap: round; stroke-linejoin: round; }
.k-rmask { fill: none; stroke: #fff; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.k-node { fill: var(--blue); }
.k-cloud { fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linejoin: round; }
.k-leader { fill: none; stroke: var(--ink); stroke-width: .9; }
.k-leader-dot { fill: var(--ink); }
.k-body { fill: #fff; stroke: var(--ink); stroke-width: 1.1; }
.k-hat { fill: #fff; stroke: var(--ink); stroke-width: 1.1; }
.k-paper { fill: #fff; }
.k-win { fill: #fff; stroke: var(--ink); stroke-width: .9; }
.k-mini { fill: none; stroke: var(--navy); stroke-width: 2.6; }
.k-mini2 { stroke: var(--navy); stroke-width: 1.6; }
.k-tl { stroke: #B9C1CB; stroke-width: 2.2; stroke-linecap: round; }
.k-rule { stroke: var(--line); stroke-width: 1; }
.k-head { fill: var(--tint); }
.k-tabs { fill: var(--tint); stroke: var(--ink); stroke-width: .9; }
.k-tabs.on { fill: var(--blue); }
.k-link { fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-dasharray: 4 4; }
.k-sun, .k-sunr { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; }
.k-track { fill: var(--tint); stroke: var(--line); }
.k-done { fill: var(--blue); }
.k-bar { fill: rgba(0, 161, 224, .2); stroke: var(--blue-deep); stroke-width: .9; }
.k-barc { fill: var(--blue); }
.k-today { stroke: var(--blue-deep); stroke-width: 1.2; stroke-dasharray: 3 3; }
.k-col { fill: rgba(0, 161, 224, .35); }
.k-sig { fill: none; stroke: var(--blue-deep); stroke-width: 1.5; stroke-linecap: round; }
.k-ground { stroke: var(--ink); stroke-width: 1.5; }
.k-brick { stroke: #C3CAD3; stroke-width: 1; }

/* documents, stamps, pins, chips: status colour is always a document state */
.k-doc .pg { fill: #fff; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.k-doc .fold { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.k-doc .tl { stroke: #9AA3AE; stroke-width: 1.6; stroke-linecap: round; }
.k-state { fill: var(--green); stroke: #fff; stroke-width: 1.6; }
.k-stamp circle { fill: rgba(255, 255, 255, .85); stroke-width: 2.2; }
.k-stamp circle.in { fill: none; stroke-width: 1; }
.k-stamp path { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.k-stamp.st-green { stroke: var(--green); }
.k-stamp.st-amber { stroke: var(--amber); }
.k-stamp.st-red { stroke: var(--red); }
.k-stamp { transform-box: fill-box; transform-origin: center; }
.k-pin path { stroke: #fff; stroke-width: 1.2; }
.k-pin circle { fill: #fff; }
.k-pin.st-green path, .k-chip.st-green { fill: var(--green); }
.k-pin.st-amber path, .k-chip.st-amber { fill: var(--amber-bright); }
.k-pin.st-red path, .k-chip.st-red { fill: var(--red); }

/* on navy: white line, blue highlight */
.on-navy .k-obj { stroke: #fff; }
.on-navy .k-thin { stroke: rgba(255, 255, 255, .55); }
.on-navy .k-dim { stroke: rgba(255, 255, 255, .7); }
.k-nv-out { fill: none; stroke: #fff; stroke-width: 1.5; }
.k-nv-fill { fill: var(--blue); }
.k-nv-demo { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 1.5; stroke-dasharray: 8 6; }
.k-nv-hatch { stroke: rgba(255, 255, 255, .26); stroke-width: 1; }
.ft-elev .k-obj, .ft-elev .k-ground { stroke: rgba(16, 45, 123, .28); stroke-width: 1.1; }
.ft-elev .k-thin, .ft-elev .k-hid { stroke: rgba(0, 161, 224, .35); }

/* ---- draw-on (sx-draw.js adds .play; .js and .rm are set in <head>) --------------------- */
.js:not(.rm) .sx-draw:not(.play) .dr { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: sx-dr-failsafe 0s 6s forwards; }
.js:not(.rm) .sx-draw:not(.play) .fd, .js:not(.rm) .sx-draw:not(.play) .k-final { opacity: 0; animation: sx-failsafe 0s 6s forwards; }
.js:not(.rm) .sx-draw.play .dr { stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset calc(var(--dur, 650) * 1ms) cubic-bezier(.45, 0, .2, 1) calc(var(--d, 0) * 1ms); }
.js:not(.rm) .sx-draw.play .fd { opacity: 1; transition: opacity .45s ease-out calc(var(--d, 0) * 1ms); }
/* the submittal: pending (amber) until it is stamped */
.js:not(.rm) .sx-draw:not(.stamped) .k-state { fill: var(--amber-bright); }
.js:not(.rm) .sx-draw.play:not(.stamped) .k-final { opacity: 0; transform: scale(1.7); }
.js:not(.rm) .sx-draw.stamped .k-final { opacity: 1; transform: scale(1); transition: opacity .14s ease-out, transform .22s cubic-bezier(.2, .9, .3, 1); }
.js:not(.rm) .sx-draw.play .k-travel { opacity: 0; }
/* if the script never runs, the sheet shows finished after 6s */
@keyframes sx-dr-failsafe { to { stroke-dashoffset: 0; } }

/* ---- real product screens pinned on a sheet (Sheet.screen in kit/sheetkit.py) ---------------
   The drawing is the job; the screen is the product. Only real StruXure.co screenshots go here. */
.sx-scr { position: absolute; z-index: 1; margin: 0; }
.sx-scr-g { display: block; padding: 5px 5px 6px; background: #fff; border: 1.5px solid var(--navy); border-radius: 8px 8px 4px 4px; box-shadow: var(--shadow), 0 12px 24px -18px rgba(16, 45, 123, .24); }
.sx-scr-g img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 3px; }
.sx-scr-laptop::after { content: ''; display: block; height: 7px; margin: 0 -5%; background: var(--tint); border: 1.5px solid var(--navy); border-top-width: 1px; border-radius: 0 0 8px 8px; }
.sx-scr-phone .sx-scr-g { padding: 5px; border-radius: 18px; }
.sx-scr-phone .sx-scr-g img { border-radius: 13px; }
.sx-scr-lab { position: absolute; left: 12px; top: 0; transform: translateY(-55%); z-index: 2; padding: 4px 8px; background: var(--navy); color: #fff; border-radius: 3px; font: 600 12.5px/1.2 var(--sans); white-space: nowrap; }
.sx-tag.at-right { transform: translate(-100%, -50%); }

/* ---- pastels (2026-11-06): the paired jobsite palette from the family pastel pass -------------
   Same recipe as Public Sector: soft tints inside the drawings only, at the lightness of the light
   blue; page colours untouched. Butter hats and lit windows, hi-vis lime vests, peach sheet stacks,
   timber material, periwinkle trucks and trailers, and the crane cab in status amber. */
.sx-svg { --p-butter: #fbecc4; --p-lime: #e4f1b6; --p-peach: #fbd9bf; --p-timber: #efdcc0; --p-peri: #d6dcf6; --p-crane: #F0C64D; }
.sx-svg .k-hat, .sx-svg .k-hatp, .sx-svg .k-win { fill: var(--p-butter); }
.sx-svg .k-body { fill: var(--p-lime); }
.sx-svg .p-peach { fill: var(--p-peach); }
.sx-svg .p-timber { fill: var(--p-timber); }
.sx-svg .p-peri { fill: var(--p-peri); }
.sx-svg .p-crane { fill: var(--p-crane); }
/* drawn shapes take their tint once their outline is on */
.js:not(.rm) .sx-draw:not(.play) .dr[class*=" p-"] { fill-opacity: 0; animation: sx-dr-failsafe 0s 6s forwards, sx-fill-failsafe 0s 6s forwards; }
@keyframes sx-fill-failsafe { to { fill-opacity: 1; } }
.js:not(.rm) .sx-draw.play .dr[class*=" p-"] { fill-opacity: 1; transition: fill-opacity .4s ease-out calc((var(--d, 0) + var(--dur, 650)) * 1ms); }
/* the product-page crane on navy: a yellow tower crane, like every real one; the building stays white */
.on-navy .k-crane.k-obj, .on-navy .k-crane.k-thin { stroke: #E6A700; }
.on-navy .k-crane.k-wallf { fill: #E6A700; }
