/*
  Purpose: Hide the bottom "취소" button on board write forms
  Scope: PC and Mobile board write UIs (section#bo_w)
  Note: Non-destructive, easy to roll back by removing this file or link.
  Last updated: 2025-10-31 15:02 KST
*/

/* PC (BS4-based) write skins: bottom grid has two columns; left is the Cancel anchor */
#bo_w .row.mx-n2 .col-6.order-1 > a.btn.btn-basic.btn-lg.btn-block.en {
  display: none !important;
}

/* Expand submit to full-width when using 2-col layout (hide empty left col) */
#bo_w .row.mx-n2 > .col-6.order-1 {
  display: none !important;
}
#bo_w .row.mx-n2 > .col-6.order-2 {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}
#bo_w #btn_submit {
  width: 100% !important;
}

/* Generic fallback: if structure differs but uses the same Cancel class block */
#bo_w .btn_confirm .btn_cancel,
#bo_w a.btn_cancel {
  display: none !important;
}

/* Mobile/basic write: make submit button full width */
#bo_w .btn_confirm .btn_submit { width: 100% !important; }

/* Header sticky/fixed off (PC). Prevent top menus following scroll. */
@media (min-width: 992px) {
  /* Sticky container: neutralize sticky/fixed but keep it visible */
  #nt_sticky { position: static !important; top: auto !important; display: block !important; }
  /* Common header/nav ids */
  #nt_header,
  #hd,
  #gnb {
    position: static !important;
    top: auto !important;
    inset-block-start: auto !important; /* logical top */
    box-shadow: none !important;
  }
  /* If theme toggles .ctsticky for fixed mode, neutralize */
  #nt_header.ctsticky { position: static !important; top: auto !important; }
  /* Remove any reserved top padding introduced for sticky headers */
  body, #wrapper, #container_wr { padding-top: 0 !important; }
}

/* Font Awesome compatibility shim
   Problem: Markup occasionally uses FA5/FA6-style classes (fa-solid/fas/far/fab)
            while the site loads Font Awesome 4.x assets.
   Fix: Map those classes to use the FA4 font family so pseudo-elements render.
   Scope: safe override; does not change layout. */
i.fa-solid,
i.fa-regular,
i.fa-brands,
i.fas,
i.far,
i.fab,
span.fa-solid,
span.fa-regular,
span.fa-brands,
span.fas,
span.far,
span.fab {
  font-family: 'FontAwesome' !important;
  font-style: normal; /* avoid italics if any theme sets it */
  font-weight: normal !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
