/* Thierry Content Studio v1.1.6 — Refined home editorial sections */

.tcs-home-editorial-section {
    --tcs-home-ink: #171717;
    --tcs-home-brown: #4c2b18;
    --tcs-home-muted: #665f59;
    --tcs-home-warm: #f5f2ee;
    width: 100%;
    margin: 0;
    padding: 28px 0;
    color: var(--tcs-home-ink);
    background: #fff;
}

.tcs-home-editorial-section *,
.tcs-home-editorial-section *::before,
.tcs-home-editorial-section *::after {
    box-sizing: border-box;
}

/* Blocksy/테마 container 규칙에 흔들리지 않는 전용 레이아웃 폭 */
.tcs-home-editorial-container {
    width: min(1280px, calc(100vw - 48px));
    max-width: none;
    margin: 0 auto;
    padding: 42px 40px;
    background: var(--tcs-home-warm);
}

.tcs-home-editorial-eyebrow {
    margin: 0 0 13px !important;
    padding: 0 !important;
    color: #765744;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.tcs-home-editorial-rule {
    width: 36px;
    height: 1px;
    margin: 0 0 20px;
    background: var(--tcs-home-brown);
}

.tcs-home-editorial-link {
    display: inline-flex !important;
    align-self: flex-start;
    align-items: center;
    gap: 10px;
    width: fit-content !important;
    max-width: 100%;
    margin: 20px 0 0 !important;
    padding: 0 0 4px !important;
    border: 0 !important;
    border-bottom: 1px solid currentColor !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--tcs-home-ink) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    transition: opacity .18s ease;
}

.tcs-home-editorial-link:hover { opacity: .65; }
.tcs-home-editorial-link::before,
.tcs-home-editorial-link::after { display: none !important; content: none !important; }

/* ========================================================
   01 — AUTHENTIC COMPARISON / EDITORIAL HERO
   ======================================================== */
.tcs-home-comparison-layout {
    display: grid;
    grid-template-columns: minmax(300px, 34%) minmax(0, 66%);
    align-items: center;
    min-height: 420px;
}

.tcs-home-comparison-copy {
    position: relative;
    z-index: 2;
    width: calc(100% + 30px);
    padding: 34px 36px 36px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(49, 34, 25, .055);
}

.tcs-home-comparison-title {
    margin: 0 0 14px !important;
    padding: 0 !important;
    color: var(--tcs-home-ink);
    font-family: inherit;
    font-size: clamp(25px, 1.8vw, 29px) !important;
    font-weight: 700 !important;
    line-height: 1.28 !important;
    letter-spacing: -.035em;
    word-break: keep-all;
}

.tcs-home-comparison-description {
    max-width: 350px;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--tcs-home-muted);
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.72 !important;
    word-break: keep-all;
}

.tcs-home-comparison-media {
    position: relative;
    z-index: 1;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background: #e9e5e0;
}

.tcs-home-comparison-media picture,
.tcs-home-comparison-media img {
    display: block;
    width: 100%;
}

.tcs-home-comparison-media picture {
    height: auto;
}

.tcs-home-comparison-media img {
    height: auto;
    min-height: 0 !important;
    object-fit: contain;
    object-position: center center;
}

/* ========================================================
   04 — CLIENT REVIEW / QUOTE HIGHLIGHT
   ======================================================== */
.tcs-home-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    align-items: stretch;
    min-height: 400px;
}

.tcs-home-review-media {
    height: 400px;
    min-height: 0;
    overflow: hidden;
    background: #e9e5e0;
}

.tcs-home-review-media picture,
.tcs-home-review-media img {
    display: block;
    width: 100%;
    height: 100%;
}

.tcs-home-review-media img {
    min-height: 0 !important;
    object-fit: cover;
    object-position: center center;
}

.tcs-home-review-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 42px 54px 42px 58px;
}

.tcs-home-review-stars {
    margin: 0 0 16px !important;
    padding: 0 !important;
    color: #b88b4a;
    font-size: 14px !important;
    line-height: 1 !important;
    letter-spacing: .13em;
}

