/* 투자한판 구조
   투자 시작 -> 투자 실전 -> 투자 복기
   투자사전과 투자생각은 투자 시작 내부 학습 구조
   기존 theme-dark.css / dark-system.css 토큰과 동일 계열
*/
.flow-home,
.flow-page{
  --flow-bg:#07111f;
  --flow-card:#0d1a2b;
  --flow-card-2:#10243a;
  --flow-line:#203955;
  --flow-text:#eef5ff;
  --flow-muted:#9ab0c7;
  --flow-blue:#76c7ff;
  --flow-blue-strong:#4d8dff;
  --flow-green:#64d6aa;
  --flow-orange:#f5b864;
  --flow-shadow:0 18px 50px rgba(0,0,0,.22);
  --flow-muted-blue:var(--flow-blue);
}

.flow-section{padding:28px 0 54px}
.flow-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}
.flow-head .eyebrow{margin-bottom:6px}
.flow-head h2{margin:0;font-size:31px;line-height:1.2;letter-spacing:-.04em;color:var(--flow-text)}
.flow-head p{margin:6px 0 0;color:var(--flow-muted);font-size:14px;line-height:1.65}
.flow-order{font-size:12px;color:#7892aa;white-space:nowrap}

.flow-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;position:relative}
.flow-card{
  position:relative;
  min-height:250px;
  padding:23px;
  border:1px solid var(--flow-line);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(13,26,43,.98),rgba(9,23,39,.98));
  color:inherit;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.flow-card:hover{
  transform:translateY(-3px);
  border-color:#315979;
  background:linear-gradient(180deg,#10243a,#0b1c2e);
  box-shadow:0 16px 38px rgba(0,0,0,.24);
}
.flow-card:focus-visible{outline:2px solid var(--flow-blue);outline-offset:3px}
.flow-step{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-bottom:30px;
}
.flow-num{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:34px;height:34px;padding:0 10px;
  border:1px solid #294866;border-radius:11px;
  background:#10243a;color:var(--flow-blue);
  font-size:11px;font-weight:950;letter-spacing:.08em;
}
.flow-kind{color:#718ba4;font-size:10px;font-weight:900;letter-spacing:.12em}
.flow-card h3{margin:0 0 9px;font-size:23px;letter-spacing:-.035em;color:var(--flow-text)}
.flow-card>p{margin:0;color:var(--flow-muted);font-size:13px;line-height:1.68}
.flow-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:24px}
.flow-tags span{
  padding:5px 8px;border-radius:999px;background:#10243a;
  color:#9fb8cc;font-size:10px;font-weight:850;border:1px solid rgba(41,72,102,.55)
}
.flow-more{display:block;margin-top:13px;color:var(--flow-blue);font-size:12px;font-weight:950}
.flow-card::after{
  content:"";position:absolute;right:-55px;bottom:-75px;width:145px;height:145px;border-radius:50%;
  background:rgba(118,199,255,.035);pointer-events:none
}

/* HERO를 새 구조에 맞게 조금 더 명확하게 */
.flow-home .market-hero{padding-bottom:20px}
.flow-home .market-hero-copy .hero-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:24px}
.flow-primary,.flow-secondary{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;
  border-radius:12px;text-decoration:none;font-size:13px;font-weight:900
}
.flow-primary{background:#10243a;border:1px solid #294866;color:#dceaf6}
.flow-primary:hover{background:#16314e;border-color:#4f83aa;color:#fff}
.flow-secondary,body.hanpan-dark .flow-secondary{background:transparent;border:1px solid var(--flow-line);color:var(--flow-muted-blue)}
.flow-secondary:hover{background:#0d1a2b;color:#fff}

.flow-note{
  margin-top:15px;padding:13px 15px;border:1px solid var(--flow-line);border-radius:13px;
  background:#081827;color:#91aac0;font-size:11px;line-height:1.65
}

/* 서브페이지 */
.flow-page{min-height:100vh;background:linear-gradient(180deg,#07111f 0%,#091522 38%,#06101b 100%);color:var(--flow-text)}
.flow-wrap{max-width:1180px;margin:0 auto;padding:0 22px}
.flow-page-hero{padding:64px 0 34px}
.flow-back-bar{padding:22px 0 6px}
.flow-back-link,body.hanpan-dark .flow-back-link{display:inline-flex;align-items:center;color:var(--flow-muted-blue);font-size:13px;font-weight:900;text-decoration:none;cursor:pointer}
.flow-back-link:hover{color:#fff}
.flow-page-hero .kicker{color:var(--flow-blue);font-size:11px;font-weight:950;letter-spacing:.16em}
.flow-page-hero h1{margin:10px 0 12px;font-size:clamp(38px,5vw,66px);line-height:1.07;letter-spacing:-.055em;color:var(--flow-text)}
.flow-page-hero p{max-width:760px;margin:0;color:var(--flow-muted);font-size:16px;line-height:1.8}
.flow-page-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:24px}

.flow-block{padding:34px 0}
.flow-block-head{margin-bottom:18px}
.flow-block-head .small{color:var(--flow-blue);font-size:10px;font-weight:950;letter-spacing:.14em}
.flow-block-head h2{margin:6px 0 6px;font-size:28px;letter-spacing:-.04em}
.flow-block-head p{margin:0;color:var(--flow-muted);font-size:13px;line-height:1.7}

.start-reasons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.reason-card,.study-card,.practice-card,.check-card{
  border:1px solid var(--flow-line);border-radius:19px;background:var(--flow-card);color:inherit
}
.reason-card{padding:21px}
.reason-card .label{color:var(--flow-blue);font-size:10px;font-weight:950;letter-spacing:.11em}
.reason-card h3{margin:10px 0 8px;font-size:20px}
.reason-card p{margin:0;color:var(--flow-muted);font-size:13px;line-height:1.7}

.start-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.check-card{padding:16px 18px;display:flex;gap:13px;align-items:flex-start}
.check-index{flex:0 0 auto;width:29px;height:29px;border-radius:9px;background:#10243a;border:1px solid #294866;color:var(--flow-blue);display:grid;place-items:center;font-size:10px;font-weight:950}
.check-card strong{display:block;margin-bottom:4px;font-size:14px}
.check-card p{margin:0;color:var(--flow-muted);font-size:12px;line-height:1.6}

.study-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.study-card{padding:20px;text-decoration:none;display:flex;flex-direction:column;min-height:190px;transition:.18s}
.study-card:hover{transform:translateY(-2px);border-color:#315979;background:#10243a}
.study-card .code{color:#7290aa;font-size:10px;font-weight:950;letter-spacing:.12em}
.study-card h3{margin:13px 0 7px;font-size:20px}
.study-card p{margin:0;color:var(--flow-muted);font-size:12px;line-height:1.65}
.study-card .go{margin-top:auto;padding-top:18px;color:var(--flow-blue);font-size:12px;font-weight:900}

.practice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.practice-card{position:relative;padding:26px;text-decoration:none;min-height:270px;display:flex;flex-direction:column;overflow:hidden;transition:.18s}
.practice-card:hover{transform:translateY(-3px);border-color:#315979;background:#10243a}
.practice-card .code{font-size:10px;color:var(--flow-blue);font-weight:950;letter-spacing:.14em}
.practice-card h2{margin:14px 0 9px;font-size:30px;letter-spacing:-.04em}
.practice-card p{margin:0;color:var(--flow-muted);font-size:13px;line-height:1.75;max-width:520px}
.practice-card .features{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto;padding-top:26px}
.practice-card .features span{padding:6px 9px;border-radius:999px;background:#081827;border:1px solid #203955;color:#9fb8cc;font-size:10px;font-weight:850}
.practice-card .go{margin-top:14px;color:var(--flow-blue);font-size:13px;font-weight:950}

.learn-inline{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:20px;border:1px solid var(--flow-line);border-radius:17px;background:#0d1a2b
}
.learn-inline p{margin:0;color:var(--flow-muted);font-size:13px;line-height:1.7}
.learn-links{display:flex;gap:7px;flex-wrap:wrap}
.learn-links a,body.hanpan-dark .learn-links a{padding:8px 10px;border:1px solid #294866;border-radius:10px;background:#10243a;color:#cce0f2;text-decoration:none;font-size:11px;font-weight:900}

@media(max-width:1000px){
  .flow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .study-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .flow-section{padding:22px 0 40px}
  .flow-head{align-items:flex-start;flex-direction:column;gap:8px}
  .flow-head h2{font-size:26px}
  .flow-order{white-space:normal}
  .flow-card{min-height:210px;padding:18px}
  .flow-step{margin-bottom:22px}
  .flow-card h3{font-size:20px}
  .flow-page-hero{padding:42px 0 24px}
  .flow-page-hero p{font-size:14px}
  .start-reasons,.practice-grid{grid-template-columns:1fr}
  .start-checks{grid-template-columns:1fr}
  .learn-inline{align-items:flex-start;flex-direction:column}
}
@media(max-width:520px){
  .flow-grid{grid-template-columns:1fr 1fr;gap:9px}
  .flow-card{min-height:205px;padding:15px;border-radius:17px}
  .flow-step{margin-bottom:18px}
  .flow-num{min-width:30px;height:30px;border-radius:9px;font-size:9px}
  .flow-kind{display:none}
  .flow-card h3{font-size:18px}
  .flow-card>p{font-size:11px;line-height:1.62}
  .flow-tags{padding-top:18px;gap:4px}
  .flow-tags span{padding:4px 6px;font-size:9px}
  .flow-more{font-size:11px}
  .study-grid{grid-template-columns:1fr}
  .flow-wrap{padding:0 14px}
}


/* =========================================================
   공통 4축 하위 네비
========================================================= */
.hp-flow-subnav{
  position:sticky;top:72px;z-index:990;
  border-bottom:1px solid #203955;
  background:#07111f;
}
.hp-flow-subnav-inner{
  max-width:1180px;margin:0 auto;padding:8px 22px;
  display:flex;gap:7px;align-items:center;overflow-x:auto;
  scrollbar-width:none;
}
.hp-flow-subnav-inner::-webkit-scrollbar{display:none}
.hp-flow-subnav a,body.hanpan-dark .hp-flow-subnav a{
  flex:0 0 auto;text-decoration:none;
  padding:7px 10px;border-radius:9px;
  color:#8fa8bf;font-size:11px;font-weight:850;
  border:1px solid transparent;
}
.hp-flow-subnav a:hover{color:#fff;background:#10243a}
.hp-flow-subnav a.active{
  color:#dceaf6;background:#10243a;border-color:#294866
}
.hp-flow-subnav .hp-sub-home{
  color:#76c7ff;font-weight:950
}

/* 기존 하위 페이지에 삽입되는 흐름 표시 */
.hp-flow-context{
  max-width:1180px;margin:18px auto 0;padding:0 22px;
}
.hp-flow-context-box{
  display:flex;justify-content:space-between;gap:16px;align-items:center;
  padding:13px 15px;border:1px solid #203955;border-radius:13px;background:#081827;
}
.hp-flow-context-box strong{font-size:12px;color:#dceaf6}
.hp-flow-context-box span{font-size:11px;color:#829db4;line-height:1.55}
.hp-flow-context-box a,body.hanpan-dark .hp-flow-context-box a{font-size:11px;color:#76c7ff;text-decoration:none;font-weight:900;white-space:nowrap}

/* 투자생각 */
.thought-hero{padding:62px 0 30px}
.thought-kicker{color:#76c7ff;font-size:11px;font-weight:950;letter-spacing:.16em}
.thought-hero h1{margin:10px 0 12px;font-size:clamp(38px,5vw,64px);letter-spacing:-.055em;line-height:1.08}
.thought-hero p{max-width:760px;margin:0;color:#9ab0c7;font-size:15px;line-height:1.8}
.thought-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.thought-card{
  min-height:230px;padding:22px;border:1px solid #203955;border-radius:20px;
  background:#0d1a2b;text-decoration:none;color:inherit;
  display:flex;flex-direction:column;transition:.18s
}
.thought-card:hover{transform:translateY(-2px);border-color:#315979;background:#10243a}
.thought-card .meta{display:flex;justify-content:space-between;gap:12px;color:#6f8aa2;font-size:10px;font-weight:900}
.thought-card h2{margin:22px 0 8px;font-size:23px;letter-spacing:-.035em}
.thought-card p{margin:0;color:#9ab0c7;font-size:12px;line-height:1.72}
.thought-card .go{margin-top:auto;padding-top:22px;color:#76c7ff;font-size:12px;font-weight:950}
.thought-card.featured{grid-column:1/-1;min-height:260px;background:linear-gradient(135deg,#0d1a2b,#10243a)}
.thought-card.featured h2{font-size:29px}
.thought-detail{max-width:820px;margin:0 auto;padding:56px 22px 90px}
.thought-detail .back{display:inline-block;margin-bottom:30px;color:#76c7ff;text-decoration:none;font-size:12px;font-weight:900}
.thought-detail .category{color:#76c7ff;font-size:10px;font-weight:950;letter-spacing:.14em}
.thought-detail h1{margin:10px 0 14px;font-size:clamp(34px,5vw,56px);line-height:1.14;letter-spacing:-.05em}
.thought-detail .lead{margin:0 0 34px;color:#a9bfd2;font-size:16px;line-height:1.85}
.thought-section{margin:0 0 30px;padding:0 0 30px;border-bottom:1px solid #183048}
.thought-section:last-child{border-bottom:0}
.thought-section h2{margin:0 0 12px;font-size:22px;letter-spacing:-.035em}
.thought-section p{margin:0 0 12px;color:#b1c3d3;font-size:14px;line-height:1.9}
.thought-point{padding:16px 17px;border:1px solid #294866;border-radius:14px;background:#081827;color:#c9dceb;font-size:13px;line-height:1.75}
.thought-next{display:flex;justify-content:space-between;gap:10px;margin-top:36px}
.thought-next a,body.hanpan-dark .thought-next a{padding:11px 14px;border:1px solid #294866;border-radius:11px;background:#10243a;color:#dceaf6;text-decoration:none;font-size:12px;font-weight:900}

/* 차트패턴 족보 */
.pattern-toolbar{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}
.pattern-toolbar button{
  border:1px solid #294866;background:#10243a;color:#a9c0d5;
  padding:8px 11px;border-radius:10px;font-size:11px;font-weight:850
}
.pattern-toolbar button.active{color:#07111f;background:#76c7ff;border-color:#76c7ff}
.pattern-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.pattern-card{
  border:1px solid #203955;border-radius:18px;background:#0d1a2b;
  overflow:hidden;text-decoration:none;color:inherit;transition:.18s
}
.pattern-card:hover{transform:translateY(-2px);border-color:#315979;background:#10243a}
.pattern-chart{height:150px;padding:14px;background:#081827;border-bottom:1px solid #183048}
.pattern-chart svg{width:100%;height:100%;display:block}
.pattern-copy{padding:17px}
.pattern-copy .type{color:#76c7ff;font-size:9px;font-weight:950;letter-spacing:.12em}
.pattern-copy h3{margin:7px 0 7px;font-size:19px}
.pattern-copy p{margin:0;color:#91a9bf;font-size:11px;line-height:1.65}
.pattern-detail-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:18px}
.pattern-large-chart{min-height:380px;padding:22px;border:1px solid #203955;border-radius:20px;background:#081827}
.pattern-large-chart svg{width:100%;height:330px}
.pattern-side{display:flex;flex-direction:column;gap:10px}
.pattern-info{padding:17px;border:1px solid #203955;border-radius:15px;background:#0d1a2b}
.pattern-info h3{margin:0 0 8px;font-size:15px}
.pattern-info p{margin:0;color:#9ab0c7;font-size:12px;line-height:1.72}

/* 복기 페이지명 변환 시 추가되는 설명 */
.hp-review-intro{
  margin:0 0 18px;padding:15px 16px;border:1px solid #203955;border-radius:14px;background:#081827
}
.hp-review-intro strong{display:block;margin-bottom:5px;color:#eef5ff;font-size:13px}
.hp-review-intro p{margin:0;color:#91aac0;font-size:11px;line-height:1.65}

@media(max-width:900px){
  .thought-grid{grid-template-columns:1fr}
  .thought-card.featured{grid-column:auto}
  .pattern-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pattern-detail-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
  .hp-flow-subnav{top:64px}
  .hp-flow-subnav-inner{padding:7px 14px}
  .hp-flow-context{padding:0 14px}
  .hp-flow-context-box{align-items:flex-start;flex-direction:column}
  .thought-grid,.pattern-grid{grid-template-columns:1fr}
  .thought-card{min-height:210px}
  .thought-card.featured h2{font-size:23px}
  .thought-detail{padding:38px 14px 70px}
  .thought-next{flex-direction:column}
}


/* =========================================================
   MOBILE POLISH — 실제 360~430px 점검 보정
========================================================= */
@media(max-width:520px){
  .flow-home .market-hero h1{
    font-size:34px !important;
    line-height:1.14 !important;
    letter-spacing:-.045em !important;
  }
  .flow-home .market-hero .lead{
    font-size:13px !important;
    line-height:1.65 !important;
  }
  .flow-home .market-hero-copy .hero-actions{
    gap:7px;
    margin-top:20px;
  }
  .flow-home .flow-primary,
  .flow-home .flow-secondary{
    min-height:40px;
    padding:0 12px;
    font-size:11px;
  }
  .flow-home .flow-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  .flow-home .flow-card{
    min-height:185px;
    padding:15px 14px;
  }
  .flow-home .flow-card h3{
    font-size:19px;
  }
  .flow-home .flow-card>p{
    font-size:12px !important;
    line-height:1.58;
  }
  .flow-home .flow-tags{
    display:none;
  }
  .flow-home .flow-more{
    margin-top:auto;
    padding-top:16px;
    font-size:10.5px;
  }
  .flow-home .flow-note{
    font-size:10px;
    line-height:1.6;
  }
}
@media(max-width:360px){
  .flow-home .market-hero h1{font-size:32px !important}
  .flow-home .flow-card{padding:14px 12px}
  .flow-home .flow-card h3{font-size:18px}
  .flow-home .flow-card>p{font-size:10.5px}
}

body{background:#07111f;color:#eef5ff}.hanpan-dark{background:#07111f!important;color:#eef5ff!important}.flow-home .site-header{display:none!important}

/* 2026-08-15 구조 확정: 투자 시작 -> 투자 실전 -> 투자 복기 */
/* 주의: .flow-grid.flow-grid-three는 .flow-grid보다 명시도가 높아, 이 클래스가 함께 붙은 요소는
   1000px 이하에서 .flow-grid의 2열 반응형 규칙(151~154줄)을 무시하고 계속 3열로 보일 수 있습니다.
   실제로 flow-grid-three를 쓰는 페이지가 있다면 반응형 동작을 직접 확인해보세요. */
.flow-grid.flow-grid-three{grid-template-columns:repeat(3,minmax(0,1fr));max-width:980px}
@media(max-width:900px){.flow-grid.flow-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.flow-grid.flow-grid-three{grid-template-columns:1fr}}
