/* tfstock 과정 상세·과정 게시판 공용 틀(2026-11 디자인 개편 D2) — site/views/site/course/frame */

/* ---------- 배너 ---------- */
.tf-cbanner { position: relative; background: var(--night); overflow: hidden; color: #fff; }
.tf-cbanner .tf-cb-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tf-cbanner-in { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 56px 16px 60px; display: grid; gap: 14px; }
.tf-cb-eb { font-size: 12.5px; letter-spacing: .12em; color: #FFB4B5; font-weight: 700; min-height: 1em; }
.tf-cbanner h1 { margin: 0; font-size: clamp(28px, 4.2vw, 48px); line-height: 1.18; font-weight: 800; letter-spacing: -0.03em; color: #fff !important; max-width: 20ch; text-wrap: balance; }
.tf-cbanner p { margin: 0; color: #B8C0CE !important; font-size: clamp(14px, 1.5vw, 17px); max-width: 60ch; }
.tf-cb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tf-cb-chips:empty { display: none; }
.tf-cb-chips span { border: 1px solid #3A4352; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; color: #D4DAE4 !important; background: rgba(13, 18, 27, .6); }
.tf-cbanner-img { line-height: 0; }
.tf-cbanner-img img { display: block; width: 100%; max-height: 480px; object-fit: cover; }
@media (max-width: 767px) { .tf-cbanner-img img { max-height: none; } .tf-cbanner-in { padding: 40px 16px 44px; } }

/* ---------- 고정 탭 ---------- */
.tf-tabs-wrap { position: sticky; top: var(--hd-h); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); scroll-margin-top: var(--hd-h); }
.tf-tabs { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tf-tabs::-webkit-scrollbar { display: none; }
.tf-tab { padding: 17px 18px 15px; font-size: 15.5px; color: var(--muted) !important; white-space: nowrap; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
.tf-tab:hover { color: var(--ink) !important; }
.tf-tab[aria-current="page"] { color: var(--ink) !important; font-weight: 700; border-bottom-color: var(--ok); }
.tf-tab .tf-ic-lock { color: var(--faint); width: 13px; height: 13px; }
@media (max-width: 640px) { .tf-tab { padding: 14px 12px 12px; font-size: 14.5px; } }

/* ---------- 본문 + 오른쪽 카드 ---------- */
.tf-cbody { max-width: var(--wrap); margin: 0 auto; padding: 36px 16px 72px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.tf-cmain { min-width: 0; }
.tf-side { position: sticky; top: calc(var(--hd-h) + 70px); display: grid; gap: 14px; }
@media (max-width: 960px) {
    .tf-cbody { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
    .tf-side { position: static; order: -1; }
    .tf-side-ft { display: none; }
}

.tf-c-title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 8px; text-wrap: balance; }
.tf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.tf-meta a { color: var(--muted); }
.tf-meta a:hover { color: var(--ink); }
.tf-star { color: #F5A524; }
.tf-like { border: 0; background: none; padding: 0; color: var(--up); font-size: 16px; cursor: pointer; }
.tf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tf-tags a { font-size: 12.5px; color: var(--blue); background: var(--blue-soft); border-radius: 4px; padding: 2px 8px; }
.tf-overview { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--night); margin: 8px 0 24px; }
.tf-overview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tf-intro { color: var(--ink2); font-size: 15.5px; line-height: 1.8; margin: 10px 0 0; overflow-wrap: anywhere; }
.tf-intro img { max-width: 100%; height: auto; }
.tf-intro-empty { color: var(--faint); }
.tf-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 28px 0 36px; }
.tf-feat > div { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.tf-feat b { display: block; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.tf-feat span { color: var(--muted); font-size: 13.5px; }
.tf-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 36px; }
.tf-check, .tf-dot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tf-check li, .tf-dot-list li { position: relative; padding-left: 24px; color: var(--ink2); }
.tf-check li::before { content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; background: var(--ok);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.tf-dot-list li::before { content: ""; position: absolute; left: 6px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.tf-cmain .tf-sec-t { font-size: 20px; margin-top: 8px; }

/* ---------- 커리큘럼 ---------- */
.tf-curr { border-top: 1px solid var(--line); margin-bottom: 40px; }
.tf-week { background: var(--bg2); padding: 13px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; border-radius: 6px; color: var(--ink); }
.tf-week-n { color: var(--muted); font-weight: 400; white-space: nowrap; }
.tf-lec { display: grid; grid-template-columns: 36px 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line2); }
.tf-lec-n { font-weight: 700; font-size: 13px; color: var(--ink); }
.tf-lec-ic { color: var(--faint); display: flex; }
.tf-lec-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.tf-lec-r { color: var(--faint); font-size: 12.5px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tf-lec-lock { color: var(--faint); }
@media (max-width: 640px) {
    .tf-lec { grid-template-columns: 28px minmax(0, 1fr) auto; padding: 12px 8px; }
    .tf-lec-ic { display: none; }
    .tf-lec-r .tnum { display: none; }
}

/* ---------- 강의보기 ---------- */
.tf-resume { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; }
.tf-resume > div { flex: 1; min-width: 200px; }
.tf-resume small { color: var(--muted); display: block; }
.tf-resume b { color: var(--ink); }
.tf-resume .tf-prog { margin: 8px 0 0; max-width: 320px; }
.tf-note { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* 잠금 */
.tf-locked { position: relative; border-radius: 12px; overflow: hidden; min-height: 280px; }
.tf-ghost { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; }
.tf-lock-ov { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .92) 55%); }
.tf-lock-card { text-align: center; padding: 24px; max-width: 360px; }
.tf-lock-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; }
.tf-lock-ic .tf-ic { width: 22px; height: 22px; }
.tf-lock-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.tf-lock-card p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }
.tf-locked-plain { border: 1px solid var(--line); background: var(--bg2); }
.tf-locked-plain .tf-lock-ov { position: static; background: none; padding: 40px 0; }

/* ---------- 강사 ---------- */
.tf-ins { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 40px; }
.tf-ins-ph { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--bg2); }
.tf-ins-nm { font-size: 18px; color: var(--ink); margin-right: 8px; }
.tf-ins-cnt { color: var(--muted); font-size: 13px; }
.tf-ins-intro { color: var(--ink2); margin: 6px 0 0; font-weight: 600; }
.tf-ins-bio { color: var(--ink2); font-size: 14px; margin-top: 8px; max-height: 12em; overflow: hidden; }
.tf-ins-more { display: inline-block; margin-top: 10px; font-size: 13.5px; color: var(--blue) !important; }
@media (max-width: 560px) { .tf-ins { grid-template-columns: 1fr; } }

/* ---------- 후기(공통 web/course/part/review) ---------- */
#review .student_feedback_container { padding: 0 !important; border: 0; }
#review .aii_title { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 18px; }
#review .s_feeback_content, #review .aii_average_review { background: var(--bg2); border-radius: 12px; }
#review .aii_average_review { padding: 24px; }
#review .aii_average_review h2 { font-size: 40px; font-weight: 800; }
#review .sfeedbacks, #review .mbp_comment_form { border: 0; padding-left: 0; padding-right: 0; }

/* ---------- 오른쪽 카드 ---------- */
.tf-side-card { padding: 22px; }
.tf-price { font-size: 26px; font-weight: 800; text-align: center; margin: 4px 0 2px; color: var(--ink); }
.tf-price s { font-size: 14px; color: var(--faint); font-weight: 400; margin-right: 6px; }
.tf-price-sub { text-align: center; color: var(--muted); font-size: 12.5px; margin-bottom: 16px; min-height: 4px; }
.tf-stack { display: grid; gap: 8px; }
.tf-status { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.tf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.tf-dot-blue { background: var(--blue); }
.tf-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; margin: 0 0 14px; }
.tf-kv dt { color: var(--muted); font-weight: 400; }
.tf-kv dd { margin: 0; text-align: right; color: var(--ink); }
.tf-prog { height: 6px; background: var(--line2); border-radius: 3px; overflow: hidden; margin: 4px 0 16px; }
.tf-prog i { display: block; height: 100%; background: var(--ok); }
.tf-side-ft b { color: var(--ink); }
.tf-side-ft ul { list-style: none; margin: 8px 0 0; padding: 0; }
.tf-side-ft li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 13px; color: var(--ink2); border-bottom: 1px dashed var(--line2); }
.tf-side-ft li:last-child { border-bottom: 0; }

/* ---------- 연관 과정 ---------- */
.tf-related { max-width: var(--wrap); margin: 0 auto; padding: 0 16px 72px; }
.tf-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

/* ---------- 과정 게시판(목록·읽기·쓰기) ---------- */
.tf-bd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.tf-bd-head .tf-sec-t { margin: 0 !important; }
.tf-bd-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.tf-bd-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tf-bd-search { display: flex; align-items: center; height: 34px; border: 1px solid var(--line); border-radius: 6px; padding: 0 4px 0 10px; background: #fff; }
.tf-bd-search input { border: 0; outline: 0; font-size: 13px; width: 160px; background: none; }
.tf-bd-search button { border: 0; background: none; color: var(--muted); display: flex; padding: 0 4px; cursor: pointer; }
.tf-tbl .tf-pin { color: var(--up); }
.tf-tbl .tf-fix-b { font-size: 11px; font-weight: 700; color: var(--up); border: 1px solid #FFC9C9; border-radius: 4px; padding: 0 6px; margin-right: 6px; }
.tf-tbl .tf-cm { color: var(--blue); font-size: 12px; margin-left: 4px; }
.tf-tbl .tf-clip { color: var(--faint); margin-left: 4px; }
.tf-tbl a { color: var(--ink); }
.tf-tbl a:hover { color: var(--blue); }
.tf-bd-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.tf-bd-foot .pagination { margin: 0; }
@media (max-width: 640px) {
    .tf-tbl { min-width: 0; }
    .tf-tbl .tf-col-m { display: none; }
}

.tf-post { border-top: 2px solid var(--ink); }
.tf-post-h { padding: 18px 4px; border-bottom: 1px solid var(--line); }
.tf-post-h h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.tf-post-h .m { color: var(--muted); font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; }
.tf-post-b { padding: 22px 4px; color: var(--ink2); min-height: 120px; overflow-wrap: anywhere; line-height: 1.8; }
.tf-post-b img { max-width: 100%; height: auto; }
.tf-files { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: grid; gap: 8px; margin: 0 4px 18px; }
.tf-files .f { display: flex; align-items: center; gap: 8px; font-size: 13.5px; min-width: 0; }
.tf-files .f span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-files .f a { margin-left: auto; color: var(--blue); font-size: 12.5px; white-space: nowrap; }
.tf-row-end { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tf-row-between { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tf-form { display: grid; gap: 14px; border-top: 2px solid var(--ink); padding-top: 18px; }
.tf-form label { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; display: block; }
.tf-form .help { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.tf-drop { border: 1px dashed #C7CCD4; border-radius: 8px; padding: 14px; color: var(--muted); font-size: 13px; }
.tf-alert { background: var(--blue-soft); color: var(--blue); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }
.tf-cmain .comments, .tf-cmain #comments { margin-top: 24px; }
.tf-ghost-empty { height: 320px; background: var(--bg2); border-radius: 12px; }
@media (max-width: 960px) { .tf-side-board { display: none; } }
@media (max-width: 640px) { .tf-tbl th, .tf-tbl td { width: auto !important; } .tf-tbl td.tt { word-break: keep-all; } }
