/* 강의 포트폴리오 페이지 전용 꾸밈 (2026-12-02). 값은 ds.css의 것만 쓴다. */

/* 손 들어 보기: 강의의 실제 첫 질문 */
.hands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hand { text-align: left; font: inherit; color: inherit; background: var(--ink-2); border: 1.5px solid transparent; border-radius: var(--r-card); padding: clamp(22px, 2.6vw, 36px); cursor: pointer; display: grid; gap: 12px; transition: transform var(--dur) var(--ease), border-color .25s, background .25s; }
.hand:hover { transform: translateY(-6px); }
.hand .q { font-family: var(--serif); font-weight: 800; font-size: var(--t-h2); letter-spacing: -0.04em; line-height: 1.25; }
.hand .s { color: var(--sub-on-ink); font-size: var(--t-body); }
.hand .t { font-size: var(--t-label); font-weight: 600; letter-spacing: .06em; color: #ff8f6b; }
.hand[aria-pressed="true"] { background: var(--accent); border-color: var(--white); }
.hand[aria-pressed="true"] .s, .hand[aria-pressed="true"] .t { color: var(--white); }
.answer { margin-top: var(--s-5); border-top: 1px solid var(--line-on-ink); padding-top: var(--s-4); min-height: 9em; }
.answer .h2 { max-width: 22em; }
.answer p { color: var(--sub-on-ink); max-width: 40em; }

/* 강의 한 편 */
.lec { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 5vw, 88px); padding: clamp(48px, 7vw, 112px) 0; border-top: 1px solid var(--line); align-items: start; }
.lec:first-of-type { border-top: 0; }
.lec .left { position: sticky; top: 110px; }
.lec .kicker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s-3); }
.lec .kicker span { font-size: var(--t-label); font-weight: 600; padding: 7px 14px; border-radius: var(--r-pill); background: var(--ink); color: var(--white); }
.lec .kicker span.light { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.lec .hook { font-family: var(--serif); font-weight: 800; font-size: var(--t-h1); line-height: 1.22; letter-spacing: -0.045em; margin: 0 0 var(--s-3); }
.lec .hook em { font-style: normal; color: var(--accent); }
.lec .name { font-size: var(--t-lead); color: var(--sub); margin: 0; }

/* 시간표: 길이가 분량에 비례하는 띠 */
.plan { display: grid; gap: 10px; margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.plan li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; }
.plan .min { font-family: var(--serif); font-weight: 800; font-size: var(--t-h3); letter-spacing: -0.03em; }
.plan .min small { font-size: var(--t-label); font-weight: 600; color: var(--sub); margin-left: 2px; }
.plan .what { position: relative; padding: 14px 18px; border-radius: 12px; background: var(--white); overflow: hidden; font-size: var(--t-body); line-height: 1.5; }
.plan .what::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--paper-2); transition: width 1.1s var(--ease); z-index: 0; }
.plan.on .what::before { width: var(--w, 30%); }
.plan .what span { position: relative; z-index: 1; }
.plan .what b { font-weight: 700; }
.take { background: var(--ink); color: var(--white); border-radius: var(--r-card); padding: clamp(22px, 2.6vw, 36px); }
.take h4 { margin: 0 0 12px; font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; color: #ff8f6b; }
.take ul { margin: 0; padding-left: 20px; }
.take li { margin-bottom: 6px; font-size: var(--t-body); }
.scene-quote { margin: 0 0 var(--s-5); padding-left: 20px; border-left: 3px solid var(--accent); font-family: var(--serif); font-weight: 700; font-size: var(--t-h3); line-height: 1.5; letter-spacing: -0.03em; }
.scene-quote small { display: block; margin-top: 8px; font-family: var(--sans); font-size: var(--t-label); font-weight: 600; color: var(--sub); letter-spacing: .04em; }

/* 3분 맛보기: 넘겨 보는 다섯 장 */
.deck { background: var(--ink-2); border-radius: 28px; padding: clamp(28px, 5vw, 72px); min-height: min(70vh, 560px); display: grid; grid-template-rows: auto 1fr auto; gap: var(--s-4); }
.deck .slide { display: none; align-content: center; gap: var(--s-3); }
.deck .slide.on { display: grid; animation: slidein .7s var(--ease); }
@keyframes slidein { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.deck .slide .big { color: var(--white); max-width: none; font-family: var(--serif); font-weight: 800; font-size: clamp(1.9rem, 1rem + 3.6vw, 4rem); line-height: 1.22; letter-spacing: -0.05em; margin: 0; }
.deck .slide .big em { font-style: normal; color: #ff8f6b; }
.deck .slide p { color: var(--sub-on-ink); max-width: 38em; margin: 0; font-size: var(--t-lead); }
.deck .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.deck .pair div { border: 1px solid var(--line-on-ink); border-radius: 16px; padding: 20px; }
.deck .pair div.good { border-color: #ff8f6b; }
.deck .pair b { display: block; margin-bottom: 8px; font-size: var(--t-label); letter-spacing: .06em; color: var(--sub-on-ink); }
.deck .pair div.good b { color: #ff8f6b; }
.deck .three3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.deck .three3 div { border-top: 2px solid #ff8f6b; padding-top: 14px; }
.deck .three3 b { font-family: var(--serif); font-size: var(--t-h2); font-weight: 800; display: block; }
.deck .ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.deck .dots { display: flex; gap: 8px; }
.deck .dots i { width: 28px; height: 3px; background: var(--line-on-ink); border-radius: 2px; transition: background .3s; }
.deck .dots i.on { background: #ff8f6b; }
.deck .ctrl .btn { min-height: 48px; }
.deck .no { font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; color: var(--sub-on-ink); }

/* 워크숍에서 들고 가는 묶음 */
.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kit > div { background: var(--white); border-radius: var(--r-card); padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 10px; align-content: start; transition: transform var(--dur) var(--ease); }
.kit > div:hover { transform: translateY(-6px) rotate(-.6deg); }
.kit .f { font: 600 var(--t-label)/1.4 ui-monospace, Consolas, monospace; color: var(--accent); }
.kit h4 { margin: 0; font-size: var(--t-h3); letter-spacing: -0.02em; }
.kit p { margin: 0; color: var(--sub); }

/* 세 가지 질문 */
.quiz { display: grid; gap: 12px; }
.qrow { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--white); border-radius: 16px; padding: 20px 24px; }
.qrow p { margin: 0; font-size: var(--t-lead); font-weight: 600; letter-spacing: -0.02em; }
.yn { display: flex; gap: 8px; }
.yn button { font: 600 var(--t-body)/1 var(--sans); min-width: 76px; min-height: 46px; border-radius: var(--r-pill); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.yn button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.verdict { margin-top: var(--s-4); padding: clamp(22px, 2.6vw, 36px); border-radius: var(--r-card); background: var(--accent); color: var(--white); display: none; }
.verdict.on { display: block; animation: slidein .6s var(--ease); }
.verdict .h2 { margin-bottom: 10px; }
.verdict p { margin: 0 0 var(--s-3); }
.verdict .btn { background: var(--white); color: var(--ink); }

@media (max-width: 960px) {
  .lec { grid-template-columns: 1fr; }
  .lec .left { position: static; }
  .hands, .kit { grid-template-columns: 1fr; }
  .deck .three3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .deck .pair { grid-template-columns: 1fr; }
  .qrow { grid-template-columns: 1fr; }
  .plan li { grid-template-columns: 52px 1fr; gap: 10px; }
  .deck .ctrl { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .deck .slide.on, .verdict.on { animation: none; }
  .plan .what::before { transition: none; }
  .hand, .kit > div { transition: none; }
}
