/* Header, Footer, Layout 관련 CSS 작성 */

/* Header { */
.header {position: fixed; z-index: 100; top: 0; left: 0; right: 0; background-color: var(--color-white); border-bottom: 1px solid transparent;}
.header-container {position: relative; z-index: 1; padding: 0 1.5rem; background-color: inherit;}
.header-wrapper {width: max(100vw - 120px, 1800px); max-width: 100%; margin: 0 auto; padding-top: 10px;}
.header-inner {display: flex; align-items: center; gap: 70px;}

.header-top {}
.header-link-box {margin-left: auto;}
.header-link {flex-shrink: 0; display: flex; align-items: center; padding: 8px 18px; gap: 8px; background-color: inherit; border: 1px solid var(--color-gray-500); border-radius: 30px; color: #2C2C2C; font-size: var(--fs-16); line-height: 1; transition: background-color 0.3s;}
.header-link:hover {background-color: #fafafa;}
.header-link i {font-size: 1.0625em;}

/* .header-bottom {padding-top: 10px;} */
.header-logo {position: absolute; top: 50%; left: clamp(1.5rem, calc((100vw - 1800px) / 2), 60px); transform: translateY(-50%); translate: 0 var(--header-logo-offset, 0px); font-size: 0;}
.header-logo a {display: block; padding-top: 5px;} /* 시각 보정 */
.header-logo img {display: block; width: 311px; object-fit: contain;}

.header-nav {display: flex; flex: 0 1 900px; max-width: calc(100% - 400px); min-width: 0; margin-left: auto;}
.gnb {display: flex; align-items: center; gap: 10px; width: 100%;}
.gnb-item {position: relative; display: flex; align-items: center; flex: 1; padding: 24px 10px;}
.gnb-link {display: block; width: 100%; color: var(--color-black); font-size: var(--fs-gnb); font-weight: 600; line-height: 1.18; text-align: center; transition: color 0.3s;}
.gnb-link:hover, .gnb-link:focus-visible, .gnb-item:where(.is-active, .is-current) > .gnb-link {color: var(--color-main);}
.gnb-link::before {content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%) scale(0); width: 6px; aspect-ratio: 1 / 1; border-radius: 20px; background-color: currentColor; transition: transform 0.3s;}
.gnb-link:hover::before, .gnb-link:focus-visible::before, .gnb-item:where(.is-active, .is-current) > .gnb-link::before {transform: translateX(-50%) scale(1);}

.header-bg {opacity: 0; visibility: hidden; pointer-events: none; position: absolute; z-index: 0; top: 100%; left: 0; right: 0; height: 72px; background-color: var(--color-white); border: 1px solid #DDDDDD; border-left: none; border-right: none; box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);}
.gnb-dep2 {opacity: 0; visibility: hidden; pointer-events: none; position: absolute; top: 100%; display: flex; align-items: center; justify-content: end; gap: 30px; max-width: 100vw; min-height: 72px; padding: 16px 1.5rem 20px;}
.gnb-dep2 {left: 0;}
.gnb-dep2:where([data-dep1="과학관 정책공유"], [data-dep1="과학관 찾기"]) {left: unset; right: 0;}
.gnb-dep2-item {flex: 1 0 150px; min-width: max-content; text-align: center;}
.gnb-dep2-link {position: relative; display: inline-block; color: #3E3E3E; font-size: var(--fs-gnb-sub); font-weight: 500; line-height: 1.75; text-align: center; letter-spacing: -0.03em;}
.gnb-dep2-link:hover {color: var(--color-black); font-weight: 600;}
.gnb-dep2-link::before {content: ""; position: absolute; z-index: -1; left: 51%; right: 51%; bottom: 4px; height: 2px; background-color: currentColor; -webkit-transition-property: left, right; transition-property: left, right; -webkit-transition-duration: 0.3s; transition-duration: 0.3s; -webkit-transition-timing-function: ease-out; transition-timing-function: ease-out;}
.gnb-dep2-link:hover::before {left: 0; right: 0;}

.header-btn-box {display: contents;}
.header-btn {flex-shrink: 0; width: 40px; aspect-ratio: 1 / 1; border-radius: 6px; background-color: transparent; border: none;}
.fullmenu-trigger {display: flex; align-items: start; justify-content: center; gap: 8px; flex-direction: column; padding: 5px; font-size: 0;}
.fullmenu-trigger .bar {display: block; width: 100%; height: 3px; border-radius: 10px; background-color: var(--color-black); transition: width 0.3s, background-color 0.3s;}
.fullmenu-trigger:hover .bar {background-color: var(--color-main);}
.fullmenu-trigger:hover .bar1 {width: 90%;}
.fullmenu-trigger:hover .bar2 {width: 60%;}
.fullmenu-trigger:hover .bar3 {width: 75%;}

/* Header Active { */
.header.is-scroll {border-bottom-color: var(--color-gray-500);}
/* .header.is-scroll .gnb-item {padding: 24px 10px;} */
.gnb-dep2.is-active {pointer-events: auto;}
/* } Header Active */
/* } Header */

/* Full Menu { */
/* hidden 해제 후 is-open 추가. 닫을 때에는 페이드 종료 후 hidden을 설정한다. */
.fullmenu {opacity: 0; visibility: hidden; pointer-events: none; position: fixed; z-index: 1000; inset: 0; height: 100dvh; padding: 35px clamp(1.5rem, calc((100vw - 1800px) / 2), 60px) 0; background-color: #E6F0FA;}
.fullmenu[hidden] {display: none;}
.fullmenu.is-open {pointer-events: auto;}
.fullmenu-container {position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;}
.fullmenu .bg-text {position: absolute; z-index: 0; right: 0; bottom: 60px;}
.fullmenu-header {position: relative; z-index: 1; flex: 0; display: flex; align-items: start; justify-content: space-between; gap: 10px; padding-bottom: 16px;}
.fullmenu-logo {display: block; font-size: 0;}
.fullmenu-logo img {display: block; width: 311px; object-fit: contain;}
.fullmenu-close {margin-top: 10px; display: flex; align-items: center; justify-content: center; width: 60px; aspect-ratio: 1 / 1; border-radius: 30px; background: var(--color-black); border: none; color: var(--color-white); font-size: var(--fs-icon-28); line-height: 1;}

.fullmenu-body {position: relative; z-index: 1; flex: 1 1 0; display: grid; place-items: center; grid-template-rows: minmax(0, 1fr); min-height: 0;}
.fullmenu-wrapper {overflow-y: auto; overscroll-behavior: contain; width: 100%; max-height: 100%; padding-bottom: 60px;}

.fullmenu-nav {width: 1420px; max-width: 100%; margin: 0 auto;}
.fullmenu-list {display: flex; align-items: start; justify-content: space-between; gap: 32px;}
.fullmenu-item {flex: 1;}
.fullmenu-link, .fullmenu-btn {display: grid; place-items: center; height: 82px; border-radius: 8px; background-color: var(--color-main); font-size: var(--fs-fullmenu); font-weight: 600; line-height: 1.18; color: var(--color-white); text-align: center;}
.fullmenu-btn {display: none;} /* 모바일 메뉴에서 사용 */

.fullmenu-dep2 {display: block;}
.fullmenu-dep2[hidden] {display: none;}
.fullmenu-dep2-list {margin-top: 30px;}
.fullmenu-dep2-item {margin-top: 8px;}
.fullmenu-dep2-link {display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 68px; padding: 10px 34px; border-radius: 8px; background-color: var(--color-white); border: none; color: #3E3E3E; font-size: var(--fs-fullmenu-sub); font-weight: 500; line-height: 1.75; text-align: center; letter-spacing: -0.03em;}
.fullmenu-dep2-link::after {content: '\EA6E'; font-family: 'remixicon' !important; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: #1B2A48; font-size: 1.3em; line-height: 1; transition: transform 0.3s;}
.fullmenu-dep2-link:hover:after {transform: translateX(5px);}
/* } Full Menu */

/* Fixed Buttons { */
.fixed-btn-wrap {--fixed-btn-bottom: 40px; position: fixed; z-index: 100; right: 40px; bottom: var(--fixed-btn-bottom); display: flex; flex-direction: column; align-items: center; gap: 11px; opacity: 0; visibility: hidden;}
.operation-status {position: relative; width: 86px;}
.operation-status-btn {position: relative; z-index: 1; display: grid; place-items: center; width: 100%; min-height: 86px; padding: 14px 10px; border: none; border-radius: 30px; background-color: var(--color-dim); color: var(--color-white); font-size: var(--fs-20); font-weight: 600; line-height: 1.2; text-align: center;}
.operation-status-list {position: absolute; right: -8px; bottom: calc(100% + 6px); display: flex; flex-direction: column; align-items: center; gap: 4px; width: calc(100% + 16px); max-height: calc(100vh - var(--fixed-btn-bottom) - 197px); max-height: calc(100dvh - var(--fixed-btn-bottom) - 197px); overflow: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 4px 8px;}
.operation-status-list::-webkit-scrollbar {display: none;}
.operation-status-list[hidden] {display: none;}
.operation-status-item {flex-shrink: 0; width: 74px;}
.operation-status-link {display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 85px; padding: 10px 8px; border-radius: 23px; background-color: var(--color-main-light); color: var(--color-black); font-size: var(--fs-16); font-weight: 500; line-height: 1.2; text-align: center;}
.operation-status-item[data-category="education"] .operation-status-link {background-color: #FEF4CA;}
.operation-status-item[data-category="event"] .operation-status-link {background-color: #FDDBDC;}
.operation-status-item[data-category="contest"] .operation-status-link {background-color: #FBE5F8;}
.operation-status-count {display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 5px 10px; border-radius: 30px; background-color: var(--color-white); white-space: nowrap;}
.operation-status-btn:focus-visible, .operation-status-link:focus-visible {outline-offset: 2px;}
.top-btn {display: flex; align-items: center; justify-content: space-between; flex-direction: column; width: 86px; aspect-ratio: 1 / 1; padding: 16px 10px 20px; border-radius: 30px; background-color: var(--color-white); border: 1px solid var(--color-gray-500); color: var(--color-black); font-size: var(--fs-20); font-weight: 600; line-height: 1; text-align: center; transition: background-color 0.3s;}
.top-btn:hover {background-color: #f1f1f1;}
.top-btn .arrow {display: block; width: 15px; aspect-ratio: 1537 / 2118; background: url("../img/top-arrow.svg") no-repeat center center / contain;}
/* } Fixed Buttons */

/* Footer { */
.footer {position: relative; z-index: 1; padding: 26px 0 135px; background-color: var(--color-dim); color: var(--color-white);}

.footer-inner {display: flex; align-items: center; justify-content: space-between; gap: 30px;}

.footer-top {margin-bottom: 16px;}
.footer-link-list {display: flex; align-items: center; justify-content: start; gap: 16px 54px; flex-wrap: wrap;}
.footer-link-item {position: relative; flex-shrink: 0; color: #96979b; font-size: var(--fs-16); font-weight: 500; line-height: 1.625;}
.footer-link-item ~ .footer-link-item::before {content: ''; position: absolute; top: 50%; left: -27px; transform: translateY(-50%); display: block; width: 1px; height: 1em; background-color: currentColor;}
.footer-link {display: block;}
.footer-link.t-point {color: #FFF3B0 !important; font-weight: 600;}
.footer-link:hover {text-decoration: underline;}

.footer-dropdown-box {flex-shrink: 0; position: relative;}
.footer-dropdown-btn {display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 290px; height: 54px; padding: 10px 16px; border-radius: 5px; background-color: #35373e; border: none; color: var(--color-white); font-size: var(--fs-16); font-weight: 500; line-height: 1.75; letter-spacing: -0.03em; transition: background-color 0.3s;}
.footer-dropdown-btn:hover {background-color: #444650;}
.footer-dropdown-btn i {font-size: 1.5em;}
.footer-dropdown-list {overflow-y: auto; position: absolute; right: 0; bottom: 100%; max-height: min(400px, 50vh); margin-bottom: 16px; width: 100%; padding: 24px 16px; border-radius: 5px; background-color: #35373e;}
.footer-dropdown-list::-webkit-scrollbar {width: 6px;}
.footer-dropdown-list::-webkit-scrollbar-track {background: transparent; border-radius: 10px;}
.footer-dropdown-list::-webkit-scrollbar-thumb {background: rgba(0, 0, 0, 0.4); border-radius: 10px;}
.footer-dropdown-list::-webkit-scrollbar-button {width: 0; height: 0; display: none;}
@supports (-moz-appearance: none) {
  .footer-dropdown-list {scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, 0.4) transparent;}
}
.footer-dropdown-list[hidden] {display: none;}
.footer-dropdown-item {font-size: var(--fs-15); line-height: 1.2; word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty;}
.footer-dropdown-item ~ .footer-dropdown-item {margin-top: 8px;}
.footer-dropdown-link:hover {text-decoration: underline; text-underline-offset: 2px;}

.footer-bottom {}
.footer-bottom .footer-inner {align-items: start;}
.footer-info-block {}
.footer-info-block .title {font-size: var(--fs-17); font-weight: 500;}
.footer-info-block .copyright {color: #818387; font-size: var(--fs-16);}
.footer-address {display: flex; align-items: center; justify-content: start; gap: 0 32px; flex-wrap: wrap; margin: 24px 0 32px; color: var(--color-white); font-size: var(--fs-16); line-height: 1.625; font-weight: 300;}
.footer-address li {position: relative;}
.footer-address .full {flex: 1 0 100%;}
.footer-address li ~ li::before {content: ''; position: absolute; top: 50%; right: -16px; transform: translateY(-50%); display: block; width: 1px; height: 1em; background-color: currentColor;}
.footer-address li:last-child::before {display: none;}
.footer-address .label {margin-right: 0.3em;}
.footer-address .value {}

.footer-logo {flex-shrink: 0; display: block; margin-top: 10px; font-size: 0;}
.footer-logo img {display: block; width: 270px; object-fit: contain;}
/* } Footer */

/* Common { */
#contents_body {padding-top: 120px;}

.category-exhibition {--category-color: var(--color-blue);}
.category-education {--category-color: var(--color-yellow);}
.category-event {--category-color: var(--color-red);}
.category-contest {--category-color: var(--color-purple);}
/* } Common */

/* Main Layout { */
.main-contents {}
/* } Main Layout */

/* Sub Layout { */
/* head의 사전 준비 스크립트가 실행된 경우에만 진입 요소를 숨긴다. */
@media screen and (prefers-reduced-motion: no-preference) {
  html.is-enter-pending .sub-contents :is(.sub-title, .sub-breadcrumb-list, .sub-util-box, .sub-content) {opacity: 0; visibility: hidden;}
}
/* Sub Top { */
.sub-visual {width: 100%; height: 73px; background: linear-gradient(90deg, var(--color-sub) 0%, var(--color-main-light) 56.62%);}

.sub-tab {margin-top: -50px;}
.sub-tab-list {overflow: hidden; display: flex; align-items: center; border-radius: 10px; background: var(--color-white); box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);}
.sub-tab-item {flex: 1; height: 100%;}
.sub-tab-btn {display: grid; place-items: center; min-height: 60px; padding: 10px; color: #3E3E3E; font-size: var(--fs-sub-tab); font-weight: 500; line-height: 1.2; text-align: center; letter-spacing: -0.03em; transition: background-color 0.3s;}
.sub-tab-btn:hover {background-color: #fafafa;}
.sub-tab-btn.is-active {background-color: var(--color-dim); color: var(--color-white);}
.sub-tab-btn:focus-visible {outline-offset: -3px;}

.sub-title-wrap {padding: 100px 0; text-align: center;}
.sub-title-wrap .wrapper {position: relative; padding: 0 100px;}
.sub-title {color: var(--color-black); font-size: var(--fs-sub-title); font-weight: 700; line-height: 1; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance;}

.sub-breadcrumb-list {display: flex; align-items: center; justify-content: center; gap: 2px; flex-wrap: wrap; margin-top: 32px;}
.sub-breadcrumb-item {}
.sub-breadcrumb-item ~ .sub-breadcrumb-item::before {content: '\EA54'; font-family: 'remixicon' !important; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; display: inline-block; vertical-align: middle; color: var(--color-gray-800); font-size: var(--fs-icon-24); line-height: 1;}
.sub-breadcrumb-link {display: inline-block; vertical-align: middle; color: #616161; font-size: var(--fs-16); font-weight: 400; line-height: 1.1875; letter-spacing: -0.03em;}
.sub-breadcrumb-link.home {color: var(--color-black); font-size: var(--fs-icon-24); line-height: 1;}

.sub-util-box {position: absolute; top: 0; right: 0; display: flex; align-items: center; justify-content: end; gap: 6px;}
.sub-util-btn {flex-shrink: 0; display: block; width: 40px; aspect-ratio: 1 / 1; background-color: #E9E9E9; border: none; border-radius: 15px; background-repeat: no-repeat; background-position: center center; background-size: 18px auto; transition: background-color 0.3s;}
.sub-util-btn:hover {background-color: #d9d9d9;}
.sub-util-btn.share {background-image: url("../img/icon-share.svg");}
.sub-util-btn.print {background-image: url("../img/icon-print.svg");}

.sub-title-wrap.is-simple {text-align: left;}
.sub-title-wrap.is-simple :where(.sub-breadcrumb-list, .sub-util-box) {display: none;}
/* } Sub Top */

.sub-contents {padding-bottom: 168px;}
.sub-content {}

.sub-tab-dep2 {margin: 56px auto;}
.sub-tab-list-dep2 {display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;}
.sub-tab-item-dep2 {flex-shrink: 0;}
.sub-tab-btn-dep2 {display: grid; place-items: center; min-width: 130px; min-height: 50px; padding: 4px 16px; border-radius: 100px; background-color: var(--color-white); border: 1px solid var(--color-gray-500); color: #1f1f1f; font-size: var(--fs-sub-tab-secondary); font-weight: 500; line-height: 1.2; text-align: center; transition: 0.3s;}
.sub-tab-btn-dep2:hover {background-color: #fafafa;}
.sub-tab-btn-dep2.is-active {background-color: var(--color-black); border-color: var(--color-black); color: var(--color-white); font-weight: 700;}

/* Sub Typography { */
.sub-section-title {margin-bottom: 56px; color: var(--color-black); font-size: var(--fs-sub-section-title); font-weight: 600; line-height: 1.2;}
.sub-section-title .title-label {margin-left: 0.5em;}
/* } Sub Typography */

/* Sub Modal { */
.sub-modal-container {position: fixed; inset: 0; z-index: 999; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; opacity: 0; transition: opacity 0.25s ease;}
.sub-modal-container[hidden] {display: none;}
.sub-modal-container.is-open {opacity: 1;}
.sub-modal-container::backdrop {background: transparent;}
.sub-modal-wrap {position: relative; z-index: 1; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; width: 100%; height: 100dvh; padding: 1.5rem;}
.sub-modal {overflow: hidden; display: flex; flex-direction: column; min-height: 0; width: 1200px; max-width: calc(100vw - 3rem); max-height: 100%; border-radius: 15px; background: var(--color-white); box-shadow: 0px 0px 6.1px rgba(0, 0, 0, 0.28);}

.sub-modal-head {flex-shrink: 0; display: flex; align-items: center; gap: 16px; padding: 16px 40px; border-bottom: 1px solid #c5c5c5;}
.sub-modal-head .modal-title {font-size: var(--fs-modal-title); font-weight: 600; line-height: 1.18; color: var(--color-black); letter-spacing: -0.03em; word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty;}
.sub-modal-head .modal-close {flex: none; width: 52px; aspect-ratio: 1 / 1; margin-left: auto; border-radius: 100px; background: var(--color-main) url("../img/close-w.svg") no-repeat center center / 24px auto; border: none; border: none; font-size: 0; transition: background-color 0.3s;}
.sub-modal-head .modal-close:hover {background-color: var(--color-black);}

.sub-modal-body {display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 32px 40px;}
.sub-modal-inner {overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain;}
.sub-modal-inner::-webkit-scrollbar {width: 6px;}
.sub-modal-inner::-webkit-scrollbar-track {background: #dddddd; border-radius: 10px;}
.sub-modal-inner::-webkit-scrollbar-thumb {background: #747474; border-radius: 10px;}
.sub-modal-inner::-webkit-scrollbar-button {width: 0; height: 0; display: none;}
@supports (-moz-appearance: none) {
  .sub-modal-inner {scrollbar-width: thin; scrollbar-color: #747474 #dddddd;}
}
.sub-modal-inner .board-info {margin-top: 0; margin-bottom: 10px;}

.sub-modal .board-write-container {font-size: var(--fs-18);}
.sub-modal .board-write-box {grid-template-columns: 290px minmax(0, 1fr); min-height: 66px;}
.sub-modal :where(.i-input, .i-select, .i-date, .i-time) {height: 46px; font-size: 1em;}
.sub-modal .board-write-row .full.i-textarea {height: 200px; font-size: 1em;}

.sub-modal-foot {flex-shrink: 0; padding: 8px 40px 56px;}
.sub-modal-foot .i-btn-wrap {margin: 0;}
.dim-overlay {position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, 0.4);}
/* } Sub Modal */

/* Sub Table { */
.sub-table {width: 100%; border-top: 2px solid var(--color-black); color: var(--color-black); font-size: var(--fs-18); line-height: 1.167; font-weight: 400; word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty;}
.sub-table tr {height: 68px; border-bottom: 1px solid var(--color-gray-500);}
.sub-table th {background-color: var(--color-gray-200); color: #111111; font-weight: 600; letter-spacing: -0.03em; text-align: center;}
.sub-table :where(th, td) {padding: 10px;}
.sub-table td ~ td {border-left: 1px solid var(--color-gray-500);}
.sub-table th ~ th {border-left: 1px solid var(--color-gray-500);}

.sub-table.type2 {font-size: var(--fs-16);}
.sub-table.type2 tr {height: 46px;}
.sub-table.type2 th {background-color: transparent;}
.sub-table.type2 tbody th {border-right: 1px solid var(--color-gray-500);}
.sub-table.type2 :where(th, td) {padding-left: 20px; padding-right: 20px;}
/* } Sub Table */
/* } Sub Layout */

/* ====================  반응형 ==================== */
/* 너비와 관계없이 Lenis를 사용하지 않는 터치 기기·페이지는 CSS로 배경 스크롤을 잠근다. */
html.is-scroll-locked:not(.lenis), html.is-scroll-locked:not(.lenis) body {overflow: hidden;}
@media (prefers-reduced-motion: reduce) {
  .sub-modal-container {transition: none;}
  .header *, .fullmenu *, .header *::before, .fullmenu *::after {transition-duration: 0s; transition-delay: 0s;}
}
/* Print */
@media print {
  @page {size: A4; margin: 15mm;}

  /* 화면 조작용 요소 숨기기 */
  .header, .footer, .fullmenu, .sub-visual, .sub-tab, .sub-tab-dep2, .sub-util-box, .fixed-btn-wrap, .board-search-box, .board-top-search-box, .board-pagination, .board-navigation, .no-print {display: none !important;}

  /* 스크롤 잠금 해제 */
  html, body {height: auto !important; min-height: 0 !important; overflow: visible !important;}

  /* 인쇄창 배율 100% 기준으로 콘텐츠를 절반 크기로 출력 */
  body {zoom: 0.5; color: var(--color-black); background: var(--color-white); -webkit-print-color-adjust: exact; print-color-adjust: exact;}

  /* 화면용 너비와 여백 정리 */
  #contents_body {padding-top: 0;}
  .container {padding-inline: 0;}
  .wrapper {width: 100%; max-width: none;}
  .sub-title-wrap {padding: 0 0 8mm;}
  .sub-title {font-size: 22pt;}
  .sub-contents {padding-bottom: 0;}
  #contents_body .board-view-body {min-height: 0;}

  /* 본문 이미지가 용지 너비를 넘지 않도록 */
  .board-view-body img {max-width: 100% !important; height: auto !important;}

  /* 제목과 다음 내용이 분리되는 상황 줄이기 */
  .sub-title-wrap, .board-view-head, h2, h3 {break-after: avoid-page;}

  /* 표 행과 이미지 중간의 페이지 분할 줄이기 */
  tr, .board-view-body img {break-inside: avoid;}
  thead {display: table-header-group;}
  p {orphans: 3; widows: 3;}
}

@media screen and (max-width:1600px) {
  /* Fixed Buttons { */
  .fixed-btn-wrap {right: 1.5rem; gap: 8px;}
  .operation-status {width: 72px;}
  .operation-status-btn {min-height: 72px; padding: 10px; border-radius: 24px;}
  .operation-status-item {width: 64px;}
  .operation-status-link {gap: 4px; min-height: 70px; border-radius: 16px;}
  .operation-status-count {min-height: 28px; padding: 2px 8px;}
  .top-btn {width: 72px; padding: 14px 10px; border-radius: 24px;}
  .top-btn .arrow {width: 10px;}
  /* } Fixed Buttons */
}

@media screen and (max-width:1440px) {
  /* Header { */
  .header-inner {gap: 20px;}
  /* } Header */
  /* Full Menu { */
  .fullmenu-close {margin-top: 0;}
  .fullmenu-list {gap: 24px;}
  .fullmenu-link, .fullmenu-btn {height: 64px;}
  .fullmenu-dep2-list {margin-top: 24px;}
  .fullmenu-dep2-link {min-height: 48px; padding: 10px 24px;}
  /* } Full Menu */
}

@media screen and (max-width:1280px) {
  /* Header { */
  .header-logo img {width: 280px;}
  .header-bottom {padding: 12px 0;}
  .header-nav {display: none;}
  .header-btn {margin-left: auto;}
  /* } Header */

  
  /* Full Menu { */
  .fullmenu-logo img {width: 280px;}
  /* } Full Menu */


  /* Fixed Buttons { */
  .fixed-btn-wrap {gap: 6px;}
  .operation-status {width: 64px;}
  .operation-status-btn {min-height: 64px; padding: 8px; border-radius: 20px; font-size: var(--fs-16);}
  .operation-status-list {max-height: calc(100vh - var(--fixed-btn-bottom) - 148px); max-height: calc(100dvh - var(--fixed-btn-bottom) - 148px);}
  .operation-status-item {width: 56px;}
  .operation-status-link {min-height: 62px; padding: 8px 6px; border-radius: 14px; font-size: var(--fs-14);}
  .operation-status-count {min-height: 24px; padding: 2px 6px;}
  .top-btn {width: 64px; padding: 12px 8px; border-radius: 20px; font-size: var(--fs-16);}
  .top-btn .arrow {width: 9px;}
  /* } Fixed Buttons */

  /* Common { */
  #contents_body {padding-top: 110px;}
  /* } Common */
}

@media screen and (max-width:1024px) {
  /* Full Menu { */
  .fullmenu-close {width: 50px;}
  .fullmenu .bg-text {bottom: 0;}
  .fullmenu-list {flex-wrap: wrap;}
  .fullmenu-item {flex: 0 0 calc(50% - 12px);}
  /* } Full Menu */

  /* Footer { */
  .footer {padding: 26px 0 100px;}
  .footer-link-list {gap: 8px 32px;}
  .footer-link-item ~ .footer-link-item::before {left: -16px;}

  .footer-dropdown-btn {width: 220px; height: 48px;}
  .footer-dropdown-list {padding: 16px;}

  .footer-bottom .footer-inner {display: block;}
  .footer-address {margin: 16px 0 24px;}
  .footer-logo {margin-top: 24px;}
  /* } Footer */

  /* Sub Layout { */
  /* Sub Top { */
  .sub-title-wrap {padding: 80px 0;}
  .sub-title-wrap .wrapper {padding: 0;}
  .sub-breadcrumb-list {margin-top: 24px;}
  .sub-util-box {display: none;}
  /* } Sub Top */
  .sub-contents {padding-bottom: 120px;}
  .sub-tab-dep2 {margin: 48px auto;}
  .sub-tab-btn-dep2 {min-width: 110px; min-height: 45px;}
  /* Sub Typography { */
  .sub-section-title {margin-bottom: 48px;}
  /* } Sub Typography */
  /* Sub Table { */
  .sub-table tr {height: 60px;}
  .sub-table.type2 tr {height: 40px;}
  .sub-table.type2 :where(th, td) {padding-left: 16px; padding-right: 16px;}
  /* } Sub Table */
  /* Sub Modal { */
  .sub-modal-head {padding: 16px 32px;}
  .sub-modal-head .modal-close {width: 48px; background-size: 20px;}
  .sub-modal-body {padding: 24px 32px;}
  .sub-modal .board-write-box {grid-template-columns: 180px minmax(0, 1fr); min-height: 60px;}
  .sub-modal :where(.i-input, .i-select, .i-date, .i-time) {height: 40px;}
  .sub-modal .board-write-row .full.i-textarea {height: 180px;}
  .sub-modal-foot {padding: 8px 32px 48px;}
  /* } Sub Modal */
  /* } Sub Layout */
}

@media screen and (max-width:768px) {
  /* Header { */
  .header-container {padding: 0 1rem;}
  .header-logo img {max-width: 50vw; min-width: 200px;}
  /* } Header */
  
  /* Full Menu { */
  .fullmenu {padding: 20px 1rem 0;}
  .fullmenu-logo img {max-width: 50vw; min-width: 200px;}
  .fullmenu-close {width: 50px;}
  .fullmenu .bg-text {bottom: 0;}
  .fullmenu-list {display: block;}
  .fullmenu-item {display: grid; grid-template-rows: max-content 0fr; width: 100%; transition: grid-template-rows 250ms ease;}
  .fullmenu-item:has(> .fullmenu-btn[aria-expanded="true"]) {grid-template-rows: max-content 1fr;}
  .fullmenu-item ~ .fullmenu-item {margin-top: 16px;}
  .fullmenu-link, .fullmenu-btn {display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 56px; padding: 12px 16px; border: none;}
  .fullmenu-link {display: none;}
  .fullmenu-btn .icon {font-size: 1.5em; font-style: normal; line-height: 1;}
  .fullmenu-btn .icon::before {content: "+";}
  .fullmenu-btn[aria-expanded="true"] .icon::before {content: "−";}
  .fullmenu-dep2 {min-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity 250ms ease, visibility 0s linear 250ms;}
  .fullmenu-btn[aria-expanded="true"] + .fullmenu-dep2 {opacity: 1; visibility: visible; transition-delay: 0s;}
  .fullmenu-dep2-list {margin-top: 16px;}
  /* } Full Menu */

  /* Fixed Buttons { */
  .fixed-btn-wrap {gap: 4px; --fixed-btn-bottom: 16px; right: 1rem;}
  .operation-status {width: 56px;}
  .operation-status-btn {min-height: 56px; padding: 6px; border-radius: 16px; font-size: var(--fs-15);}
  .operation-status-list {gap: 3px; max-height: calc(100vh - var(--fixed-btn-bottom) - 130px); max-height: calc(100dvh - var(--fixed-btn-bottom) - 130px);}
  .operation-status-item {width: 48px;}
  .operation-status-link {gap: 3px; min-height: 54px; padding: 6px 4px; border-radius: 12px;}
  .operation-status-count {min-height: 22px; padding: 2px 4px;}
  .top-btn {width: 56px; padding: 10px 6px; border-radius: 16px; font-size: var(--fs-15);}
  .top-btn .arrow {width: 8px;}
  /* } Fixed Buttons */

  /* Footer { */
  .footer {padding-bottom: 80px;}
  .footer-inner {display: block;}
  .footer-link-list {margin-bottom: 24px;}
  .footer-dropdown-btn {width: 100%;}
  .footer-address .full {margin-bottom: 8px;}
  .footer-logo img {max-width: 50vw; min-width: 200px;}
  /* } Footer */

  /* Common { */
  /* Lenis를 사용하지 않는 모바일에서도 공통 잠금 클래스로 배경 스크롤을 막는다. */
  html.is-scroll-locked, html.is-scroll-locked body {overflow: hidden;}
  /* } Common */

  /* Sub Layout { */
  /* Sub Top { */
  .sub-title-wrap {padding: 60px 0;}

  .sub-visual {display: none;}
  .sub-tab {margin-top: 0;}
  .sub-tab .container {padding: 0;}
  .sub-tab .wrapper {overflow-x: auto; border: 1px solid #cccccc; border-left: none; border-right: none;}
  .sub-tab .wrapper::-webkit-scrollbar {width: 4px; height: 4px;}
  .sub-tab .wrapper::-webkit-scrollbar-track {background: transparent; border-radius: 10px;}
  .sub-tab .wrapper::-webkit-scrollbar-thumb {background: rgba(0, 0, 0, 0.3); border-radius: 10px;}
  .sub-tab .wrapper::-webkit-scrollbar-button {width: 0; height: 0; display: none;}
  @supports (-moz-appearance: none) {
    .sub-tab .wrapper {scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, 0.3) transparent;}
  }
  .sub-tab-list {min-width: max-content; border-radius: 0; background: var(--color-white); box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);}
  .sub-tab-item {flex: 1;}
  .sub-tab-item:has(> .is-active) {order: 0;}
  .sub-tab-btn {min-width: max-content;}
  .sub-tab-btn.is-active {background-color: inherit; border-bottom: 2px solid #000; color: #000; font-weight: 600;}
  /* } Sub Top */
  .sub-contents {padding-bottom: 90px;}
  .sub-tab-dep2 {margin: 32px auto;}
  .sub-tab-list-dep2 {gap: 8px;}
  .sub-tab-btn-dep2 {min-width: unset; min-height: unset; padding: 6px 16px;}
  /* Sub Typography { */
  .sub-section-title {margin-bottom: 32px;}
  /* } Sub Typography */
  /* Sub Table { */
  .sub-table tr {height: 50px;}
  .sub-table.type2 tr {height: 32px;}
  .sub-table.type2 :where(th, td) {padding-left: 8px; padding-right: 8px;}
  /* } Sub Table */
  /* Sub Modal { */
  .sub-modal-head {padding: 8px 24px;}
  .sub-modal-head .modal-close {width: 40px; background-size: 16px;}
  .sub-modal-body {padding: 16px 24px;}
  .sub-modal .board-write-box {min-height: unset;}
  .sub-modal :where(.i-input, .i-select, .i-date, .i-time) {height: 36px;}
  .sub-modal .board-write-row .full.i-textarea {height: 150px;}
  .sub-modal-foot {padding: 8px 24px 32px;}
  /* } Sub Modal */
  /* } Sub Layout */
}

@media screen and (max-width:768px) and (prefers-reduced-motion: reduce) {
  .fullmenu-item, .fullmenu-dep2 {transition: none;}
}

@media screen and (max-width:425px) {
  /* Header { */
  .header-logo {position: static; transform: unset; translate: unset;}
  .header-btn {width: 36px; gap: 7px;}
  /* } Header */

  /* Full Menu { */
  .fullmenu-close {width: 40px;}
  /* } Full Menu */

  /* Fixed Buttons { */
  .top-btn {display: none;}
  /* } Fixed Buttons */
  
  /* Footer { */
  .footer {padding-bottom: 60px;}
  .footer-dropdown-btn {height: 42px;}
  .footer-address {display: block;}
  .footer-address li ~ li::before {display: none;}
  .footer-address .label {font-weight: 500;}
  /* } Footer */
  
  /* Sub Layout { */
  /* Sub Top { */
  .sub-title-wrap {padding: 40px 0;}
  .sub-breadcrumb-list {margin-top: 16px;}
  .sub-tab-btn {min-height: 50px;}
  /* } Sub Top */
  /* Sub Typography { */
  .sub-section-title {margin-bottom: 24px;}
  /* } Sub Typography */
  /* Sub Modal { */
  .sub-modal-wrap {padding: 0; padding-top: 50px;}
  .sub-modal {align-self: end; max-width: 100vw; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;}
  .sub-modal-head {padding: 8px 1rem;}
  .sub-modal-body {padding: 8px 1rem;}
  .sub-modal .board-write-row .full.i-textarea {height: 100px;}
  .sub-modal-foot {padding: 8px 1rem 24px;}
  /* } Sub Modal */
  /* } Sub Layout */
}