/* TJ_SERVICE_TITLES_MATCH_NAV_20261107
   Category/section headings reflect their existing top service menu colours.
   No board layout, data, or control behaviour is modified. */
/* Match the label treatment across the four service screens. */
#machines-inline-view:not([hidden]) .tj-machines-sidebar h2,
#machines-inline-view:not([hidden]) .um-heading h1,
body:has(.nav-extra .nav-service--promotion.active) #side-panel h2,
body:has(.nav-extra .nav-service--promotion.active) .sb-heading h1,
body:has(.nav-extra .nav-service--outsourcing.active) #side-panel h2,
body:has(.nav-extra .nav-service--outsourcing.active) .sb-heading h1,
body:has(.nav-extra .nav-service--documents.active) #side-panel h2,
body:has(.nav-extra .nav-service--documents.active) .td-heading h1 {
  display:inline-block !important;
  width:auto !important;
  max-width:100%;
  box-sizing:border-box;
  padding:7px 12px !important;
  border-radius:7px !important;
  color:#fff !important;
  line-height:1.35 !important;
  vertical-align:middle;
}
/* Upper-left category header: always white lettering, even when document CSS overrides. */
#page-container.layout-with-side:has(.tj-doc-active) > .side-panel h2,
body:has(.nav-extra .nav-service--documents.active) #side-panel h2 {
  background:#465671 !important;
  color:#fff !important;
}
#page-container.layout-with-side .content-card.tj-doc-active .td-heading h1,
body:has(.nav-extra .nav-service--documents.active) .td-heading h1 {
  background:#465671 !important;
  color:#fff !important;
}
#machines-inline-view:not([hidden]) .tj-machines-sidebar h2,
#machines-inline-view:not([hidden]) .um-heading h1 { background:#147d78 !important; }
body:has(.nav-extra .nav-service--promotion.active) #side-panel h2,
body:has(.nav-extra .nav-service--promotion.active) .sb-heading h1 { background:#2465ca !important; }
body:has(.nav-extra .nav-service--outsourcing.active) #side-panel h2,
body:has(.nav-extra .nav-service--outsourcing.active) .sb-heading h1 { background:#b9781f !important; }
/* Keep document sidebar category items at approved normal weight and compact spacing. */
#page-container.layout-with-side:has(.tj-doc-active) > .side-panel a {
  font-weight:400 !important;
  padding-top:8px !important;
  padding-bottom:8px !important;
}

/* TJ_DOC_TITLE_TOP_ALIGN_20261107
   Keep the document page heading aligned to the same top position as the other service pages. */
#page-container.layout-with-side > .side-panel h2,
body:has(.nav-extra .nav-service--documents.active) #side-panel h2 {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}
#page-container.layout-with-side .content-card.tj-doc-active .td-heading,
body:has(.nav-extra .nav-service--documents.active) .td-heading {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
#page-container.layout-with-side .content-card.tj-doc-active .td-heading h1,
body:has(.nav-extra .nav-service--documents.active) .td-heading h1 {
  margin-top: 0 !important;
}

/* TJ_SERVICE_SIDEBAR_REGULAR_20261107
 * Regular-weight ONLY for sidebar category choices.
 * Keep headers, colors, selected backgrounds, spacing and layout unchanged. */
#machines-inline-view:not([hidden]) .tj-machines-sidebar button,
body:has(.nav-extra .nav-service--promotion.active) #side-panel a,
body:has(.nav-extra .nav-service--outsourcing.active) #side-panel a,
body:has(.nav-extra .nav-service--documents.active) #side-panel a,
#page-container.layout-with-side:has(.tj-doc-active) > .side-panel a {
  font-weight: 400 !important;
}

/* TJ_SIDEBAR_TITLE_EQUAL_128PX_20261107
   Equal-width left title chips, matching the original document category title.
   Does not affect menu items or the large content heading. */
#machines-inline-view:not([hidden]) .tj-machines-sidebar h2,
body:has(.nav-extra .nav-service--promotion.active) #side-panel h2,
body:has(.nav-extra .nav-service--outsourcing.active) #side-panel h2,
body:has(.nav-extra .nav-service--documents.active) #side-panel h2,
#page-container.layout-with-side:has(.tj-doc-active) > .side-panel h2 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  width: 128px !important;
  height: 37px !important;
  max-width: 100% !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
  color: #fff !important;
}
/* Longest title fits within the same 128px chip, on one line. */
#machines-inline-view:not([hidden]) .tj-machines-sidebar h2 {
  font-size: 13px !important;
  letter-spacing: -0.4px !important;
}

