/* =========================================================
   common.css
   - 전역 변수/기본 폰트/레이아웃 폭만 관리
   - 헤더/푸터 1440px, 메인 1560px
   ========================================================= */

:root{
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted:#475569;
  --line: rgba(15,23,42,.12);

  --blue: #2563eb;   /* 헤더 경계선(파랑) */
  --red:  #ef4444;   /* 드롭다운 활성(빨강) */

  --radius: 14px;
  --shadow: 0 10px 30px rgba(15,23,42,.08);

  --wrap-header: 1440px;
  --wrap-main:   1560px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.site-shell{ min-height:100%; display:flex; flex-direction:column; }

/* ✅ 폭 컨테이너 */
.wrap-header{ max-width: var(--wrap-header); margin:0 auto; padding:0 4px; width:100%; }
.wrap-main{   max-width: var(--wrap-main);   margin:0 auto; padding:0 4px; width:100%; }

/* 페이지 본문 */
.site-main{ flex: 1 0 auto; }


/* =========================================================
   Layout widths
   - chrome(헤더/푸터): 1440px
   - main(컨텐츠): 1560px
   ========================================================= */
:root{
  --w-chrome: 1440px;
  --w-main: 1560px;

  --line-blue: #2f6bff;   /* 헤더 경계 파랑 */
  --line-red:  #ef4444;   /* hover/active 포인트 빨강 */
  --text-900:  #0f172a;
  --text-600:  #475569;
  --bg-0:      #ffffff;
  --bg-50:     #f6f8fc;
  --card:      #ffffff;
  --bd:        rgba(15,23,42,.12);
}

/* 기본 컨테이너: 페이지별로 main/home에서 --w-main 사용 */
.layout-inner{
  width: min(var(--w-main), calc(100% - 48px));
  margin: 0 auto;
}

/* 헤더/푸터 전용 1440 */
.layout-inner.layout-chrome{
  width: min(var(--w-chrome), calc(100% - 48px));
}
@media (max-width: 980px){
  .layout-inner,
  .layout-inner.layout-chrome{
    width: calc(100% - 32px);
  }
}

/* 페이지가 1화면에 '꽉' 보이게(헤더+메인+푸터) */
.site-shell{
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.site-main{
  flex: 1 0 auto;
}

