/* Shared geotechnical document pages */
.geo-doc-section {
    padding-bottom: 120px;
}


.geo-doc-layout {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: clamp(54px, 7vw, 130px);
    width: 100%;
    margin: 0 auto;
}

.geo-doc-content {
    min-width: 0;
}

.geo-doc-content .geotechnical-story-heading {
    scroll-margin-top: 130px;
    margin: 0 0 34px;
    padding: 0;
    border: 0;
}

.geo-doc-content .geotechnical-story-heading:not(:first-child) {
    margin-top: 96px;
}

.geo-doc-content .geotechnical-story-heading h3 {
    margin: 0;
    color: #111;
    font-size: clamp(28px, 2.2vw, 38px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -1px;
    word-break: keep-all;
}

.geo-doc-content .geotechnical-image-story {
    display: block;
    margin: 0 0 150px;
    padding: 0;
}

.geo-doc-content .geotechnical-story-heading + .geotechnical-image-story {
    margin-top: 0;
}

.geo-doc-content .geo-doc-story-title {
    scroll-margin-top: 130px;
    margin: 0 0 30px;
    color: #111;
    font-size: clamp(24px, 1.9vw, 31px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.75px;
    word-break: keep-all;
}

.geo-doc-content .geotechnical-image-card {
    display: grid;
    width: 70%;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    align-items: stretch;
    justify-items: stretch;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.geo-doc-content .geotechnical-image-card img {
    display: block;
    width: 100%;
    max-height: none;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 15px;
}

.geo-doc-content .geotechnical-image-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.geo-doc-content .geotechnical-image-card-grid img:first-child:last-child,
.geo-doc-content .geotechnical-image-card-grid img:nth-child(3):last-child,
.geo-doc-content .geotechnical-image-card-grid img:nth-child(5):last-child {
    grid-column: 1 / -1;
}

.geo-doc-content .geotechnical-story-copy {
    max-width: 850px;
    padding: 28px 0 0;
    border: 0;
    color: #414750;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.78;
    letter-spacing: -.2px;
}

.geo-doc-content .geotechnical-story-copy:empty {
    display: none;
}

.geo-doc-content .geotechnical-story-copy h4 {
    margin: 32px 0 10px;
    color: #171a1f;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.5px;
}

.geo-doc-content .geotechnical-story-copy h4:first-child {
    margin-top: 0;
}

.geo-doc-content .geotechnical-story-copy p {
    margin: 0 0 15px;
    color: #474d56;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.78;
    word-break: keep-all;
}

.geo-doc-content .geotechnical-story-list {
    margin: 4px 0 0;
    padding-left: 20px;
    color: #474d56;
    list-style: disc;
}

.geo-doc-content .geotechnical-story-list li {
    margin: 0 0 7px;
    padding-left: 2px;
    color: #474d56;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.72;
}

.geo-doc-content .geotechnical-story-list li::before {
    display: none;
}

.geo-doc-content .geotechnical-story-list ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.geo-doc-aside {
    position: relative;
    min-width: 0;
    order: -1;
}

.geo-doc-nav {
    position: sticky;
    top: 130px;
    max-height: calc(100vh - 165px);
    padding: 0 8px 0 20px;
    overflow-y: auto;
    border: 0;
    scrollbar-width: thin;
    scrollbar-color: #d5d8dc transparent;
}

.geo-doc-nav-title {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: calc(100% + 20px);
    margin: 0 0 16px -20px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f0f0f0;
    color: #24272c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    word-break: keep-all;
}

.geo-doc-nav a {
    position: relative;
    display: block;
    padding: 8px 0;
    color: #9297a0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    word-break: keep-all;
}

.geo-doc-nav a::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -21px;
    width: 2px;
    background: #e3e5e8;
}

.geo-doc-nav a:hover,
.geo-doc-nav a.is-active {
    color: #171717;
    font-weight: 600;
}

.geo-doc-nav a.is-active::before {
    background: #171717;
}

@media (max-width: 991px) {
    .geo-doc-section {
        padding-bottom: 86px;
    }

    .geo-doc-layout {
        display: flex;
        flex-direction: column;
        gap: 34px;
    }

    .geo-doc-aside {
        order: -1;
    }

    .geo-doc-nav {
        position: static;
        display: flex;
        gap: 8px;
        max-height: none;
        padding: 0 0 12px;
        overflow-x: auto;
        overflow-y: hidden;
        border-bottom: 1px solid #e1e4e8;
        scrollbar-width: none;
    }

    .geo-doc-nav::-webkit-scrollbar,
    .geo-doc-nav-title {
        display: none;
    }

    .geo-doc-nav a {
        flex: 0 0 auto;
        padding: 8px 14px;
        border-radius: 999px;
        background: #f2f3f5;
        font-size: 14px;
    }

    .geo-doc-nav a::before {
        display: none;
    }

    .geo-doc-nav a.is-active {
        background: #171717;
        color: #fff;
    }

    .geo-doc-content .geotechnical-story-heading,
    .geo-doc-content .geo-doc-story-title {
        scroll-margin-top: 90px;
    }

    .geo-doc-content .geotechnical-story-heading:not(:first-child) {
        margin-top: 72px;
    }

    .geo-doc-content .geotechnical-image-story {
        margin-bottom: 72px;
    }

    .geo-doc-content .geotechnical-image-card {
        width: 100%;
    }

    .geo-doc-content .geotechnical-story-copy {
        padding-top: 24px;
    }
}

@media (max-width: 575px) {
    .geo-doc-content .geotechnical-story-heading h3 {
        font-size: 27px;
    }

    .geo-doc-content .geo-doc-story-title {
        margin-bottom: 22px;
        font-size: 23px;
    }

    .geo-doc-content .geotechnical-image-card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .geo-doc-content .geotechnical-image-card-grid img {
        grid-column: auto !important;
    }

    .geo-doc-content .geotechnical-story-copy,
    .geo-doc-content .geotechnical-story-copy p {
        font-size: 16px;
    }

    .geo-doc-content .geotechnical-story-list li {
        font-size: 15px;
    }
}



/* Shared geotechnical card layout */

.geotechnical-doc-page .geo-doc-content {
    position: relative;
}

.geotechnical-doc-page .geotechnical-story-heading {
    margin-bottom: 55px;
    padding-bottom: 24px;
    border-bottom: 1px solid #dce5e3;
}

.geotechnical-doc-page .geo-doc-nav {
    padding: 14px;
    border: 1px solid #dfe8e5;
    border-radius: 18px;
    background-color: #f8faf9;
}

.geotechnical-doc-page .geo-doc-nav-title {
    display: flex;
    width: 100%;
    max-width: none;
    margin: 0 0 10px;
    padding: 13px 15px;
    border-radius: 11px;
    background-color: #f8faf9;
    color: #173f3a;
    font-size: 18px;
    font-weight: 700;
}

.geotechnical-doc-page .geo-doc-nav a {
    position: relative;
    margin-top: 3px;
    padding: 10px 34px 10px 14px;
    border-radius: 10px;
    color: #75817e;
    font-size: 16px;
    line-height: 1.45;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.geotechnical-doc-page .geo-doc-nav a::before {
    display: none;
}

.geotechnical-doc-page .geo-doc-nav a::after {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 6px;
    height: 6px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    content: "";
    opacity: 0;
    transform: translate(-4px, -50%) rotate(45deg);
    transition: opacity .2s ease, transform .2s ease;
}

.geotechnical-doc-page .geo-doc-nav a:hover {
    background-color: #eef4f2;
    color: #315f59;
    transform: translateX(2px);
}

.geotechnical-doc-page .geo-doc-nav a.is-active {
    background-color: #e5f0ed;
    color: #173f3a;
    font-weight: 600;
}

.geotechnical-doc-page .geo-doc-nav a.is-active::after {
    opacity: 1;
    transform: translate(0, -50%) rotate(45deg);
}

.geotechnical-doc-page .geotechnical-image-story {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 42%) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 68px);
    margin: 0 0 130px;
    padding: clamp(28px, 3.5vw, 46px);
    border: 1px solid #e0e7e5;
    border-radius: 15px;
    background-color: #f8faf9;
}

/* 이미지 없이 설명만 있는 스토리는 본문이 전체 너비를 사용한다. */
.geotechnical-doc-page .geotechnical-image-story.geotechnical-image-story--text-only {
    grid-template-columns: minmax(0, 1fr);
}

.geotechnical-doc-page .geotechnical-image-story.geotechnical-image-story--text-only > .geotechnical-story-copy {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
}

.geotechnical-doc-page .geo-doc-story-title {
    grid-column: 1 / -1;
    margin: 0 0 -5px;
    padding-bottom: 20px;
    color: #173f3a;
    font-size: clamp(23px, 2vw, 31px);
}

.geotechnical-doc-page .geotechnical-image-card {
    width: 100%;
    /* padding: 10px; */
    overflow: hidden;
    /* border: 1px solid #e3e9e7; */
    /* border-radius: 20px; */
    /* background-color: #fff; */
}

.geotechnical-doc-page .geotechnical-image-card img {
    height: 100%;
    min-height: 250px;
    border-radius: 13px;
    object-fit: cover;
}

.geotechnical-doc-page .geotechnical-story-copy {
    max-width: none;
    padding: 0;
}

.geotechnical-doc-page .geotechnical-story-copy h4 {
    display: inline-flex;
    margin: 22px 0 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background-color: #e5f0ed;
    color: #1e675f;
    font-size: 16px;
    letter-spacing: -.2px;
}

.geotechnical-doc-page .geotechnical-story-copy p {
    margin-bottom: 0;
    color: #000000;
    font-size: 18px;
    line-height: 1.8;
    padding: 5px;
}

.geotechnical-doc-page .geotechnical-image-story:nth-of-type(even) .geotechnical-image-card {
    grid-column: 2;
    grid-row: 2;
}

.geotechnical-doc-page .geotechnical-image-story:nth-of-type(even) .geotechnical-story-copy {
    grid-column: 1;
    grid-row: 2;
}

@media (max-width: 991px) {
.geotechnical-doc-page .geo-doc-nav {
        padding: 10px;
        border-radius: 14px;
    }

    .geotechnical-doc-page .geo-doc-nav-title {
        display: none;
    }

    .geotechnical-doc-page .geo-doc-nav a {
        margin: 0;
        padding: 9px 14px;
        background-color: #edf3f1;
        color: #61706c;
    }

    .geotechnical-doc-page .geo-doc-nav a::after {
        display: none;
    }

    .geotechnical-doc-page .geotechnical-image-story,
    .geotechnical-doc-page .geotechnical-image-story:nth-of-type(even) {
        grid-template-columns: 1fr;
    }

    .geotechnical-doc-page .geotechnical-image-story:nth-of-type(even) .geotechnical-image-card,
    .geotechnical-doc-page .geotechnical-image-story:nth-of-type(even) .geotechnical-story-copy {
        grid-column: 1;
        grid-row: auto;
    }

    .geotechnical-doc-page .geotechnical-image-card {
        max-width: none;
    }
}

@media (max-width: 767px) {
.geotechnical-doc-page .geotechnical-image-story {
        margin-bottom: 32px;
        padding: 24px 18px;
        border-radius: 15px;
    }

    .geotechnical-doc-page .geotechnical-image-card img {
        min-height: 190px;
    }
}
