@charset "utf-8";

/*
 * 원광학원 건학정신 - 그누보드 content skin
 * Font: Noto Sans KR / Noto Sans
 */

.wk-school-plan {
    --wk-text: #66645f;
    --wk-title: #4f4e4a;
    --wk-line: #b7b7b4;
    --wk-dashed: #cacac7;
    --wk-bg-soft: #fafafa;
    --wk-cream: #fff4cf;
    --wk-gray: #eeeeee;
    --wk-purple: #f3eaff;
    --wk-purple-line: #e9a2e3;
    --wk-pink: #fff0f0;
    --wk-pink-line: #e8a9a9;
    --wk-blue: #eef8ff;
    --wk-blue-line: #9fcfe4;
    --wk-yellow: #ffffbd;
    --wk-green: #f0ffe9;
    --wk-green-line: #b9dfb5;
    --wk-cyan: #eafcff;
    --wk-cyan-line: #94d7df;

    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 42px 20px 90px;
    color: var(--wk-text);

    font-family:
        "Noto Sans KR",
        "Noto Sans",
        "Noto Sans CJK KR",
        sans-serif;

    font-size: 17px;
    line-height: 1.8;
    word-break: keep-all;
}

.wk-school-plan *,
.wk-school-plan *::before,
.wk-school-plan *::after {
    box-sizing: border-box;
}

.wk-school-plan p,
.wk-school-plan ul,
.wk-school-plan ol,
.wk-school-plan h2,
.wk-school-plan h3 {
    margin-top: 0;
}

/* 공통 */
.wk-content-section {
    width: min(100%, 920px);
    margin-right: auto;
    margin-left: auto;
}

.wk-section-title {
    margin: 0 0 24px;
    color: var(--wk-title);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
}

/* 상단 액자 */
.wk-frame-section {
    padding: 20px 0 105px;
}

.wk-frame {
    position: relative;
    width: min(100%, 460px);
    margin: 0 auto;
}

.wk-frame__image {
    display: block;
    width: 100%;
    height: auto;
}

.wk-frame__content {
    position: absolute;
    inset: 22% 19% 21%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;

    color: #5a5956;
    text-align: center;

    font-family:
        "Noto Sans KR",
        "Noto Sans",
        "Noto Sans CJK KR",
        sans-serif;
}

.wk-frame__title {
    margin: 0;
    color: #555450;
    font-size: clamp(22px, 2.55vw, 30px);
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.wk-frame__rule {
    display: block;
    width: 87%;
    height: 1px;
    margin: 18px auto 15px;
    background: rgba(95, 95, 92, 0.25);
}

.wk-frame__copy {
    font-size: clamp(15px, 1.85vw, 20px);
    font-weight: 400;
    line-height: 1.72;
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.wk-frame__copy p {
    margin: 0;
}

/* (1) 계획의 기본정신 */
.wk-basic {
    margin-bottom: 60px;
}

.wk-basic-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: wk-basic;
    font-size: 16px;
}

.wk-basic-list li {
    counter-increment: wk-basic;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 9px 0;
}

.wk-basic-list li::before {
    content: counter(wk-basic, circled-decimal);
    flex: 0 0 auto;
    color: #6c6a65;
}

/* (2) 건학정신 실천도해 */
.wk-strategy {
    margin-bottom: 105px;
}

.wk-strategy-map {
    position: relative;
    width: min(100%, 900px);
    min-height: 1540px;
    margin: 40px auto 0;
    padding-top: 8px;
}

.wk-loop-line {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.wk-loop-line path {
    fill: none;
    stroke: var(--wk-dashed);
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-dasharray: 5 8;
    vector-effect: non-scaling-stroke;
}

.wk-pill {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: min(100%, 360px);
    min-height: 78px;
    margin-right: auto;
    margin-left: auto;
    padding: 15px 30px;

    border: 1px solid transparent;
    border-radius: 999px;

    text-align: center;
    line-height: 1.55;
}

.wk-pill strong {
    display: block;
    color: #5a5955;
    font-size: 18px;
    font-weight: 700;
}

.wk-pill span {
    display: block;
    margin-top: 2px;
    color: #77746d;
    font-size: 14px;
    font-weight: 400;
}

.wk-pill--cream {
    background: var(--wk-cream);
}

.wk-pill--gray {
    background: var(--wk-gray);
}

.wk-pill--purple {
    border-color: var(--wk-purple-line);
    background: var(--wk-purple);
}

.wk-pill--green {
    border-color: var(--wk-green-line);
    background: var(--wk-green);
}

.wk-pill--white {
    border-color: #aaa9a6;
    background: #fff;
}

.wk-pill--cyan {
    border-color: var(--wk-cyan-line);
    background: var(--wk-cyan);
}

.wk-pill--top {
    margin-bottom: 20px;
}

.wk-pill--human {
    margin-bottom: 34px;
}

.wk-diagram {
    position: relative;
    z-index: 1;

    width: 100%;
    min-height: 1125px;
    padding: 48px 36px 42px;

    border-radius: 72px;
    background: var(--wk-bg-soft);
}

.wk-pill--major {
    min-height: 70px;
    margin-bottom: 30px;
}

.wk-grid {
    position: relative;
    z-index: 3;
    display: grid;
    overflow: visible;
}

.wk-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 115px;
}

.wk-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}


