html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/*
 * 운영 React SPA 번들 전역 CSS 누수 재현 (실측 기준).
 * - NotFound.css: p { font-size:1.2em; margin-bottom:20px }, a { font-weight:bold }
 * - Introduction.css: ul li { font-size:1rem }
 * EJS는 페이지 스코프로 누수를 제거했으나, 운영 화면(회사소개 제목 45.6px·인사말 18px·네비 16px)과 불일치.
 */
p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

a {
  font-weight: bold;
}

ul li {
  font-size: 1rem;
  color: #333;
  text-align: left;
}

/*
 * 사업영역 리스트 항목 높이:
 * 운영 React는 Hangul 폴백(Noto Sans)으로 line-height:normal ≈ 24px(@16px).
 * 개발 Pretendard는 ≈ 19px → 카드 높이 222 vs 242. 고정 height 없이 line-box만 맞춤.
 */
.systemDevelop-item,
.monitoring-item,
.infrastructureSystem-item,
.maintenance-item {
  line-height: 1.5;
}

.app-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 운영 React App.css 와 동일: padding-top 없음 (고정 헤더는 오버레이) */
.main-content {
  flex: 1;
}

/* 운영 NavbarComp menuVariants: open 0.1s / closed 0.3s (opacity + height) */
.head-navi .dropdown-menu-1 {
  display: block;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, max-height 0.3s ease, visibility 0.3s ease;
}

/* 클릭 포커스(:focus-within)로 고정되지 않도록 .is-open / :hover 만 사용 */
.head-navi .navbar-item.is-open > .dropdown-menu-1 {
  opacity: 1;
  visibility: visible;
  max-height: 320px;
  pointer-events: auto;
  transition: opacity 0.1s ease, max-height 0.1s ease, visibility 0.1s ease;
}

@media (hover: hover) {
  .head-navi .navbar-item:hover > .dropdown-menu-1 {
    opacity: 1;
    visibility: visible;
    max-height: 320px;
    pointer-events: auto;
    transition: opacity 0.1s ease, max-height 0.1s ease, visibility 0.1s ease;
  }
}

.head-navi .navbar-link.is-active {
  text-decoration: underline;
}

.menu-container {
  visibility: hidden;
  pointer-events: none;
}

.menu-open .menu-container {
  visibility: visible;
  pointer-events: auto;
}

/* 운영 Menu.jsx 모바일 서브: opacity/scale 0.3s */
.menu-container .mobile-submenu {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

.menu-container .mobile-item.is-open > .mobile-submenu {
  max-height: 400px;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* path.middle opacity 는 menu-toggle.css (.menu-open) + navigation.js 가 담당 */
.menu-toggle path {
  transition: d 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-open path.top {
  d: path('M 5 25 L 25 5');
}

.menu-toggle.is-open path.bottom {
  d: path('M 5 5 L 25 25');
}

.menu-container button.mobile-parent {
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  text-align: left;
  font-weight: bold;
  font: inherit;
}

.menu-container .mobile-parent-label {
  text-align: left;
}

.menu-container .mobile-parent .arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  transform-origin: 50% 55%;
}

.menu-container .mobile-top-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  text-align: left;
}

/* padding은 menu.css @media(768) 의 14px 보다 우선해 좌측 정렬 간격 유지 */
.menu-container .mobile-submenu .dropdown-item {
  text-align: left !important;
  padding: 8px 16px !important;
}

/* navbar .dropdown-link(center) 와 동일 특수도 — 로드 순서로 모바일 좌측 정렬 유지 */
.menu-container .mobile-submenu .dropdown-link {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #222;
  text-decoration: none;
}

body.mobile-menu-open {
  overflow: hidden;
}
