/* About-page work graph */

.intro-graph {
    width: min(100%, 1100px);
    margin: 0;
    padding-top: 20px;
    overflow-x: auto;
    overflow-y: hidden;
}

#about-work-graph {
    width: 100%;
    min-width: 900px;
    height: auto;
    color: #000;
    background: #fff;
}

.index-graph-guide {
    fill: none;
    stroke: rgb(0 0 0 / 28%);
    stroke-width: 1;
    stroke-dasharray: 1 7;
    stroke-linecap: round;
}

.index-graph-link {
    fill: none;
    stroke: #000;
    stroke-width: 1.1;
    opacity: 0.52;
    transition: opacity 160ms ease, stroke-width 160ms ease;
}

.index-graph-links.has-active .index-graph-link {
    opacity: 0.06;
}

.index-graph-links.has-active .index-graph-link.active {
    stroke-width: 2.2;
    opacity: 1;
}

.index-graph-node {
    fill: #fff;
    stroke: #000;
    stroke-width: 1.2;
}

.index-graph-node.root,
.index-graph-node.active {
    fill: #000;
}

.index-graph-branch,
.index-graph-label,
.index-graph-center {
    fill: #000;
    font-family: "Inclusive Sans", "Pretendard", sans-serif;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0;
}

.index-graph-branch {
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 5px;
    stroke-linejoin: round;
}

.index-graph-label {
    cursor: pointer;
}

.index-graph-label.active {
    fill: #00bfd8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 769px) {
    .about {
        display: grid;
        grid-template-columns: minmax(280px, 0.32fr) minmax(0, 0.68fr);
        column-gap: 18px;
        align-items: start;
    }

    .intro {
        grid-column: 1;
        max-width: 100%;
    }

    .intro-graph {
        grid-column: 2;
        justify-self: end;
        width: min(68vw, calc(100svh - 98px));
        max-width: none;
        padding-top: 0;
        overflow: visible;
    }

    #about-work-graph {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .intro-graph {
        width: 100%;
        max-width: none;
        margin-left: auto;
        padding-top: 10px;
        overflow-x: hidden;
    }

    #about-work-graph {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .index-graph-link {
        transition: none;
    }
}
