/*!
 * JD Publishing CSS v2.1 (Base)
 * Prefix Convention:
 * - l- : layout primitives (structure)
 * - c- : components (cards, labels, buttons)
 * - u- : utilities (spacing, text, display)
 *
 * JD Rule #1: Global box-sizing: border-box
 * Load this file FIRST.
 */

/* =========================================
   3) Layout (l-)
   ========================================= */
.l-container {
  width: 100%;
  max-width: var(--jd-container-max);
  margin-inline: auto;
  padding-inline: var(--jd-space-4);
}

/* App Frame */
.l-app {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr); /* 기본: 사이드바 + 메인 */
  min-height: 100vh;
}

.l-app--auth {
  grid-template-columns: 1fr;
}
/* Login/auth 페이지에서는 사이드바 푸터 숨김 */
.l-app--auth .l-sidenav .l-footer {
  display: none;
}

/* 푸터 */
.l-footer {
  position: absolute;
  bottom: 0;
  background-color: var(--jd-color-footer-bg);
  width: 100%;
  margin-top: auto;
}
.footer-container {
  padding: 60px;
}

.first-line {
  display: flex;
  justify-content: space-between;
  padding-bottom: 40px;
  align-items: flex-start;
}

ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sns-icon {
  width: 40px;
  height: 40px;
  background-color: brown;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 30px;
}

.second-line {
  display: flex;
  justify-content: space-between;
}

.second-line-container {
  width: 75%;
}

.menus {
  margin-bottom: 20px;
}

.menus li {
  margin-right: 30px;
  font-weight: bold;
}

.company-info li {
  margin-right: 20px;
  font-size: 14px;
}

.company-contact li {
  margin-right: 20px;
  font-size: 14px;
}

.second-line-container-bottom {
  color: rgb(209, 55, 132);
  font-size: 13px;
  margin: 20px 0;
}

.second-line-container-bottom div {
  margin: 5px 0;
}

.info {
  margin-right: 20px;
}

.phone-number {
  font-weight: bold;
  font-size: 28px;
  margin-bottom: 10px;
}

.work-hour li {
  margin: 10px 0;
}

.work-hour span {
  margin-right: 10px;
}

.slogan {
  font-weight: bold;
  display: none;
  font-size: 24px;
}

/* Grid */
.l-grid {
  display: grid;
  gap: var(--jd-space-4);
}
.l-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.l-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.l-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* =========================================
   Grid Layout Patterns (JD 2.1 Standard)
   ========================================= */

/* 1) 사이드바(고정폭) + 본문(가변폭) */
.l-grid--sidebar-200 {
  grid-template-columns: 200px minmax(0, 1fr);
}
.l-grid--sidebar-240 {
  grid-template-columns: 240px minmax(0, 1fr);
}
/* 유연 사이드바(최소~최대) + 본문 */
.l-grid--sidebar-fluid {
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
}

/* 2) 리스트 + 상세 (좌측 유동 / 우측 고정) */
.l-grid--detail-360 {
  grid-template-columns: minmax(0, 1fr) 360px;
}
.l-grid--detail-420 {
  grid-template-columns: minmax(0, 1fr) 420px;
}

/* 3) 카드형 반복 컬럼 (repeat + minmax(0,1fr)) */
.l-grid--cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.l-grid--cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.l-grid--cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 카드형 반응형 (큰 화면 4 → 태블릿 2 → 모바일 1) */
.l-grid--cards-auto {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1024px) {
  .l-grid--cards-auto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .l-grid--sidebar-200,
  .l-grid--sidebar-240,
  .l-grid--sidebar-fluid,
  .l-grid--detail-360,
  .l-grid--detail-420,
  .l-grid--cards-auto {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .l-grid--2,
  .l-grid--3,
  .l-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* Flex */
.l-flex {
  display: flex;
}
.l-flex--row {
  flex-direction: row;
}
.l-flex--col {
  flex-direction: column;
}
.l-flex--wrap {
  flex-wrap: wrap;
}
.l-flex--nowrap {
  flex-wrap: nowrap;
}
.l-flex--center {
  align-items: center;
  justify-content: center;
}
.l-flex > * {
  min-width: 0;
} /* JD flex safety rule */