/* 테마의 blockquote 기본 border/padding/quote 장식 완전 제거 */
.tcs-home-review-quote {
    position: static !important;
    max-width: 470px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--tcs-home-ink) !important;
    font-family: inherit !important;
    font-size: clamp(24px, 2vw, 29px) !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.48 !important;
    letter-spacing: -.03em;
    quotes: none !important;
    word-break: keep-all;
}

.tcs-home-review-quote::before,
.tcs-home-review-quote::after {
    display: none !important;
    content: none !important;
}

/* v1.0.1부터 불필요한 '후기 정보' 텍스트는 화면에 표시하지 않습니다. */
.tcs-home-review-meta { display: none !important; }

@media (max-width: 900px) and (min-width: 768px) {
    .tcs-home-editorial-container { width: calc(100% - 32px); padding: 34px 30px; }
    .tcs-home-comparison-copy { width: calc(100% + 24px); padding: 30px 30px 32px; }
    .tcs-home-comparison-media { height: auto; }
    .tcs-home-review-layout { grid-template-columns: 48% 52%; }
    .tcs-home-review-media { height: 380px; }
    .tcs-home-review-copy { padding: 34px 36px 34px 42px; }
}

@media (max-width: 767px) {
    .tcs-home-editorial-section {
        padding: 14px 0;
    }

    .tcs-home-editorial-container {
        position: relative;
        width: calc(100vw - 20px);
        max-width: none;
        margin-left: calc(50% - 50vw + 10px);
        margin-right: calc(50% - 50vw + 10px);
        padding: 0;
    }

    .tcs-home-editorial-eyebrow {
        margin-bottom: 10px !important;
        font-size: 10px !important;
        letter-spacing: .16em;
    }

    .tcs-home-editorial-rule {
        width: 34px;
        margin-bottom: 16px;
    }

    .tcs-home-editorial-link {
        margin-top: 17px !important;
        font-size: 13px !important;
    }

    .tcs-home-comparison-layout,
    .tcs-home-review-layout {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    /* Beige widget gets intentional breathing room above/below its content. */
    .tcs-home-comparison-layout {
        padding: 22px 0 24px;
    }

    .tcs-home-review-layout {
        padding: 24px 0 26px;
    }

    /* 정품 비교자료: 모바일에서도 원본 비율을 유지해 사진 하단까지 전부 보여줍니다. */
    .tcs-home-comparison-media {
        order: 1;
        width: calc(100% - 48px);
        max-width: calc(100% - 48px);
        height: auto;
        min-height: 0;
        margin-left: 24px;
        margin-right: 24px;
        aspect-ratio: auto;
        overflow: hidden;
        flex: 0 0 auto;
        align-self: center;
    }

    .tcs-home-comparison-media picture,
    .tcs-home-comparison-media img {
        display: block;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
    }

    .tcs-home-comparison-media img {
        object-fit: contain !important;
        object-position: center center;
    }

    /* 고객 후기 이미지는 기존처럼 짧은 3:2 비율을 유지합니다. */
    .tcs-home-review-media {
        order: 1;
        width: calc(100% - 64px);
        max-width: calc(100% - 64px);
        height: auto;
        min-height: 0;
        margin-left: 32px;
        margin-right: 32px;
        aspect-ratio: 3 / 2;
        overflow: hidden;
        flex: 0 0 auto;
        align-self: center;
    }

    .tcs-home-review-media img {
        width: 100%;
        height: 100%;
        min-height: 0 !important;
        object-fit: cover;
        object-position: center center;
    }

    .tcs-home-comparison-copy {
        order: 2;
        z-index: 2;
        width: calc(100% - 96px);
        max-width: calc(100% - 96px);
        margin: -12px auto 0;
        padding: 21px 20px 22px;
        box-shadow: 0 10px 24px rgba(49, 34, 25, .05);
        flex: 0 0 auto;
        align-self: center;
    }

    .tcs-home-comparison-title {
        margin-bottom: 11px !important;
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    .tcs-home-comparison-description {
        font-size: 13px !important;
        line-height: 1.62 !important;
    }

    /* 리뷰는 이미지 + 짧은 quote 영역으로만 구성 */
    .tcs-home-review-copy {
        order: 2;
        width: calc(100% - 48px);
        max-width: calc(100% - 48px);
        margin: 0 auto;
        padding: 24px 0 0;
        flex: 0 0 auto;
        align-self: center;
    }

    .tcs-home-review-stars {
        margin-bottom: 13px !important;
        font-size: 13px !important;
    }

    .tcs-home-review-quote {
        max-width: none;
        font-size: 21px !important;
        line-height: 1.48 !important;
        letter-spacing: -.025em;
    }
}


/* ========================================================
   v1.0.10 — single authoritative responsive geometry
   ======================================================== */

/* PC / tablet: comparison image is never cropped. */
@media (min-width: 768px) {
    .tcs-home-comparison-media,
    .tcs-home-comparison-media picture,
    .tcs-home-comparison-media img {
        height: auto !important;
    }

    .tcs-home-comparison-media img {
        object-fit: contain !important;
    }
}

/* Mobile:
   - widget stays wide
   - images sit 24px inside widget, close to the 22~26px vertical spacing
   - review text aligns exactly to the same 24px inset as its image
   - comparison white card stays 24px narrower per side than its image
*/
@media (max-width: 767px) {
    .tcs-home-editorial-section {
        overflow-x: clip;
    }

    .tcs-home-editorial-container {
        box-sizing: border-box;
    }

    .tcs-home-editorial-section .tcs-home-comparison-layout > .tcs-home-comparison-media,
    .tcs-home-editorial-section .tcs-home-review-layout > .tcs-home-review-media {
        width: calc(100% - 48px) !important;
        max-width: calc(100% - 48px) !important;
        margin-left: 24px !important;
        margin-right: 24px !important;
        flex: 0 0 auto !important;
        align-self: center !important;
    }

    .tcs-home-editorial-section .tcs-home-comparison-layout > .tcs-home-comparison-copy {
        width: calc(100% - 96px) !important;
        max-width: calc(100% - 96px) !important;
        margin: -12px auto 0 !important;
        flex: 0 0 auto !important;
        align-self: center !important;
    }

    .tcs-home-editorial-section .tcs-home-review-layout > .tcs-home-review-copy {
        width: calc(100% - 48px) !important;
        max-width: calc(100% - 48px) !important;
        margin-left: 24px !important;
        margin-right: 24px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        flex: 0 0 auto !important;
        align-self: center !important;
    }

    /* Comparison image: preserve full intrinsic image, including bottom edge. */
    .tcs-home-editorial-section .tcs-home-comparison-media {
        height: auto !important;
        aspect-ratio: auto !important;
    }

    .tcs-home-editorial-section .tcs-home-comparison-media picture,
    .tcs-home-editorial-section .tcs-home-comparison-media img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        min-height: 0 !important;
        object-fit: contain !important;
    }

    /* Review image remains intentionally compact. */
    .tcs-home-editorial-section .tcs-home-review-media {
        aspect-ratio: 3 / 2 !important;
        height: auto !important;
    }

    .tcs-home-editorial-section .tcs-home-review-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}


/* v1.0.11 — final mobile spacing polish */
@media (max-width: 767px) {
    .tcs-home-editorial-section .tcs-home-comparison-layout {
        padding-top: 22px !important;
        padding-bottom: 24px !important;
    }

    .tcs-home-editorial-section .tcs-home-review-layout {
        padding-top: 24px !important;
        padding-bottom: 26px !important;
    }
}


/* ========================================================
   v1.1.1 — Desktop width parity with Thierry Home Video Archive
   Video Archive uses max-width:1280px with 24px viewport gutters.
   ======================================================== */
@media (min-width: 901px) {
    .tcs-home-editorial-section .tcs-home-editorial-container {
        position: relative;
        left: 50%;
        width: min(1280px, calc(100vw - 48px)) !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: translateX(-50%);
    }
}