/* TJ_SIDEBAR_TITLE_SAME_FONT_16PX_20261107
 * Fixed the 13px machine-only rule from earlier ZIP.
 * All 4 service sidebar title boxes have matching outer size and 16px text. */
#machines-inline-view:not([hidden]) .tj-machines-sidebar h2,
body:has(.nav-extra .nav-service--promotion.active) #side-panel h2,
body:has(.nav-extra .nav-service--outsourcing.active) #side-panel h2,
body:has(.nav-extra .nav-service--documents.active) #side-panel h2,
#page-container.layout-with-side:has(.tj-doc-active) > .side-panel h2 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 168px !important;
  height: 39px !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: -0.5px !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  color: #fff !important;
}

/* TJ_MACHINE_SIDEBAR_TOP_4PX_20261107 */
#machines-inline-view:not([hidden]) .tj-machines-sidebar { padding-top: 8px !important; }

/* TJ_SERVICE_SIDE_ITEM_172X39_20261107
   Four services: same 172 x 39px category buttons as documents '전체 자료'.
   Sidebar heading labels and document contents stay untouched. */
#machines-inline-view:not([hidden]) .tj-machines-sidebar button[data-um-nav],
body:has(.nav-extra .nav-service--promotion.active) #side-panel a,
body:has(.nav-extra .nav-service--outsourcing.active) #side-panel a,
body:has(.nav-extra .nav-service--documents.active) #side-panel a,
#page-container.layout-with-side:has(.tj-doc-active) > .side-panel a {
  display: flex !important;
  align-items: center !important;
  width: 172px !important;
  max-width: 100% !important;
  height: 39px !important;
  min-height: 39px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  padding: 0 10px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

/* TJ_FOUR_SERVICE_COMPACT_HEADINGS_20261107
 * Option C: the LEFT sidebar is a small navigation hint, the MAIN title is smaller.
 * Original service colors, menu entries, card sizes, routing and DB unchanged. */
#machines-inline-view:not([hidden]) .tj-machines-sidebar h2,
body:has(.nav-extra .nav-service--promotion.active) #side-panel h2,
body:has(.nav-extra .nav-service--outsourcing.active) #side-panel h2,
body:has(.nav-extra .nav-service--documents.active) #side-panel h2,
#page-container.layout-with-side:has(.tj-doc-active) > .side-panel h2 {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 24px !important;
  margin: 0 4px 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}
/* Visual indicator without altering the headings' original accessible DOM text. */
#machines-inline-view:not([hidden]) .tj-machines-sidebar h2::before,
body:has(.nav-extra .nav-service--promotion.active) #side-panel h2::before,
body:has(.nav-extra .nav-service--outsourcing.active) #side-panel h2::before,
body:has(.nav-extra .nav-service--documents.active) #side-panel h2::before,
#page-container.layout-with-side:has(.tj-doc-active) > .side-panel h2::before {
  content: '▦';
  display: inline-block;
  margin-right: 7px;
  color: #7b8da5 !important;
  font-size: 17px !important;
  font-weight: 400 !important;
}
#machines-inline-view:not([hidden]) .tj-machines-sidebar h2::after,
body:has(.nav-extra .nav-service--promotion.active) #side-panel h2::after,
body:has(.nav-extra .nav-service--outsourcing.active) #side-panel h2::after,
body:has(.nav-extra .nav-service--documents.active) #side-panel h2::after,
#page-container.layout-with-side:has(.tj-doc-active) > .side-panel h2::after {
  color: #65758c !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}
#machines-inline-view:not([hidden]) .tj-machines-sidebar h2::after {content: '거래 메뉴';}
body:has(.nav-extra .nav-service--promotion.active) #side-panel h2::after {content: '홍보 메뉴';}
body:has(.nav-extra .nav-service--outsourcing.active) #side-panel h2::after {content: '의뢰 메뉴';}
body:has(.nav-extra .nav-service--documents.active) #side-panel h2::after,
#page-container.layout-with-side:has(.tj-doc-active) > .side-panel h2::after {content: '자료 분류';}
/* One clear service title in the right-hand content; keep each service's color. */
#machines-inline-view:not([hidden]) .um-heading h1,
body:has(.nav-extra .nav-service--promotion.active) .sb-heading h1,
body:has(.nav-extra .nav-service--outsourcing.active) .sb-heading h1,
body:has(.nav-extra .nav-service--documents.active) .td-heading h1,
#page-container.layout-with-side .content-card.tj-doc-active .td-heading h1 {
  font-size: 21px !important;
  padding: 5px 10px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
}

/* TJ_FOUR_SERVICE_REG_BUTTON_COMPACT_20261107
 * Only the top-right registration action on the four service screens.
 * Keep button color, click handlers, all other controls and page layout. */
