/* ====== dm2.css：絕對值流程圖專用 ====== */

/* Y / N 文字 ----------------------------------------------------------------*/
.fc-yes {
    position: absolute;
    left: 50%;
    top: 62%;
    transform: translateX(-50%);
    font-size: 22px;
    font-weight: 600;
    color: var(--accent);
}

.fc-no {
    position: absolute;
    right: 6%;
    top: 32%;
    transform: translateY(-50%);
    font-size: 18px;
}

/* ===== 判斷菱形位置（與原 op.css 相容） ===== */
.fc-decision {
    position: absolute;
    top: 18%;
    left: 50%;
    width: 170px;
    height: 170px;
    transform: translateX(-50%) rotate(45deg);
}

/* ===== Y 分支（下方直線） ===== */
.fc-yes-line {
    position: absolute;
    left: 50%;
    top: 38%;
    width: 2px;
    height: 10%;
    transform: translateX(-50%);
    background: var(--text-main);
}

.fc-yes-line::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 6px 0 6px;
    border-style: solid;
    border-color: var(--text-main) transparent transparent transparent;
}

/* ===== 程式碼 A（x = -x） ===== */
.fc-yes-block {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translateX(-50%);
}

/* ===== A → 輸出 的長直線 ===== */
.fc-yes-line2 {
    position: absolute;
    left: 50%;
    top: 54%;
    width: 2px;
    height: 36%;
    transform: translateX(-50%);
    background: var(--text-main);
}

.fc-yes-line2::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 6px 0 6px;
    border-style: solid;
    border-color: var(--text-main) transparent transparent transparent;
}

/* ===== N 分支：水平線 ===== */
.fc-no-line-h {
    position: absolute;
    left: 62%;
    top: 30%;
    width: 22%;
    height: 2px;
    background: var(--text-main);
}

/* ===== N 分支：垂直線 ===== */
.fc-no-line-v {
    position: absolute;
    left: 84%;
    top: 30%;
    width: 2px;
    height: 38%;
    background: var(--text-main);
}

.fc-no-line-v::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 6px 0 6px;
    border-style: solid;
    border-color: var(--text-main) transparent transparent transparent;
}

/* ===== N 分支：底部回到主線的水平線 ===== */
.fc-no-line2-h {
    position: absolute;
    left: 50%;
    top: 68%;
    width: 34%;
    height: 2px;
    background: var(--text-main);
}

.fc-no-line2-h::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    border-width: 6px 8px 6px 0;
    border-style: solid;
    border-color: transparent var(--text-main) transparent transparent;
}

/* ===== 輸出方塊位置 ===== */
.bmi-node.Output {
    position: absolute;
    left: 50%;
    top: 82%;
    transform: translateX(-50%);
}
