/* =========================================================
   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
   ========================================================= */

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

:root{
  --w-chrome: 1440px;
  --w-main:   1440px;
  --w-home:   1560px;
  --gutter:   24px;
}

.layout-inner.layout-chrome{
  width: min(var(--w-chrome), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  box-sizing: border-box;
}

.layout-inner{
  width: min(var(--w-main), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  box-sizing: border-box;
}

body.page-home .site-main .layout-inner{
  width: min(var(--w-home), calc(100% - (var(--gutter) * 2)));
}

@media (max-width: 640px){
  :root{ --gutter: 16px; }
}

/* 모바일 거터 축소 */
@media (max-width: 640px){
  :root{ --gutter: 16px; }
}

