/* SobangNet v11.12.3 UX hotfix — mobile readability, menu visibility, footer rhythm, dark-section contrast */

/* 1) Home supporting copy: keep it compact and predictable. */
.home-hsub-mobile{display:none}
.home-hsub-desktop>span,
.home-hsub-mobile>span{display:block}

/* 2) Dark sections: later global heading rules must never make navy text disappear on dark backgrounds. */
.dark h1,.dark h2,.dark h3,.dark h4{color:#fff!important;opacity:1!important}
.dark p{opacity:1}
.channel-final h2{color:#fff!important}
.channel-final-copy{color:#E8EDF3!important;opacity:1!important}
.channel-final .channel-role{color:#CDD6E1!important;opacity:1!important}
.channel-final .channel-role b{color:#fff!important}
.channel-final .channel-free-note{color:#E0E6ED!important;opacity:1!important}

/* 3) Footer: preserve three aligned columns on ordinary PC widths and reduce avoidable vertical height. */
footer{padding:40px 0 0!important}
footer .fin{
  grid-template-columns:minmax(260px,1.02fr) minmax(300px,1fr) minmax(300px,1.08fr)!important;
  gap:38px!important;
  align-items:start!important;
}
footer .fc1{grid-column:auto!important}
footer .fin>div:nth-child(2)>ul{
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:18px;
  row-gap:8px;
  align-content:start;
}
footer .fbrand .fbt,
footer .fbrand .fbc,
footer .fbrand .fbc a,
footer .fbiz dd,
footer ul,
footer li,
footer a{color:#D7E0EA!important;opacity:1!important}
footer .fbrand .fbc span,
footer .fsrc li,
footer .fver,
footer .fbiz dt,
footer .fbot{color:#B7C4D3!important;opacity:1!important}
footer .fsrc a{color:#E4EAF1!important}
footer h4,footer .fbn{color:#fff!important}
footer .fbot{margin-top:28px!important}

/* 4) Mobile/tablet navigation: always expose an obvious hamburger when desktop nav is hidden. */
@media(max-width:1040px){
  nav.menu,.hcta{display:none!important}
  .ham{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:52px!important;
    min-height:46px!important;
    margin-left:auto!important;
    gap:5px!important;
    color:#16305C!important;
  }
  .ham .hamb{display:flex!important;flex-direction:column!important;gap:4px!important;align-items:center!important}
  .ham .hamb i{display:block!important;width:22px!important;height:2px!important;background:#16305C!important;opacity:1!important}
  .ham .hamt{display:block!important;color:#16305C!important;font-size:10px!important;font-weight:850!important;line-height:1!important}
  .mnav{z-index:1000!important}
  .mnav.open{display:block!important}
}

/* Avoid the old 1040px footer breakpoint creating a tall, visually unbalanced PC footer. */
@media(min-width:881px) and (max-width:1180px){
  footer .fin{
    grid-template-columns:minmax(220px,.95fr) minmax(260px,1fr) minmax(260px,1.05fr)!important;
    gap:26px!important;
  }
  footer .fc1{grid-column:auto!important}
  footer .fin>div:nth-child(2)>ul{column-gap:12px}
}

@media(max-width:880px){
  footer .fin{grid-template-columns:1fr 1fr!important;gap:28px!important}
  footer .fc1{grid-column:1/-1!important}
}

@media(max-width:640px){
  .home-hsub-desktop{display:none!important}
  .home-hsub-mobile{display:block!important;margin-top:14px!important;font-size:13.6px!important;line-height:1.58!important;letter-spacing:-.045em!important}
  .home-hsub-mobile>span{white-space:nowrap}

  /* Keep the header controls legible and reserve room for the menu button. */
  .hd{gap:10px!important}
  .brand{min-width:0}
  .lgm{max-width:140px;height:29px!important;object-fit:contain}
  .ham{flex:0 0 auto!important}

  .channel-final{padding-top:42px!important;padding-bottom:42px!important}
  .channel-final h2{font-size:24px!important;line-height:1.35!important}
  .channel-final-copy,.channel-final .channel-free-note{font-size:13px!important;line-height:1.65!important}

  footer{padding:32px 0 92px!important}
  footer .fin{grid-template-columns:1fr!important;gap:24px!important}
  footer .fc1{grid-column:auto!important}
  footer .fin>div:nth-child(2)>ul{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:8px}
  footer .fbot{padding-left:18px!important;padding-right:18px!important}
}

@media(max-width:380px){
  .home-hsub-mobile{font-size:12.8px!important;letter-spacing:-.055em!important}
  .home-hsub-mobile>span{white-space:nowrap}
  footer .fin>div:nth-child(2)>ul{grid-template-columns:1fr}
}

/* v11.12.6: mobile full menu overlay. Kept outside the sticky header stacking context by site-v19.js. */
@media(max-width:1040px){
  body>.sn-mobile-menu-overlay{
    display:none!important;
    position:fixed!important;
    left:0!important;
    right:0!important;
    top:64px!important;
    bottom:0!important;
    z-index:2147483000!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:12px 20px calc(28px + env(safe-area-inset-bottom))!important;
    background:#fff!important;
    color:#17181A!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
    border-top:1px solid #E9E2D9!important;
    box-shadow:0 18px 40px rgba(15,37,64,.14)!important;
  }
  body>.sn-mobile-menu-overlay.open{display:block!important;visibility:visible!important;opacity:1!important}
  body>.sn-mobile-menu-overlay>a{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    min-height:58px!important;
    padding:0 4px!important;
    border-bottom:1px solid #ECE7E1!important;
    color:#16305C!important;
    font-size:17px!important;
    font-weight:800!important;
    letter-spacing:-.035em!important;
    opacity:1!important;
  }
  body>.sn-mobile-menu-overlay>a:after{content:'›'!important;color:#9A938A!important;font-size:22px!important;font-weight:400!important}
  body>.sn-mobile-menu-overlay .mc{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin-top:18px!important;
    padding-bottom:12px!important;
  }
  body>.sn-mobile-menu-overlay .mc a{
    min-height:50px!important;
    justify-content:center!important;
    border-bottom:0!important;
    font-size:15px!important;
    font-weight:850!important;
  }
  body>.sn-mobile-menu-overlay .mc a:after{content:none!important}
  html.sn-menu-open{overflow:hidden!important}
}
@media(max-width:640px){
  body>.sn-mobile-menu-overlay{top:60px!important;padding-left:18px!important;padding-right:18px!important}
}