.wk-grid-block {
    position: relative;
    overflow: visible;
}

.wk-grid-block--science {
    margin-bottom: 24px;
}

.wk-grid-block--character {
    margin-bottom: 28px;
}

.wk-grid-connector {
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
}

.wk-grid-connector--top {
    top: 0;
    height: 34px;
    z-index: 2;
}

.wk-grid-connector--top::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    border-top: 2px solid #b8b3ad;
}

.wk-grid-connector--top::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    height: 24px;
    border-left: 2px solid #b8b3ad;
    transform: translateX(-50%);
}

.wk-grid-connector--bottom {
    bottom: -2px;
    height: 40px;
    z-index: 2;
}

.wk-grid-connector__curve {
    position: absolute;
    top: 0;
    width: 39%;
    height: 34px;
    border-bottom: 2px solid #b8b3ad;
}

.wk-grid-connector__curve--left {
    left: 5%;
    border-left: 2px solid #b8b3ad;
    border-bottom-left-radius: 28px;
}

.wk-grid-connector__curve--right {
    right: 5%;
    border-right: 2px solid #b8b3ad;
    border-bottom-right-radius: 28px;
}

.wk-grid-connector--bottom3 .wk-grid-connector__curve {
    width: 31%;
}


.wk-grid--2::before,
.wk-grid--3::before,
.wk-grid--2::after,
.wk-grid--3::after {
    display: none;
}

.wk-card {
    position: relative;
    min-width: 0;
    padding-top: 1px;
}

.wk-card::before,
.wk-card::after {
    content: "";
    position: absolute;
    top: 19px;
    width: 13px;
    height: 13px;
    border: 1.5px solid #a6a19b;
    border-radius: 50%;
    background: #fff;
    z-index: 4;
}

.wk-card::before {
    left: -6px;
}

.wk-card::after {
    right: -6px;
}

.wk-card__head {
    position: relative;
    z-index: 2;

    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 16px;

    border: 1.5px solid var(--wk-line);
    border-radius: 999px;
    background: #fff;

    color: #5b5955;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
}

.wk-card__body {
    position: relative;

    min-height: 222px;
    margin-top: -1px;
    padding: 28px 18px 22px;

    border-right: 1.5px solid var(--wk-line);
    border-bottom: 1.5px solid var(--wk-line);
    border-left: 1.5px solid var(--wk-line);
    border-radius: 0 0 36px 36px;
}

.wk-card__body::before,
.wk-card__body::after {
    content: "";
    position: absolute;
    bottom: -6px;

    width: 13px;
    height: 13px;

    border: 1.5px solid #a6a19b;
    border-radius: 50%;
    background: #fff;
}

.wk-card__body::before {
    left: -6px;
}

.wk-card__body::after {
    right: -6px;
}

.wk-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.wk-card li {
    margin: 7px 0;
    color: #6d6b66;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.62;
}

.wk-card--pink .wk-card__head {
    border-color: var(--wk-pink-line);
    background: var(--wk-pink);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.85);
}

.wk-card--blue .wk-card__head {
    border-color: var(--wk-blue-line);
    background: var(--wk-blue);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.85);
}

.wk-card--yellow .wk-card__head {
    border-color: #d1d1a9;
    background: var(--wk-yellow);
}

.wk-chevron {
    position: relative;
    width: 40px;
    height: 29px;
    margin: 24px auto 25px;
}

.wk-chevron::before,
.wk-chevron::after {
    content: "";
    position: absolute;
    left: 50%;

    width: 26px;
    height: 26px;

    border-right: 3px solid #d1d1cd;
    border-bottom: 3px solid #d1d1cd;

    transform: translateX(-50%) rotate(45deg);
}

