/* 제작 가이드 -- html/sub_guide/info/main.asp
   CSS ONLY ON THE LEGACY MARKUP: both lanes serve the same .guide_wrap tree and
   this sheet, linked for this page alone, is the whole difference between them. */

@media (max-width: 1023px) {
.sub_wrap { padding: 30px 0 0; }

.sub_wrap .sub_default > .sub_h1 {
  font-size: 32px; font-weight: 900; color: #222;
  letter-spacing: -.02em; padding: 0 16px; line-height: 1.5;
  font-family: "Pretendard Variable", "Pretendard", "Malgun Gothic", sans-serif;
}

.sub_wrap .sub_default > .sub_p {
  font-size: 15px; color: #888; margin: 14px 0 8px; padding: 0 16px;
  line-height: 1.5; letter-spacing: -0.14px;
  font-family: "Pretendard Variable", "Pretendard", "Malgun Gothic", sans-serif;
}

/* .guide_wrap IS the .sub_cont_box, so `margin: 0 auto` also cancels its 70px top. */

.sub_wrap .guide_wrap {
  --c-primary: #159fda;
  max-width: 1200px; margin: 0 auto; padding: 0 30px 90px;
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 14px; line-height: 1.5; letter-spacing: -.01em; color: #3a3d44;
  text-align: left;
}

.sub_wrap .guide_wrap,
.sub_wrap .guide_wrap *,
.sub_wrap .guide_wrap *::before,
.sub_wrap .guide_wrap *::after { box-sizing: border-box; }

.sub_wrap .guide_wrap .sub_notice {
  font-size: 12px; color: #bbb; text-align: right; margin: 0 0 20px;
}

/* Top tabs.  The clearfix ::after would become a THIRD flex item once the list
   turns into a flex row, so it is switched off rather than left to be sized. */

.sub_wrap .guide_wrap .tab_btn_wrap {
  display: flex; border: 1px solid #d5d9df; border-radius: 2px;
  overflow: hidden; margin-bottom: 26px;
}

.sub_wrap .guide_wrap .tab_btn_wrap::after { display: none; }

.sub_wrap .guide_wrap .tab_btn_wrap > li {
  display: block; float: none; flex: 1; height: auto;
  padding: 18px 0; font-weight: 700; line-height: normal;
  letter-spacing: normal; background: #fafbfc;
  border: 0; border-right: 1px solid #eef0f3;
}

/* The legacy .active rule out-ranks the one above, so the divider has to be
   restated here -- and :last-child has to come after it to win the tie. */

.sub_wrap .guide_wrap .tab_btn_wrap > li.active {
  color: #222; background: #fff; box-shadow: inset 0 -3px 0 #333;
  border: 0; border-right: 1px solid #eef0f3;
}

.sub_wrap .guide_wrap .tab_btn_wrap > li:last-child { border-right: 0; }

.sub_wrap .guide_wrap .tab_btn_wrap > li > span { display: block; }

.sub_wrap .guide_wrap .tab_cont_wrap { margin-top: 0; }

/* Sub tabs.  The pill sits on the <a>, the <li> is only the flex item: the
   legacy hover rule paints its underline on the <a> and has to be met there. */

.sub_wrap .guide_wrap .tab_btn_wrap2_1 {
  display: flex; flex-wrap: wrap; gap: 0;
  padding: 6px; margin: 0 0 36px;
  background: #f4f5f7; border: 0; border-radius: 4px;
}

.sub_wrap .guide_wrap .tab_btn_wrap2_1 > li { margin: 0; }

.sub_wrap .guide_wrap .tab_btn_wrap2_1 > li > a {
  display: block; padding: 10px 20px; border-radius: 4px;
  font-size: 14.5px; font-weight: 600; line-height: normal; letter-spacing: normal;
  color: #888; text-align: center;
}

.sub_wrap .guide_wrap .tab_btn_wrap2_1 > li > a:hover {
  color: var(--c-primary); font-weight: 600; border-bottom: 0;
}

.sub_wrap .guide_wrap .tab_btn_wrap2_1 > li.active2_1 > a,
.sub_wrap .guide_wrap .tab_btn_wrap2_1 > li.active2_1 > a:hover {
  color: #222; font-weight: 800; background: #fff; border-bottom: 0;
}

/* One guide entry.  Its separator is the BOTTOM border, which is why the parity
   gate for this page runs with deco_edges on -- the default capture is top-only. */

.sub_wrap .guide_wrap .basic_box {
  align-items: flex-start; gap: 36px;
  padding: 30px 0; border-bottom: 1px solid #f0f2f4;
}

.sub_wrap .guide_wrap .basic_box::after { display: none; }

.sub_wrap .guide_wrap .basic_box:last-child { border-bottom: 0; }

.sub_wrap .guide_wrap .basic_box > li:first-child {
  display: flex; flex-direction: column; gap: 10px;
  flex: 0 0 340px; margin: 0;
}

.sub_wrap .guide_wrap .basic_box > li:first-child > img {
  float: none; background: #f4f5f7; border: 1px solid #eef0f3; border-radius: 8px;
}

.sub_wrap .guide_wrap .basic_box > li:last-child {
  display: block; flex: 1; min-width: 0;
}

/* base.css and main_renewal.css both give .mt10 `margin-top:10px !important`. */

.sub_wrap .guide_wrap .basic_box .explan { float: none; margin-top: 0 !important; }

.sub_wrap .guide_wrap .basic_box .explan h4 {
  font-size: 19px; font-weight: 800; color: #222; margin: 0 0 12px;
}

.sub_wrap .guide_wrap .basic_box .txt_flex { display: block; }

.sub_wrap .guide_wrap .basic_box .txt_flex p {
  display: block; font-size: 14px; color: #666; line-height: 1.9; margin: 0 0 8px;
}

/* Both colour tokens keep sub.css's !important ink -- #159fda and #ff5f82 -- and
   that is what the mockup body rendered too, its own colours never out-ranking
   them.  Only the weight the mockup added is restated here. */

.sub_wrap .guide_wrap .txt_flex .key_color,
.sub_wrap .guide_wrap .txt_flex .coral_color { font-weight: 600; }

.sub_wrap .guide_wrap .txt_flex .txt_underline { text-decoration: none; }

.sub_wrap .guide_wrap .txt_flex p span.txtimg {
  position: static; vertical-align: middle; height: auto; margin: 0 4px;
}

/* float:left from `.guide_wrap .basic_box img` reaches this inline image too,
   and a float BLOCKIFIES display -- so `display:inline` alone reads as block. */

.sub_wrap .guide_wrap .txt_flex p span.txtimg img {
  display: inline; float: none;
}
}

@media (max-width: 1023px) {
  .sub_wrap { padding-top: 16px; }
  .sub_wrap .guide_wrap { padding: 0 16px 50px; }
  .sub_wrap .sub_default > .sub_h1 { font-size: 24px; }
  .sub_wrap .guide_wrap .tab_btn_wrap > li { padding: 14px 0; font-size: 14px; }

  .sub_wrap .guide_wrap .tab_btn_wrap2_1 {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  }
  .sub_wrap .guide_wrap .tab_btn_wrap2_1::-webkit-scrollbar { display: none; }
  .sub_wrap .guide_wrap .tab_btn_wrap2_1 > li { flex: 0 0 auto; }
  .sub_wrap .guide_wrap .tab_btn_wrap2_1 > li > a {
    padding: 9px 14px; font-size: 13.5px; white-space: nowrap;
  }

  .sub_wrap .guide_wrap .basic_box { flex-direction: column; gap: 16px; padding: 22px 0; }
  .sub_wrap .guide_wrap .basic_box > li:first-child { flex: none; width: 100%; }
  .sub_wrap .guide_wrap .basic_box .explan h4 { font-size: 17px; }
}
