/* 납품사례 상세 – 탐텍 제품 페이지 스타일 */
.tm-cv { padding-bottom: 0; }
.tm-cv svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 히어로 */
.tm-cv-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) !important; align-items: center; gap: clamp(28px, 4vw, 64px) !important; }
.tm-cv .tm-pp-hero__series { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tm-cv-status { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #ECFDF5; color: #047857; font-size: 12px; font-style: normal; font-weight: 800; letter-spacing: 0; }
.tm-cv-title { margin: 6px 0 0; font-size: clamp(30px, 3.2vw, 46px) !important; font-weight: 900; line-height: 1.25 !important; letter-spacing: -.04em; word-break: keep-all; }
.tm-cv .tm-pp-hero__lead { margin-top: 18px; font-size: 17px; line-height: 1.75; color: #475569; word-break: keep-all; }
.tm-cv-chips li b { word-break: keep-all; }
.tm-cv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tm-cv-tags span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; background: #F1F5F9; color: #475569; font-size: 13px; font-weight: 600; }

.tm-cv-media { position: relative; border-radius: 24px; overflow: hidden; background: #0F172A; box-shadow: 0 30px 60px rgba(15, 23, 42, .16); aspect-ratio: 4 / 3; }
.tm-cv-media__viewport { position: absolute; inset: 0; }
.tm-cv-media .tm-dc-hero-media__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.tm-cv-media .tm-dc-hero-media__slide.is-active { opacity: 1; visibility: visible; }
.tm-cv-media__frame, .tm-cv-media__frame img, .tm-cv-media__frame video, .tm-cv-media__frame iframe { display: block; width: 100% !important; height: 100% !important; max-width: none !important; border: 0; object-fit: cover; }
.tm-cv-media__frame a { display: block; width: 100%; height: 100%; }
.tm-cv-media__frame.is-video video { object-fit: contain; background: #000; }
.tm-cv-media figcaption { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 140px); padding: 8px 12px; border-radius: 10px; background: rgba(15, 23, 42, .7); color: #fff; font-size: 13px; font-weight: 600; }
.tm-cv-media__nav { position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0F172A; cursor: pointer; box-shadow: 0 8px 20px rgba(15, 23, 42, .2); }
.tm-cv-media__nav svg { width: 20px; height: 20px; stroke-width: 2.4; }
.tm-cv-media__nav.is-prev { left: 14px; }
.tm-cv-media__nav.is-next { right: 14px; }
.tm-cv-media__dots { position: absolute; right: 16px; bottom: 18px; z-index: 2; display: flex; gap: 6px; }
.tm-cv-media__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .2s; }
.tm-cv-media__dots button.is-active { width: 24px; background: #fff; }
.tm-cv-media__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .4); font-size: 20px; font-weight: 900; letter-spacing: .2em; text-align: center; }

/* 현장 이야기 + 사례 정보 */
.tm-cv-head { margin-bottom: clamp(24px, 3vw, 36px) !important; }
.tm-cv-overview__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 3vw, 48px); align-items: start; }
.tm-cv-body { padding: clamp(24px, 3vw, 40px); border: 1px solid #E2E8F0; border-radius: 22px; background: #fff; color: #1E293B; font-size: 17px; line-height: 1.9; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; }
.tm-cv-body p { margin: 0 0 1.05em; }
.tm-cv-body p:last-child { margin-bottom: 0; }
.tm-cv-body img { max-width: 100%; height: auto; border-radius: 14px; }
.tm-cv-body strong, .tm-cv-body b { color: #0F172A; }
.tm-cv-info { position: sticky; top: 110px; padding: 26px 24px; border-radius: 22px; background: #0F172A; color: #fff; }
.tm-cv-info.is-wide { position: static; max-width: 760px; margin: 0 auto; background: #fff; color: #0F172A; border: 1px solid #E2E8F0; }
.tm-cv-info h3 { margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.tm-cv-info dl { margin: 0; }
.tm-cv-info dl div { padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.tm-cv-info.is-wide dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; border-top-color: #EEF2F6; }
.tm-cv-info dt { margin-bottom: 4px; color: #6EE7B7; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.tm-cv-info.is-wide dt { color: #059669; }
.tm-cv-info dd { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.55; word-break: keep-all; }
.tm-cv-info__cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; margin-top: 16px; border-radius: 12px; background: #059669; color: #fff !important; font-size: 15px; font-weight: 800; text-decoration: none !important; }
.tm-cv-info__cta svg { width: 18px; height: 18px; stroke-width: 2.4; }
.tm-cv-info__cta:hover { background: #047857; }

/* 갤러리 */
.tm-cv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tm-cv-gallery figure { margin: 0; }
.tm-cv-gallery__img { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #E2E8F0; aspect-ratio: 4 / 3; cursor: zoom-in; }
.tm-cv-gallery__img img, .tm-cv-gallery__img video, .tm-cv-gallery__img iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; transition: transform .35s ease; }
.tm-cv-gallery__img.is-video, .tm-cv-gallery__img.is-embed { cursor: default; }
.tm-cv-gallery__img:hover img { transform: scale(1.04); }
.tm-cv-gallery__img span { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(15, 23, 42, .6); color: #fff; opacity: 0; transition: opacity .2s; }
.tm-cv-gallery__img span svg { width: 18px; height: 18px; }
.tm-cv-gallery__img:hover span { opacity: 1; }
.tm-cv-gallery figcaption { margin-top: 10px; color: #475569; font-size: 14px; line-height: 1.5; }

/* 관련 제품 */
.tm-cv-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tm-cv-product { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid #E2E8F0; border-radius: 20px; background: #fff; color: #0F172A !important; text-decoration: none !important; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
a.tm-cv-product:hover { transform: translateY(-3px); border-color: #0F172A; box-shadow: 0 16px 34px rgba(15, 23, 42, .08); }
.tm-cv-product__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 20px; background: linear-gradient(180deg, #FFFFFF, #F8FAFC); border-bottom: 1px solid #EEF2F6; }
.tm-cv-product__img img { width: 100%; height: 100%; object-fit: contain; }
.tm-cv-product__img i { color: #CBD5E1; font-size: 13px; font-style: normal; font-weight: 800; letter-spacing: .2em; }
.tm-cv-product__txt { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.tm-cv-product__txt em { color: #059669; font-size: 12.5px; font-style: normal; font-weight: 800; }
.tm-cv-product__txt strong { font-size: 17px; font-weight: 800; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tm-cv-product__txt small { margin-top: auto; padding-top: 8px; color: #64748B; font-size: 13px; font-weight: 700; }
a.tm-cv-product:hover small { color: #059669; }

/* 이전·다음 */
.tm-cv-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin: 40px 0 20px; }
.tm-cv-nav > a, .tm-cv-nav > span { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; padding: 16px 20px; border: 1px solid #E2E8F0; border-radius: 16px; background: #fff; color: #0F172A; text-decoration: none; }
.tm-cv-nav > .is-empty { border: 0; background: none; }
.tm-cv-nav .is-next { text-align: right; }
.tm-cv-nav span span, .tm-cv-nav a span { color: #64748B; font-size: 12.5px; font-weight: 700; }
.tm-cv-nav strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; }
.tm-cv-nav > a:hover { border-color: #059669; }
.tm-cv-nav > a:hover strong { color: #059669; }
.tm-cv-nav .tm-cv-nav__list { flex-direction: row; align-items: center; gap: 8px; padding: 0 22px; font-size: 14px; font-weight: 800; }
.tm-cv-nav__list svg { width: 18px; height: 18px; }
.tm-cv-admin { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 40px; }
.tm-cv-admin a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid #E2E8F0; border-radius: 10px; background: #fff; color: #334155; font-size: 13px; font-weight: 700; text-decoration: none; }
.tm-cv-admin a:hover { border-color: #0F172A; color: #0F172A; }

/* 스크롤 리빌 */
.tm-cv-anim [data-cv-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.tm-cv-anim [data-cv-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 1024px) {
    .tm-cv-hero__grid { grid-template-columns: 1fr !important; }
    .tm-cv-hero__grid .tm-cv-media { order: -1; }
    .tm-cv-overview__grid { grid-template-columns: 1fr; }
    .tm-cv-info { position: static; }
}
@media (max-width: 640px) {
    .tm-cv-media { border-radius: 16px; }
    .tm-cv-body { font-size: 16px; line-height: 1.85; padding: 20px; border-radius: 16px; }
    .tm-cv-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tm-cv-gallery figcaption { font-size: 12.5px; }
    .tm-cv-products { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tm-cv-product__txt { padding: 12px; }
    .tm-cv-product__txt strong { font-size: 15px; }
    .tm-cv-nav { grid-template-columns: 1fr 1fr; }
    .tm-cv-nav .tm-cv-nav__list { grid-column: 1 / -1; order: 3; justify-content: center; height: 46px; }
    .tm-cv-info.is-wide dl div { grid-template-columns: 90px 1fr; }
}
@media print { .tm-cv-anim [data-cv-reveal] { opacity: 1; transform: none; } }
.tm-cv-media .tm-dc-hero-media__viewport { min-height: 0; border: 0; border-radius: 0; background: transparent; }
.tm-cv-media .tm-dc-hero-media__slide figcaption { position: absolute; left: 16px; bottom: 16px; min-height: 0; max-width: calc(100% - 140px); padding: 8px 12px; border: 0; border-radius: 10px; background: rgba(15, 23, 42, .7); color: #fff; font-size: 13px; font-weight: 600; }
.tm-cv-media .tm-dc-hero-media__frame, .tm-cv-media__frame { background: #0F172A; }