#machines-inline-view:not([hidden]) .um-heading > #um-new,
body:has(.nav-extra .nav-service--promotion.active) .sb-heading > button,
body:has(.nav-extra .nav-service--outsourcing.active) .sb-heading > button,
body:has(.nav-extra .nav-service--documents.active) .td-heading > button {
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 0 !important;
  padding: 7px 12px !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
}


/* TJ_FOUR_SERVICE_REG_BUTTON_SMALLER_20261107
   Fine tuning: the four top-right register buttons only. */
#machines-inline-view:not([hidden]) .um-heading > #um-new,
body:has(.nav-extra .nav-service--promotion.active) .sb-heading > button,
body:has(.nav-extra .nav-service--outsourcing.active) .sb-heading > button,
body:has(.nav-extra .nav-service--documents.active) .td-heading > button {
  height: 32px !important;
  min-height: 32px !important;
  padding: 4px 9px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  border-radius: 5px !important;
}

/* TJ_FOOTER_CLEAN_20261107
   Clean footer inspired by a recruitment site layout.
   Visual cleanup only: no routing, DB or other board logic changes. */
.site-footer.tj-clean-footer {
  margin-top: 28px !important;
  border-top: 1px solid #e4e9f0 !important;
  background: #fff !important;
}
.site-footer.tj-clean-footer .tj-footer-inner {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 28px 15px 34px !important;
  text-align: center !important;
}
.site-footer.tj-clean-footer .tj-footer-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  margin-bottom: 18px !important;
}
.site-footer.tj-clean-footer .tj-footer-links > span {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  color: #33475b !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  padding: 0 14px !important;
  white-space: nowrap !important;
}
.site-footer.tj-clean-footer .tj-footer-links > span + span::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  width: 1px !important;
  height: 13px !important;
  background: #d6dde6 !important;
  transform: translateY(-50%) !important;
}
.site-footer.tj-clean-footer .tj-footer-brand {
  color: #243648 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin-bottom: 6px !important;
}
.site-footer.tj-clean-footer .tj-footer-meta,
.site-footer.tj-clean-footer .tj-footer-copy {
  color: #6b7c8f !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
}
.site-footer.tj-clean-footer .tj-footer-meta--sub {
  margin-bottom: 6px !important;
}
.site-footer.tj-clean-footer .tj-footer-copy {
  color: #8b97a6 !important;
}
@media (max-width: 760px) {
  .site-footer.tj-clean-footer .tj-footer-inner {
    padding: 22px 14px 28px !important;
  }
  .site-footer.tj-clean-footer .tj-footer-links {
    justify-content: flex-start !important;
    row-gap: 8px !important;
  }
  .site-footer.tj-clean-footer .tj-footer-links > span {
    padding: 0 10px !important;
    font-size: 13px !important;
  }
  .site-footer.tj-clean-footer .tj-footer-links > span:first-child {
    padding-left: 0 !important;
  }
  .site-footer.tj-clean-footer .tj-footer-brand {
    font-size: 17px !important;
  }
  .site-footer.tj-clean-footer .tj-footer-meta,
  .site-footer.tj-clean-footer .tj-footer-copy {
    font-size: 12px !important;
  }
}

/* TJ_SERVICE_SIDE_HEADING_MATCH_MACHINE_20261109
 * Only promotion, outsourcing, documents: match machine left sidebar title origin.
 * Machine board and all other layout/functionality remain untouched.
 */
body:has(.nav-extra .nav-service--promotion.active) #side-panel,
body:has(.nav-extra .nav-service--outsourcing.active) #side-panel,
body:has(.nav-extra .nav-service--documents.active) #side-panel {
  padding-top: 8px !important;
}
body:has(.nav-extra .nav-service--promotion.active) #side-panel h2,
body:has(.nav-extra .nav-service--outsourcing.active) #side-panel h2,
body:has(.nav-extra .nav-service--documents.active) #side-panel h2 {
  margin: 0 4px 8px !important;
  font-size: 0 !important;
}
body:has(.nav-extra .nav-service--promotion.active) #side-panel h2::after,
body:has(.nav-extra .nav-service--outsourcing.active) #side-panel h2::after,
body:has(.nav-extra .nav-service--documents.active) #side-panel h2::after {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

/* TJ_MACHINE_SIDEBAR_HEADING_GAP_MATCH_PROMOTION_20261109
 * Machine sidebar alone: flex gap is 5px, so reduce the heading's
 * bottom margin by 5px to match promotion's heading-to-first-item space.
 * No other service, layout, font, or functional selector is changed. */
#machines-inline-view:not([hidden]) .tj-machines-sidebar h2 {
  margin-bottom: 3px !important;
}
