/* 목적별 카드: 기존 대표 링크와 삽화를 그대로 사용하고 관련 가이드를 아래에 붙인다.
   모바일에서는 새 목록이 HTML의 hidden 상태로 남는다. */
@media (min-width: 900px) {
    .eom-purpose .eom-section-heading {
        text-align: left;
    }

    /* DOM 순서(대표 링크 → 관련 목록)를 그대로 읽고, 각 쌍을 같은 열에 배치. */
    .eom-purpose .eom-purpose-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto auto;
        grid-auto-flow: column;
        gap: 0 clamp(12px, 1.2vw, 18px);
    }

    .eom-purpose .eom-purpose-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) clamp(74px, 7.5vw, 108px);
        grid-template-areas: "title art" "summary art" "link art";
        align-content: center;
        align-items: center;
        column-gap: 6px;
        min-width: 0;
        min-height: clamp(146px, 12.5vw, 168px);
        padding: clamp(15px, 1.55vw, 22px);
        border: 1px solid #dee6ed;
        border-bottom: 0;
        border-radius: 14px 14px 0 0;
        text-align: left;
        transition: none;
    }

    .eom-purpose .eom-purpose-card:hover {
        transform: none;
        box-shadow: none;
    }

    .eom-purpose .eom-purpose-card:focus-visible {
        z-index: 1;
        outline-offset: -3px;
    }

    .eom-purpose .eom-purpose-emoji {
        grid-area: art;
        width: 100%;
        height: auto;
    }

    .eom-purpose .eom-purpose-emoji img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .eom-purpose .eom-purpose-card h3 {
        grid-area: title;
        margin: 0;
        font-size: clamp(17px, 1.42vw, 21px);
        letter-spacing: -.045em;
        line-height: 1.4;
        word-break: keep-all;
    }

    .eom-purpose .eom-purpose-card p {
        grid-area: summary;
        margin: 5px 0 0;
        color: #526579;
    }

    .eom-purpose .eom-purpose-card > span {
        grid-area: link;
        justify-self: start;
        margin: 10px 0 0;
        padding: 0;
        line-height: 1.5;
    }

    .eom-purpose .eom-purpose-card:hover > span,
    .eom-purpose .eom-purpose-card:focus-visible > span {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .eom-purpose .eom-purpose-links {
        display: block;
        min-width: 0;
        margin: 0;
        padding: 2px clamp(15px, 1.55vw, 22px);
        list-style: none;
        border: 1px solid #dee6ed;
        border-radius: 0 0 14px 14px;
        background: #fff;
    }

    .eom-purpose .eom-purpose-links li + li {
        border-top: 1px solid #eaf0f4;
    }

    .eom-purpose .eom-purpose-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 9px;
        min-height: 43px;
        padding: 8px 1px;
        color: #344965;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.5;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .eom-purpose .eom-purpose-links a::after {
        content: "";
        flex: 0 0 6px;
        height: 6px;
        margin-right: 3px;
        border: solid #74859b;
        border-width: 1.5px 1.5px 0 0;
        transform: rotate(45deg);
    }

    .eom-purpose .eom-purpose-links a:hover,
    .eom-purpose .eom-purpose-links a:focus-visible {
        color: #144fba;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}

/* PC: 기존 소개 문구·강점·단계·후기 콘텐츠를 넓은 화면에 맞게 배치. */
@media (min-width: 900px) {
    .eom-benefits {
        padding: 54px 0 44px;
    }

    .eom-benefits > .eom-container {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        grid-template-areas: "story strengths";
        align-items: center;
        gap: clamp(24px, 3.1vw, 44px);
    }

    .eom-benefits .eom-section-heading {
        grid-area: story;
        min-width: 0;
        margin: 0;
        text-align: left;
    }

    .eom-benefits-question,
    .eom-benefits-intro {
        display: none;
    }

    .eom-brand-title,
    .eom-brand-title > span {
        display: block;
    }

    .eom-brand-since {
        margin-bottom: 5px;
        color: #566a83;
        font: 650 12px/1.2 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
        letter-spacing: .16em;
    }

    .eom-brand-year {
        margin-bottom: 10px;
        color: #115ce3;
        font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
        font-size: clamp(60px, 6vw, 76px);
        font-weight: 800;
        line-height: .94;
        letter-spacing: -.065em;
    }

    .eom-brand-tagline {
        color: #102b58;
        font-size: clamp(24px, 2.4vw, 30px);
        font-weight: 800;
        line-height: 1.35;
        letter-spacing: -.045em;
        word-break: keep-all;
    }

    .eom-benefits .eom-brand-copy {
        display: block;
        margin: 15px 0 0;
        color: #52647c;
        font-size: 16px;
        line-height: 1.65;
        word-break: keep-all;
    }

    .eom-benefits .eom-benefits-grid {
        grid-area: strengths;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 clamp(12px, 1.6vw, 22px);
        border: 1px solid #e1e8f1;
        border-radius: 14px;
        background: #fbfcfe;
    }

    .eom-benefits .eom-benefit {
        display: grid;
        grid-template-columns: clamp(42px, 4.5vw, 58px) minmax(0, 1fr);
        grid-template-areas: "icon title" "icon copy";
        align-content: center;
        gap: 3px clamp(8px, 1vw, 14px);
        padding: 17px 4px;
        border: 0;
        text-align: left;
    }

    .eom-benefits .eom-benefit:nth-child(n+3) {
        border-top: 1px solid #e1e8f1;
    }

    .eom-benefits .eom-benefit:nth-child(even) {
        padding-left: clamp(8px, 1.2vw, 16px);
    }

    .eom-benefits .eom-benefit-icon {
        grid-area: icon;
        align-self: center;
        margin: 0;
    }

    .eom-benefits .eom-benefit-icon img {
        width: 100%;
        height: auto;
    }

    .eom-benefits .eom-benefit h3 {
        grid-area: title;
        margin: 0;
        line-height: 1.4;
    }

    .eom-benefits .eom-benefit p {
        grid-area: copy;
        line-height: 1.55;
    }

    /* 단계 번호·제목과 그림을 같은 줄에 묶고 설명은 카드 폭을 사용. */
    .eom-how .eom-how-grid > li {
        display: grid;
        grid-template-columns: minmax(0, 1fr) clamp(42px, 4.6vw, 60px);
        grid-template-areas: "number icon" "title icon" "copy copy";
        align-content: start;
        align-items: center;
        column-gap: 8px;
        min-height: 0;
        padding: clamp(15px, 1.5vw, 21px);
    }

    .eom-how .eom-how-grid > li > strong {
        grid-area: number;
        align-self: end;
        line-height: 1.4;
    }

    .eom-how .eom-how-grid > li > h3 {
        grid-area: title;
        align-self: start;
        margin: 3px 0 0;
        font-size: 16px;
        line-height: 1.45;
    }

    .eom-how .eom-how-grid > li > p {
        grid-area: copy;
        margin: 8px 0 0;
        color: #536680;
        font-size: 13px;
    }

    .eom-how .eom-how-grid > li > .eom-how-step-icon {
        grid-area: icon;
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    /* 짧은 원문에는 빈 공간을 줄이고, 긴 후기는 기존대로 높이가 늘어남. */
    .eom-reviews .eom-review-card {
        min-height: 186px;
    }

    .eom-reviews .eom-review-layout {
        grid-template-columns: clamp(68px, 7.5vw, 90px) minmax(0, 1fr);
        gap: 12px;
    }
}

/* PC에서 이벤트가 한 건이면 섹션 제목과 대표 배너를 나란히 놓는다. */
@media (min-width: 900px) {
    .eom-event-promo[data-event-count="1"] > .eom-container {
        display: grid;
        grid-template-columns: min(22.3%, 252px) minmax(0, 1fr);
        align-items: center;
        column-gap: 26px;
    }

    .eom-event-promo[data-event-count="1"] .eom-event-promo__heading {
        min-width: 0;
        margin: 0;
        padding-right: 12px;
    }
}
