/* 폼 항목/디자인을 유지하면서 목록 페이지와 컨테이너를 통일 */
.quote-main {
    position: relative;
    z-index: 1;
    background: #fff;
    color: #111;
    overflow: clip;
    border-radius: 0 0 clamp(8px, 2vw, 64px) clamp(8px, 2vw, 64px);
}

.quote-container {
    max-width: var(--maxw);
    margin: auto;
    padding: 100px var(--pad-x) 80px;
}

.quote-heading h1 {
    margin: 0;
    font-size: clamp(32px, 4.2vw, 68px);
    line-height: 1.2;
    letter-spacing: -.05em;
    font-weight: 750;
}

.quote-panel .quote-container {
    padding-top: 60px;
    padding-bottom: 100px;
}

.quote-main .ct-wrap {
    width: 100%;
    max-width: none;
}

/* Source, subject and destination form one full-width reference card. */
.quote-source {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr) 4.5rem;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 1.75rem;
    border: 1px solid #efcaca;
    border-top: 3px solid #bd5555;
    border-radius: 8px;
    background: #fff1f0;
    text-decoration: none;
    transition: background-color .18s, border-color .18s;
}

.quote-source-icon {
    display: grid;
    place-items: center;
    width: 7.5rem;
    height: 7.5rem;
}

.quote-source-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quote-source-body {
    min-width: 0;
}

.quote-source-type {
    display: block;
    margin-top: .625rem;
    color: #873b38;
    font-size: .875rem;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.quote-source-title {
    display: block;
    margin: 0;
    color: #342626;
    font-size: 1.375rem;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: 0;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.quote-source-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: #873b38;
    font-size: .75rem;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.quote-source-link > i {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #e7bfbb;
    border-radius: 50%;
    background: #fff;
    font-size: 1.5rem;
    transition: background-color .18s, color .18s;
}

.quote-source:hover {
    background: #ffebe9;
    border-color: #d78d8d;
}

.quote-source:hover .quote-source-link > i {
    background: #873b38;
    color: #fff;
}

.quote-source:focus-visible {
    outline: 2px solid #a83b3b;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .quote-source {
        grid-template-columns: 5.5rem minmax(0, 1fr) 3.5rem;
        padding: 1.25rem;
        gap: 1rem;
    }

    .quote-source-icon {
        width: 5.5rem;
        height: 5.5rem;
    }

    .quote-source-title {
        font-size: 1.125rem;
    }

    .quote-source-link {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .quote-source {
        grid-template-columns: 4rem minmax(0, 1fr);
        padding: 1rem;
        gap: .75rem;
    }

    .quote-source-icon {
        width: 4rem;
        height: 4rem;
    }

    .quote-source-link {
        grid-column: 2;
        flex-direction: row-reverse;
        justify-self: end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quote-source,
    .quote-source-link > i {
        transition: none;
    }
}

body.quote-page.ft-reveal .quote-main {
    --quote-overlap: clamp(24px, 2.5vw, 40px);
    margin-bottom: max(0px, calc(var(--dg-ft-h, 0px) - var(--quote-overlap)));
}

@media(min-width:1024px) {
    body.quote-page.ft-reveal .quote-main {
        --quote-overlap: clamp(40px, 3.5vw, 56px);
    }
}

@media(max-width:1023px) {
    .quote-container {
        padding-top: 65px;
        padding-bottom: 40px;
    }

    .quote-panel .quote-container {
        padding-top: 40px;
        padding-bottom: 70px;
    }
}

@media(max-width:600px) {
    .quote-container {
        padding-top: 45px;
        padding-bottom: 10px;
    }
}