.wk-chevron::before {
    top: -10px;
}

.wk-chevron::after {
    top: 1px;
}

.wk-pill--result {
    min-height: 70px;
    margin-bottom: 26px;
}

.wk-pill--knowledge {
    min-height: 69px;
    margin-bottom: 72px;
}

.wk-pill--ethics {
    margin-bottom: 12px;
}

.wk-character-grid {
    margin-bottom: 28px;
}

.wk-character-grid .wk-card__body {
    min-height: 180px;
    padding-top: 25px;
}

.wk-pill--activity {
    min-height: 102px;
    margin-bottom: 25px;
}

.wk-pill--activity strong {
    font-size: 19px;
}

.wk-pill--activity span {
    font-size: 13px;
}

.wk-pill--gratitude {
    min-height: 72px;
    margin-bottom: 25px;
}

.wk-pill--mind {
    min-height: 68px;
}

.wk-pill--practice {
    min-height: 74px;
    margin-top: 32px;
    margin-bottom: 62px;
}

.wk-pill--final {
    min-height: 74px;
}

/* (3) 학교운영 방향 */
.wk-direction {
    padding-top: 12px;
}

.wk-direction-list {
    margin-top: 10px;
}

.wk-direction-item + .wk-direction-item {
    margin-top: 42px;
}

.wk-direction-item h3 {
    position: relative;
    margin: 0 0 12px;
    padding-left: 22px;

    color: #69665f;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.55;
}

.wk-direction-item h3::before {
    content: "";
    position: absolute;
    top: 0.3em;
    left: 0;

    width: 14px;
    height: 14px;

    border: 2px solid #d7b73e;
    border-radius: 50%;
    background: #fff;
}

.wk-direction-item p {
    margin: 0;
    color: #77746e;
    font-size: 15px;
    font-weight: 400;
    line-height: 2.05;
}

/* 태블릿 */
@media (max-width: 820px) {
    .wk-school-plan {
        padding-right: 16px;
        padding-left: 16px;
    }

    .wk-strategy-map {
        min-height: auto;
    }

    .wk-loop-line {
        display: none;
    }

    .wk-diagram {
        min-height: auto;
        padding: 42px 24px;
        border-radius: 50px;
    }

    .wk-grid--2 {
        gap: 34px;
    }

    .wk-grid--3 {
        gap: 14px;
    }

    .wk-card li {
        font-size: 14px;
    }
}

