.wbs-entry-plate { display: grid; grid-template-columns: minmax(9rem, 1fr) auto minmax(14rem, 2fr); align-items: center; gap: .7rem; padding: 1rem; background: var(--stock, #fff7df); }
.wbs-entry-branch { display: grid; justify-items: start; gap: .45rem; }
.wbs-entry-branch span, .wbs-entry-branch strong { border-inline-start: 3px solid #177073; padding: .23rem .6rem; }
.wbs-entry-branch span { margin-inline-start: .6rem; }
.wbs-entry-branch strong { margin-inline-start: 1.15rem; background: #fce89c; }
.wbs-entry-link { display: grid; justify-items: center; gap: .4rem; }
.wbs-entry-link [data-diagram-arrow] { font-size: 1.5rem; }
.wbs-entry-page { padding: .65rem 1rem; border: 2px solid var(--ink); border-radius: .7rem .7rem .7rem .15rem; background: #fffdf5; box-shadow: 3px 3px 0 #e4d7b6; }
.wbs-entry-page > div { display: flex; align-items: center; gap: .5rem; border-block-end: 1px solid #b9ac88; }
.wbs-entry-page img { width: 4rem; height: auto; }
.wbs-entry-page h4 { margin: 0; }
.wbs-entry-page h4 span { display: block; font-weight: normal; }
.wbs-entry-page dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem .75rem; margin: .65rem 0 .15rem; }
.wbs-entry-page dt { font-weight: 700; }
.wbs-entry-page dd { margin: 0; }
@media (max-width: 600px) {
  .wbs-entry-plate { grid-template-columns: 1fr; }
  .wbs-entry-link [data-diagram-arrow] { transform: rotate(90deg); }
}

.work-figure .work-root {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-inline: auto;
  padding-inline: 10px 18px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: var(--diagram-group-radius);
}
.work-figure .work-root img { display: block; width: clamp(45px, 7vw, 78px); height: auto; }
.work-figure .work-root::after {
  position: absolute;
  top: 100%;
  left: 50%;
  height: 12px;
  border-left: 3px solid var(--ink);
  content: "";
}
.work-figure .work-branches {
  --branch-gap: clamp(4px, 2vw, 22px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--branch-gap);
  margin: 12px 0 5px;
  padding: 0;
  list-style: none;
  font-size: clamp(.82rem, 1.7vw, 1rem);
}
.work-figure .work-branches::before {
  position: absolute;
  inset: 0 calc((100% - 2 * var(--branch-gap)) / 6) auto;
  border-top: 3px solid var(--ink);
  content: "";
}
.work-figure .work-branches > li { position: relative; padding-top: 10px; min-width: 0; }
.work-figure .work-branches > li::before {
  position: absolute;
  top: 0;
  left: 50%;
  height: 10px;
  border-left: 3px solid var(--ink);
  content: "";
}
.work-figure .work-branches h3 {
  display: grid;
  justify-items: center;
  align-items: end;
  padding: 3px;
  font-size: 1.05em;
}
.work-figure .work-branches h3 img { display: block; width: min(92%, clamp(43px, 10vw, 126px)); height: auto; }
.work-figure .work-branches .diagram-group { min-height: 100%; padding: 3px 6px 7px; background: var(--mint); }
.work-figure .work-branches li:nth-child(2) .diagram-group { background: var(--cyan); }
.work-figure .work-branches li:nth-child(3) .diagram-group { background: var(--pink); }
.work-figure .work-branches ul { list-style: none; width: fit-content; padding: 0 2px; margin: 0 auto; }
.work-figure .work-branches ul li { padding: 3px 0; line-height: 1.4; }
.work-figure .work-reading { font-size: .86rem; }
.work-figure .work-sequence { margin-top: 16px; padding: 9px 0 0; border-top: 2px solid var(--ink); }
.work-figure .work-sequence h3 { font-size: .9rem; }
.work-figure .work-sequence p {
  display: grid;
  grid-template-columns: auto clamp(28px, 7vw, 65px) auto;
  gap: 8px;
  align-items: center;
  width: fit-content;
  margin: 6px 0;
  font-weight: 750;
  font-size: .9rem;
}
.work-figure .work-sequence span { display: inline-block; padding: 3px 5px; background: var(--yellow); }

.work-order-comparison { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1rem; }
.work-order-comparison section { min-width: 0; padding: .65rem; border: 1px solid var(--diagram-rule); border-radius: .55rem; background: var(--stock); text-align: center; }
.work-order-comparison h4 { margin: 0 0 .75rem; }
.work-order-tree ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; list-style: none; margin: .35rem 0 0; padding: .4rem 0 0; }
.work-order-tree li { position: relative; padding: .25rem; background: var(--diagram-green); }
.work-order-tree li::before { content: ""; position: absolute; inset: -.42rem auto 100% 50%; border-left: 2px solid var(--teal); }
.work-order-tree ul { border-top: 2px solid var(--teal); }
.work-order-arrows { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: .4rem; }
.work-order-arrows b { padding: .2rem .4rem; border: 2px solid var(--ink); border-radius: 1rem; background: var(--yellow); }
.work-order-arrows span { display: grid; gap: .35rem; font-weight: 750; color: var(--teal); }
.work-order-arrows [data-diagram-arrow] { width: min(100%, 6rem); height: .75rem; background: var(--teal); clip-path: polygon(0% 42%, 87% 42%, 87% 0%, 100% 50%, 87% 100%, 87% 58%, 0% 58%); margin-inline: auto; }
.work-order-arrows [data-diagram-arrow]::before, .work-order-arrows [data-diagram-arrow]::after { content: none; }
@media (max-width: 750px) {
  .work-order-comparison { grid-template-columns: 1fr; }
}

.operations-figure .operations-route {
  --route-gap: clamp(5px, 1.7vw, 18px);
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  padding: 0;
  gap: var(--route-gap);
  list-style: none;
  text-align: center;
}
.operations-figure .operations-route li {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 4px 1px;
  min-width: 0;
}
.operations-figure .operations-route li:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  left: calc(100% + var(--route-gap) / 2);
  top: clamp(27px, 5vw, 65px);
  width: clamp(14px, 2.6vw, 34px);
  height: 17px;
  translate: -50% -50%;
  background: var(--ink);
  clip-path: var(--step-arrow);
  content: "";
}
.operations-figure .operations-route img { display: block; width: clamp(46px, 13vw, 152px); max-width: 100%; height: auto; }
.operations-figure .operations-route b { font-size: clamp(.82rem, 1.76vw, 1.16rem); }
.operations-figure .operations-route li span { font-size: clamp(.73rem, 1.5vw, .96rem); line-height: 1.35; }
.operations-figure .iot-route li:nth-child(3) { --diagram-label-fill: var(--mint); }
.operations-figure .iot-route .diagram-label { margin-block-start: .3em; font-size: .86rem; }

.study-figure:is(.water-control-figure, .handover-figure, .satellite-figure) {
  --water-ink: #222625;
  --water-yellow: #ffdb43;
  --water-pink: #f69dbd;
  --water-mint: #97e9b6;
  color: var(--water-ink);
  padding: clamp(15px, 2.5vw, 30px);
}
.lesson-figure-details .water-control-figure .figure-heading { margin-bottom: 21px; }
.water-control-figure .water-control-route {
  --signal-gap: clamp(47px, 5.6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .91fr) minmax(0, 1.42fr);
  gap: var(--signal-gap);
  padding: 0;
  list-style: none;
}
.water-control-route > li {
  position: relative;
  display: grid;
  grid-template-rows: auto 166px auto;
  align-items: start;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  text-align: center;
}
.water-control-route h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.35;
}
.water-control-route h4 span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  background: var(--water-yellow);
  border: 2px solid var(--water-ink);
  border-radius: 49% 43% 45% 52%;
  font-size: .9rem;
}
.water-control-route li:nth-child(2) h4 span { background: var(--water-mint); }
.water-control-route li:nth-child(3) h4 span { background: var(--water-pink); }
.water-control-visual {
  width: 100%;
  height: 166px;
  display: grid;
  align-items: center;
  justify-items: center;
}
.water-control-art { position: relative; width: 100%; }
.water-control-tank { max-width: 235px; }
.water-control-controller { max-width: 202px; container-type: inline-size; }
.water-control-visual img { display: block; width: 100%; height: auto; }
.water-control-tank b {
  position: absolute;
  top: 67%;
  left: 54.5%;
  translate: -50% -50%;
  font-size: clamp(1.1rem, 1.85vw, 1.52rem);
  line-height: 1;
}
.water-control-controller > div {
  position: absolute;
  top: 42.6%;
  left: 46.5%;
  translate: -50% -50%;
  display: grid;
  line-height: 1.23;
  font-size: clamp(.7rem, 7.8cqw, 1rem);
  white-space: nowrap;
}
.water-control-controller small { font-size: .81em; font-weight: 700; }
.water-control-valves {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  max-width: 278px;
  padding-bottom: 9px;
}
.water-control-valves > div { display: grid; justify-items: center; }
.water-control-valves > div b {
  padding-inline: 12px;
  background: #fffdf6;
  border: 1.5px solid var(--water-ink);
  border-radius: 8px 6px 7px 6px;
  line-height: 1.45;
}
.water-control-valves > div:last-child b { background: var(--water-mint); }
.water-control-route p { font-size: .94rem; font-weight: 670; line-height: 1.45; }
.water-control-signal {
  position: absolute;
  top: 86px;
  right: calc(100% - 4px);
  width: calc(var(--signal-gap) + 12px);
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: .86rem;
  line-height: 1.25;
  white-space: nowrap;
}
.water-control-signal i,
.water-control-arrow {
  position: relative;
  display: block;
  width: 100%;
  height: 9px;
  margin: 0;
  border-bottom: 4px solid var(--water-ink);
  border-radius: 0 0 42% 32%;
}
.water-control-signal i::after,
.water-control-arrow::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border: solid var(--water-ink);
  border-width: 4px 4px 0 0;
  border-radius: 2px;
  rotate: 45deg;
}
.water-control-arrow { translate: 0 10px; }
.water-control-arrow::after { width: 7px; height: 7px; top: 1px; }
@media (max-width: 810px) {
  .water-control-figure .water-control-route { grid-template-columns: 1fr; gap: 53px; }
  .water-control-signal {
    top: -36px;
    right: auto;
    width: auto;
    grid-template-columns: auto 26px;
    align-items: center;
    gap: 9px;
  }
  .water-control-signal i { rotate: 90deg; }
}
.operations-figure .iot-observations { margin-top: 16px; padding-top: 7px; border-top: 2px solid var(--ink); }
.operations-figure .iot-rule { padding: 5px 7px; font-size: .9375rem; }
.operations-figure .iot-rule b { box-shadow: inset 0 -.45em var(--yellow); }
.operations-figure .iot-time {
  display: grid;
  grid-template-columns: .8fr .8fr minmax(20px,1fr) 1.2fr;
  align-items: center;
  gap: clamp(4px, 1vw, 12px);
  padding: 5px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .9rem;
}
.operations-figure .iot-hot span { justify-self: center; padding-inline: .5em; background: var(--mint); }
.operations-figure .iot-hot b { text-decoration: underline .17em var(--yellow); text-underline-offset: .13em; }
.operations-figure .iot-hot .flow-arrow { color: var(--wine); }
.operations-figure .iot-time b { font-size: clamp(1.1rem, 2.8vw, 1.6rem); font-variant-numeric: tabular-nums; }
.operations-figure .iot-time span { font-weight: 700; }
.operations-figure .supply-direction,
.operations-figure .supply-return h3 { font-size: .85rem; color: var(--teal); margin-bottom: 4px; }
.operations-figure .supply-return { margin-top: 7px; padding-block: 5px; border-block: 1px dashed var(--wine); }
.operations-figure .supply-return h3 { color: var(--wine); }
.operations-figure .supply-return ol {
  display: grid;
  direction: rtl;
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin: 0 37.5% 0 12.5%;
  padding: 0;
  text-align: center;
  list-style: none;
}
.operations-figure .supply-return li { direction: ltr; padding: 0 3px 5px; font-size: clamp(.72rem, 1.4vw, .9rem); line-height: 1.3; }
.operations-figure .supply-return .flow-arrow { color: var(--wine); transform: scaleX(-1); margin-top: 4px; }
.operations-figure .supply-plan { margin-top: 12px; padding: 6px 0 0; }
.operations-figure .supply-plan-heading { display: flex; gap: 7px; align-items: center; }
.operations-figure .supply-plan-heading img { flex: 0 0 auto; width: clamp(45px, 7vw, 81px); height: auto; }
.operations-figure .supply-plan-heading h3 { font-size: clamp(.96rem, 2vw, 1.22rem); }
.operations-figure .supply-plan-heading p { font-size: .87rem; }
.operations-figure .supply-plan-heading p span { white-space: nowrap; }
.operations-figure .supply-bars { margin-top: 6px; }
.operations-figure .supply-demand { padding: 1px 5px; border: 2px solid var(--ink); border-radius: 9px 13px 0 0; text-align: center; font-size: .95rem; }
.operations-figure .supply-quantity { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,10fr); }
.operations-figure .supply-quantity span { padding: 5px 2px; background: var(--mint); border: 2px solid var(--ink); border-top: 0; text-align: center; font-size: clamp(.8rem, 1.8vw, .95rem); }
.operations-figure .supply-quantity span + span { background: var(--yellow); border-left: 0; }
.jit-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(10px, 4vw, 40px) minmax(0, 1fr) clamp(10px, 4vw, 40px) minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  max-width: 42rem;
  margin-inline: auto;
}
.jit-route div { display: grid; justify-items: center; align-self: stretch; align-content: end; text-align: center; line-height: 1.4; font-size: .875rem; }
.jit-route img { width: clamp(45px, 10vw, 95px); height: auto; }
.jit-route b { color: var(--teal); font-variant-numeric: tabular-nums; }
