/* "Jak pracujemy / Od pomysłu do gotowej odzieży" on uj14.com as one scene (workshop-scene.js). Colours and type
   follow the theme's cards; the cards stay in the page and come back when the script does not run. */
.u14-workshop[data-workshop-scene] .u14-workshop-grid { display: none; }
/* Without the scene: five cards in one row on wide screens (the theme's grid has four columns). */
@media (min-width: 1181px) {
  .u14-workshop-grid:has(> .u14-work-card:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.u14ws {
  max-width: 1355px;
  margin: auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  color: #171717;
}
.u14ws button {
  margin: 0;
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* Picture */
.u14ws-stage { position: relative; background: #ecece6; }
.u14ws-scene { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 346; }
.u14ws-pins { position: absolute; top: 0; left: 0; width: 176%; height: 100%; pointer-events: none; }
.u14ws-pins .u14ws-hotspot { pointer-events: auto; }
.u14ws-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d8d8d3;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.u14ws-toggle svg { width: 14px; height: 14px; fill: #20201e; }
.u14ws-toggle:hover { border-color: #20201e; }

.u14ws-hotspot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  padding: 0;
  border: 2px solid #20201e;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s, background-color .2s, border-color .2s, color .2s;
}
.u14ws-hotspot:hover { transform: scale(1.12); }
/* .u14ws button sets margin: 0 and wins over .u14ws-hotspot; this centres the dot on its point. */
.u14ws .u14ws-hotspot { margin: -15px 0 0 -15px; }
.u14ws-hotspot.now { background: #d21116; border-color: #d21116; color: #fff; }
/* One ring when a stage begins, not an endless pulse next to a moving picture. */
.u14ws-hotspot.now::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid #d21116;
  border-radius: 50%;
  opacity: 0;
  animation: u14ws-ping 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}
.u14ws-hotspot.open { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(210, 17, 22, .18); }
@keyframes u14ws-ping {
  from { transform: scale(.85); opacity: .8; }
  to { transform: scale(1.5); opacity: 0; }
}

/* Drawing */
.u14ws-scene .ink { fill: #fff; stroke: #20201e; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.u14ws-scene .line { fill: none; stroke: #20201e; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.u14ws-scene .wall { fill: none; stroke: #d0d0c8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.u14ws-scene .pane { fill: #f3f3ee; stroke: #d0d0c8; stroke-width: 2; }
.u14ws-scene .soft { fill: none; stroke: #b9b9b2; stroke-width: 2; stroke-linecap: round; }
.u14ws-scene .thin { stroke-width: 2; }
.u14ws-scene .paper { fill: #f8f8f5; }
.u14ws-scene .dark { fill: #20201e; }
.u14ws-scene .grey { fill: #c9c9c2; }
.u14ws-scene .red { fill: #d21116; }
.u14ws-scene .ink.red { fill: #d21116; }
.u14ws-scene .sketch { fill: none; stroke: #20201e; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.u14ws-scene .area { fill: rgba(210, 17, 22, .08); stroke: #d21116; stroke-width: 2; stroke-dasharray: 5 4; }
.u14ws-scene .red-line { fill: none; stroke: #d21116; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.u14ws-scene .stitch { fill: none; stroke: #20201e; stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .5; }
.u14ws-scene .print { fill: #fff; font-size: 10px; font-weight: 700; letter-spacing: .02em; text-anchor: middle; }
.u14ws-scene .measure { fill: none; stroke: #d21116; stroke-width: 2; stroke-linecap: round; }
.u14ws-scene .check { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.u14ws-scene .thread { fill: none; stroke: #d21116; stroke-width: 1.5; }
.u14ws-scene .mesh-bg { fill: rgba(255, 255, 255, .55); }
.u14ws-scene .mesh-line { stroke: #9a9a93; stroke-width: .6; }
.u14ws-scene .bead { stroke: #d21116; stroke-width: 3; stroke-linecap: round; }
.u14ws-scene .window { fill: #dfe3e3; stroke: #20201e; stroke-width: 2; }
.u14ws-scene .van { fill: #20201e; font-size: 20px; font-weight: 500; letter-spacing: -1.5px; text-anchor: middle; }
.u14ws-scene .van-red { fill: #d21116; }
.u14ws-scene .top { fill: #dcdcd4; stroke: #20201e; stroke-width: 3; stroke-linejoin: round; }
.u14ws-scene .cloth { fill: #fff; stroke: #20201e; stroke-width: 2; stroke-linejoin: round; }
.u14ws-scene .marker { fill: none; stroke: #20201e; stroke-width: 1.2; stroke-linejoin: round; }
.u14ws-scene .seam { fill: none; stroke: #d21116; stroke-width: 1.8; stroke-dasharray: 2.5 2; stroke-linecap: round; }
.u14ws-scene .lay { fill: #f3f3ee; stroke: #20201e; stroke-width: 2; stroke-linejoin: round; }
.u14ws-scene .cut { fill: none; stroke: #d21116; stroke-width: 1.6; stroke-linejoin: round; }
.u14ws-scene .cone { fill: #fff; stroke: #20201e; stroke-width: 2; stroke-linejoin: round; }
.u14ws-scene .cone-red { fill: #d21116; stroke: #20201e; stroke-width: 2; stroke-linejoin: round; }
.u14ws-scene .thread-w { fill: none; stroke: #8d8d86; stroke-width: 1.2; }
.u14ws-scene .metal { fill: #c9c9c2; stroke: #20201e; stroke-width: 2.5; stroke-linejoin: round; }
.u14ws-scene .glow { fill: #fff; }
/* Garments lying on the tables are squashed by their transform; their outlines keep the drawn width. */
.u14ws-scene :is(.cloth, .marker, .seam, .flat) { vector-effect: non-scaling-stroke; }
.u14ws-scene .hit { fill: transparent; cursor: pointer; }
@media (hover: hover) {
  .u14ws-scene .hit:hover { fill: rgba(32, 32, 30, .035); }
}

/* Track */
.u14ws-track { position: relative; height: 100px; }
.u14ws-line { position: absolute; top: 19px; height: 2px; background: #dededb; }
.u14ws-line span { display: block; width: 100%; height: 100%; background: #d21116; transform: scaleX(0); transform-origin: 0 50%; }
.u14ws-track ol { margin: 0; padding: 0; list-style: none; }
.u14ws-track li { position: absolute; top: 0; width: 16%; transform: translateX(-50%); }
.u14ws-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 4px 8px;
  border: 0;
  background: none;
  text-align: center;
  cursor: pointer;
}
.u14ws-mark {
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 2px solid #c9c9c4;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.u14ws-name { color: #565653; font-size: 15px; line-height: 1.35; transition: color .2s; }
.u14ws-num { color: #686868; }
.u14ws-dot.done .u14ws-mark { border-color: #d21116; background: #d21116; }
.u14ws-dot.now .u14ws-mark { border-color: #d21116; box-shadow: 0 0 0 5px rgba(210, 17, 22, .15); }
.u14ws-dot.now .u14ws-name, .u14ws-dot:hover .u14ws-name { color: #20201e; }
.u14ws-dot.open .u14ws-mark { border-color: #d21116; background: #d21116; transform: scale(1.2); }
.u14ws-dot.open .u14ws-name, .u14ws-dot.open .u14ws-num { color: #d21116; }
.u14ws-dot:focus-visible { outline: 3px solid #cb1517; outline-offset: 2px; border-radius: 8px; }

/* Description (.u14ws prefix: the theme resets .u14-home p, h3) */
.u14ws-info { position: relative; padding: 18px 28px 22px; border-top: 1px solid #dededb; }
.u14ws-info.open { display: flex; align-items: flex-start; gap: 28px; padding: 26px 28px 24px; }
.u14ws-info.open::before {
  content: '';
  position: absolute;
  top: -7px;
  left: var(--caret, 50%);
  width: 12px;
  height: 12px;
  border-top: 1px solid #dededb;
  border-left: 1px solid #dededb;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}
.u14ws .u14ws-hint { margin: 0; color: #686868; font-size: 14px; text-align: center; }
.u14ws-icon { flex: 0 0 176px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #ecece6; }
.u14ws-icon svg { display: block; width: 100%; height: 100%; }
.u14ws-body { flex: 1; min-width: 0; }
.u14ws-head { display: flex; align-items: flex-start; gap: 14px; }
.u14ws-head > div { flex: 1; min-width: 0; }
.u14ws-badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d21116;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.u14ws .u14ws-caption { margin: 0 0 4px; color: #686868; font-size: 12px; line-height: 1.5; }
.u14ws .u14ws-head h3 { margin: 0; font-size: 26px; line-height: 1.15; }
.u14ws-close {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d8d8d3;
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
.u14ws-close:hover { border-color: #20201e; }
.u14ws .u14ws-text { max-width: 64ch; margin: 14px 0 0; color: #686868; font-size: 16px; line-height: 1.75; }
.u14ws .u14ws-text, .u14ws .u14ws-nav { margin-left: 44px; }
.u14ws-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #dededb;
}
.u14ws-step { min-height: 44px; padding: 8px 0; border: 0; background: none; font-size: 14px; cursor: pointer; }
.u14ws-step:hover { color: #d21116; }
.u14ws-step.next { text-align: right; }
.u14ws-count { color: #686868; font-size: 13px; white-space: nowrap; }

@media (max-width: 719px) {
  .u14ws-track { height: auto; padding: 12px; }
  .u14ws-line { display: none; }
  .u14ws-track ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .u14ws-track li { position: static; width: auto; min-width: 0; transform: none; }
  .u14ws-dot { flex-direction: row; gap: 8px; min-height: 60px; height: 100%; padding: 10px 4px; border-radius: 6px; text-align: left; }
  .u14ws-mark { flex: 0 0 16px; width: 16px; height: 16px; }
  .u14ws-dot.open { background: #faf1f1; }
  .u14ws-name { font-size: 14px; overflow-wrap: normal; }
  .u14ws-num, .u14ws-info.open::before { display: none; }
  .u14ws-info, .u14ws-info.open { padding: 22px 18px 18px; }
  .u14ws-icon { display: none; }
  .u14ws .u14ws-text, .u14ws .u14ws-nav { margin-left: 0; }
  .u14ws .u14ws-head h3 { font-size: 22px; }
  .u14ws .u14ws-text { font-size: 16px; }
  .u14ws-step { flex: 1 1 0; font-size: 14px; text-align: left; }
  .u14ws-count { display: none; }
  .u14ws .u14ws-hotspot { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .u14ws-toggle { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .u14ws-hotspot.now::after { display: none; }
  .u14ws-hotspot, .u14ws-mark, .u14ws-name { transition: none; }
}