/* 모바일 */
@media (max-width: 680px) {
    .wk-school-plan {
        padding: 28px 10px 70px;
        word-break: normal;
    }

    .wk-frame-section {
        padding-bottom: 65px;
    }

    .wk-frame {
        width: min(100%, 410px);
    }

    .wk-frame__content {
        inset: 21% 18% 20%;
    }

    .wk-frame__title {
        font-size: clamp(17px, 5vw, 22px);
    }

    .wk-frame__rule {
        margin: 13px auto 11px;
    }

    .wk-frame__copy {
        font-size: clamp(12px, 3.8vw, 15px);
        line-height: 1.65;
    }

    .wk-section-title {
        font-size: 17px;
    }

    .wk-basic {
        margin-bottom: 50px;
    }

    .wk-basic-list {
        font-size: 15px;
    }

    .wk-strategy {
        margin-bottom: 78px;
    }

    .wk-strategy-map {
        margin-top: 28px;
    }

    .wk-pill {
        width: min(100%, 330px);
        min-height: 68px;
        padding: 13px 20px;
    }

    .wk-pill strong {
        font-size: 16px;
    }

    .wk-pill span {
        font-size: 13px;
    }

    .wk-diagram {
        margin-top: 26px;
        padding: 34px 16px 38px;
        border-radius: 38px;
    }

    .wk-grid--2,
    .wk-grid--3 {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .wk-grid {
        width: min(100%, 390px);
        margin-right: auto;
        margin-left: auto;
    }

    .wk-grid--2::before,
    .wk-grid--2::after,
    .wk-grid--3::before,
    .wk-grid--3::after {
        display: none;
    }

    .wk-grid-connector {
        display: none;
    }

    .wk-card::before,
    .wk-card::after {
        width: 13px;
        height: 13px;
        top: 19px;
    }

    .wk-card__body,
    .wk-character-grid .wk-card__body {
        min-height: auto;
        padding: 24px 16px 28px;
    }

    .wk-card li {
        font-size: 13px;
    }

    .wk-pill--knowledge {
        margin-bottom: 52px;
    }

    .wk-pill--practice {
        margin-bottom: 48px;
    }

    .wk-direction-item + .wk-direction-item {
        margin-top: 34px;
    }

    .wk-direction-item p {
        font-size: 14px;
        line-height: 1.9;
    }
}

@media (max-width: 420px) {
    .wk-frame__content {
        inset: 21% 17% 20%;
    }

    .wk-frame__title {
        font-size: 17px;
    }

    .wk-frame__copy {
        font-size: 12px;
        letter-spacing: -0.06em;
    }
}


/* v1.7: inline SVG connector refinement */
.wk-grid-connector {
    display: none !important;
}

.wk-grid--2::before,
.wk-grid--2::after,
.wk-grid--3::before,
.wk-grid--3::after {
    display: none !important;
}

.wk-grid-block {
    position: relative;
}

.wk-flow-svg {
    width: 100%;
    overflow: visible;
}

.wk-flow-svg svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.wk-flow-svg line,
.wk-flow-svg path {
    fill: none;
    stroke: #b8b3ad;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.wk-flow-svg circle {
    fill: #fff;
    stroke: #b8b3ad;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.wk-flow-svg--science-top {
    height: 34px;
    margin: 0 auto -4px;
}

.wk-flow-svg--science-bottom {
    height: 58px;
    margin: -2px auto 6px;
}

.wk-flow-svg--character-top {
    height: 34px;
    margin: 0 auto -4px;
}

.wk-flow-svg--character-bottom {
    height: 60px;
    margin: -2px auto 12px;
}

.wk-grid--2 {
    gap: 105px;
}

.wk-grid--3 {
    gap: 14px;
}

.wk-card::before,
.wk-card::after {
    display: none;
}

.wk-card__body::before,
.wk-card__body::after {
    width: 10px;
    height: 10px;
    border: 1.8px solid #a6a19b;
}

.wk-card__body::before {
    left: -5px;
}

.wk-card__body::after {
    right: -5px;
}

@media (max-width: 680px) {
    .wk-flow-svg {
        display: none !important;
    }

    .wk-grid--2,
    .wk-grid--3 {
        gap: 34px;
    }

    .wk-card__body::before,
    .wk-card__body::after {
        width: 12px;
        height: 12px;
    }
}


/* =========================================================
   v1.8 - connector / z-index correction
   ========================================================= */

.wk-diagram {
    isolation: isolate;
    overflow: visible;
}

.wk-grid-block {
    position: relative;
    isolation: isolate;
    overflow: visible;
    z-index: 4;
}

.wk-grid {
    position: relative;
    z-index: 3;
    overflow: visible;
}

.wk-card {
    position: relative;
    z-index: 3;
    overflow: visible;
}

.wk-card__head {
    position: relative;
    z-index: 6;
}

.wk-card__body {
    position: relative;
    z-index: 3;
}

/*
 * 연결선은 카드보다 높은 레이어에 둡니다.
 * 대신 선 좌표를 카드의 빈 공간/접점에만 배치하여
 * 텍스트를 가리지 않도록 합니다.
 */
.wk-flow-svg {
    position: relative;
    z-index: 8;
    pointer-events: none;
    overflow: visible;
}

.wk-flow-svg svg {
    position: relative;
    z-index: 8;
    overflow: visible;
}

/* 과학교육: 선의 y=30 지점이 카드 header 중앙에 걸리도록 겹침 */
.wk-flow-svg--science-top {
    height: 34px;
    margin: 0 auto -33px;
}

/* 카드 하단 외곽 접점과 곡선이 직접 이어지도록 겹침 */
.wk-flow-svg--science-bottom {
    height: 62px;
    margin: -8px auto 8px;
}

/* 도학교육도 동일한 방식 */
.wk-flow-svg--character-top {
    height: 34px;
    margin: 0 auto -33px;
}

.wk-flow-svg--character-bottom {
    height: 64px;
    margin: -8px auto 12px;
}

/* SVG 선을 더 분명하게 */
.wk-flow-svg line,
.wk-flow-svg path {
    stroke: #9f9b96 !important;
    stroke-width: 2.4 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.wk-flow-svg circle {
    fill: #fff !important;
    stroke: #9f9b96 !important;
    stroke-width: 2 !important;
    vector-effect: non-scaling-stroke;
}

/*
 * 기존 body 가상 원은 SVG 접점과 중복되므로 제거.
 * 중복된 원 때문에 선이 끊어진 것처럼 보이는 현상 방지.
 */
.wk-card__body::before,
.wk-card__body::after {
    display: none !important;
}

/*
 * SVG가 header 위에 올라오더라도 텍스트는 항상 최상단.
 */
.wk-card__head,
.wk-card__head * {
    position: relative;
    z-index: 12;
}

/* header 배경은 선보다 아래쪽 */
.wk-card__head {
    isolation: isolate;
}

/*
 * 가운데 pill과 화살표는 connector와 서로 침범하지 않도록
 * 별도 레이어 부여.
 */
.wk-pill,
.wk-chevron {
    position: relative;
    z-index: 10;
}

@media (max-width: 680px) {
    .wk-flow-svg {
        display: none !important;
    }

    .wk-card__body::before,
    .wk-card__body::after {
        display: block !important;
    }
}


/* =========================================================
   v1.9 - simplified diagram connections
   원본을 억지로 선으로 복제하지 않고 카드 자체의 외곽선과
   중앙 화살표만으로 흐름을 읽기 쉽게 정리
   ========================================================= */

/* 이전 SVG connector는 전부 사용하지 않음 */
.wk-flow-svg,
.wk-grid-connector {
    display: none !important;
}

/* 카드 묶음은 별도 stacking context만 유지 */
.wk-grid-block {
    position: relative;
    isolation: isolate;
    overflow: visible;
    z-index: 4;
}

/* 제목 pill / 화살표 / 카드 순서가 안정적으로 보이게 정리 */
.wk-pill--major {
    position: relative;
    z-index: 8;
}

.wk-grid {
    position: relative;
    z-index: 4;
    overflow: visible;
}

.wk-card {
    position: relative;
    z-index: 4;
    overflow: visible;
}

/* 제목 바로 아래, 카드 사이 공간에 들어가는 화살표 */
.wk-chevron--between {
    position: relative;
    z-index: 7;
    width: 38px;
    height: 28px;
    margin: -20px auto -3px;
    pointer-events: none;
}

/* 카드 제목 영역 */
.wk-card__head {
    position: relative;
    z-index: 6;
    min-height: 52px;
    padding: 11px 18px;
    font-size: 17px;
    line-height: 1.65;
}

/* 카드 본문은 하나의 연속된 선처럼 보이도록 */
.wk-card__body {
    position: relative;
    z-index: 3;
    margin-top: -1px;
    border-right-width: 1.4px;
    border-bottom-width: 1.4px;
    border-left-width: 1.4px;
    border-radius: 0 0 32px 32px;
}

/* 이전에 겹쳐 보이던 모든 원형 접점 제거 */
.wk-card::before,
.wk-card::after,
.wk-card__body::before,
.wk-card__body::after {
    display: none !important;
}

/*
 * 필요한 원형 접점만 외곽 하단에 표시.
 * 복잡한 중앙 연결점은 없애고 시작/끝의 느낌만 남김.
 */
.wk-grid--2 .wk-card:first-child .wk-card__body::before,
.wk-grid--3 .wk-card:first-child .wk-card__body::before {
    content: "";
    display: block !important;
    position: absolute;
    left: -6px;
    bottom: -6px;
    width: 11px;
    height: 11px;
    border: 1.5px solid #a7a39e;
    border-radius: 50%;
    background: #fff;
}

.wk-grid--2 .wk-card:last-child .wk-card__body::after,
.wk-grid--3 .wk-card:last-child .wk-card__body::after {
    content: "";
    display: block !important;
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 11px;
    height: 11px;
    border: 1.5px solid #a7a39e;
    border-radius: 50%;
    background: #fff;
}

/* 2열/3열 간격을 원본에 가까운 안정적인 비율로 */
.wk-grid--2 {
    gap: 105px;
}

.wk-grid--3 {
    gap: 18px;
}

/* 과학교육 카드 아래에서 결과값으로 내려가는 화살표 */
.wk-grid-block--science + .wk-chevron {
    margin-top: 16px;
    margin-bottom: 26px;
}

/* 도학교육은 제목 아래 화살표와 카드 사이 간격을 조금 확보 */
.wk-pill--ethics + .wk-chevron {
    margin-top: 6px;
    margin-bottom: 24px;
}

/* 카드 그룹 사이 세로 여백 조정 */
.wk-grid-block--science {
    margin-bottom: 0;
}

.wk-grid-block--character {
    margin-bottom: 28px;
}

/* 연결선보다 중요한 것은 가독성이므로 텍스트를 조금 확대 */
.wk-card li {
    font-size: 14px;
    line-height: 1.68;
}

.wk-pill strong {
    font-size: 18px;
}

.wk-pill span {
    font-size: 14px;
}

/* 과도하게 연한 선을 조금 더 또렷하게 */
.wk-card__head {
    border-width: 1.4px;
}

.wk-card__body {
    border-color: #aaa7a2;
}

/* 학교운영 방향 머리글 원형 기호 */
.wk-direction-item h3::before {
    width: 15px;
    height: 15px;
    border-width: 2px;
}

/* 모바일에서는 더욱 단순한 카드형으로 */
@media (max-width: 680px) {
    .wk-chevron--between {
        margin: -12px auto 8px;
    }

    .wk-grid--2,
    .wk-grid--3 {
        gap: 34px;
    }

    .wk-grid--2 .wk-card:first-child .wk-card__body::before,
    .wk-grid--3 .wk-card:first-child .wk-card__body::before,
    .wk-grid--2 .wk-card:last-child .wk-card__body::after,
    .wk-grid--3 .wk-card:last-child .wk-card__body::after {
        width: 10px;
        height: 10px;
    }

    .wk-card li {
        font-size: 14px;
    }
}


/* =========================================================
   v1.11 - wk-loop-line / left gutter / dynamic branches
   ========================================================= */

.wk-strategy-map {
    --wk-loop-gutter: 74px;
    position: relative;
    isolation: isolate;
    overflow: visible;
}

/*
 * 왼쪽 점선이 실제로 보일 수 있는 전용 공간을 확보합니다.
 * diagram 전체 폭을 줄이고 오른쪽으로 이동시킵니다.
 */
.wk-diagram {
    position: relative;
    z-index: 1 !important;
    width: calc(100% - var(--wk-loop-gutter)) !important;
    margin-left: var(--wk-loop-gutter);
    overflow: visible;
}

/*
 * diagram이 오른쪽으로 이동한 만큼
 * diagram 바깥의 상/하단 pill도 같은 중심선에 맞춥니다.
 */
.wk-pill--top,
.wk-pill--human,
.wk-pill--practice,
.wk-pill--final {
    transform: translateX(calc(var(--wk-loop-gutter) / 2));
}

/*
 * 순환선은 diagram의 배경 위, 실제 콘텐츠 아래 레이어.
 * 따라서 회색 배경에 가려지지 않으면서 카드/텍스트를 덮지 않습니다.
 */
.wk-loop-line {
    position: absolute;
    z-index: 3 !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.wk-loop-path {
    fill: none;
    stroke: #c8c8c5;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 5 7;
    vector-effect: non-scaling-stroke;
}

/* diagram 내부 실제 콘텐츠는 loop보다 위 */
.wk-diagram > .wk-pill,
.wk-diagram > .wk-grid-block,
.wk-diagram > .wk-chevron {
    position: relative;
    z-index: 6;
}

.wk-grid,
.wk-card,
.wk-card__head,
.wk-card__body {
    position: relative;
    z-index: 6;
}

/*
 * 기존 CSS에서 SVG/connector 관련 stacking override가 남아 있어도
 * wk-loop-line에는 영향을 주지 않도록 명시합니다.
 */
.wk-loop-line,
.wk-loop-line * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* 태블릿에서도 gutter 유지하되 조금 축소 */
@media (max-width: 820px) and (min-width: 681px) {
    .wk-strategy-map {
        --wk-loop-gutter: 56px;
    }

    .wk-loop-path {
        stroke-width: 2;
    }
}

/* 모바일에서는 순환선/좌측 gutter를 제거하고 일반 1열 구조 사용 */
@media (max-width: 680px) {
    .wk-strategy-map {
        --wk-loop-gutter: 0px;
    }

    .wk-loop-line {
        display: none !important;
    }

    .wk-diagram {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .wk-pill--top,
    .wk-pill--human,
    .wk-pill--practice,
    .wk-pill--final {
        transform: none;
    }
}


/* =========================================================
   v1.12 - wk-diagram connection only
   v1.11의 loop 구조는 유지하고 diagram 연결 가지선만 추가
   ========================================================= */

.wk-loop-path--diagram {
    stroke: #c8c8c5;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-dasharray: 5 7;
    vector-effect: non-scaling-stroke;
}

