/* ======================================================
   common.css — Minimal UI (Guest/Auth + Home)
   ====================================================== */

/* ====================================================== */
/* Fonts  */
/* ====================================================== */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300..900&display=swap');
/* ====================================================== */


/* ====================================================== */
/* Variables  */
/* ====================================================== */
:root{
  --bg:#fff; --fg:#111; --muted:#667085; --border:#e5e7eb;
  --brand:#2563eb; --brand-600:#1d4ed8; --danger:#d92d20; --ok:#16a34a;
  --wrap-pad:16px;
  --guestbar-h:56px;
  --guestbar-gap:20px; /* ⬅ 상단바 아래 여백(요청 1) */
  --container-tab:900px; --container-pc:1200px;
  --font-sans:'Pretendard Variable','Noto Sans KR',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  --ring:0 0 0 3px rgba(37,99,235,.18);
}
/* ====================================================== */


/* ====================================================== */
/* Base / Reset  */
/* ====================================================== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;background:#fff;color:var(--fg);
  font-family:var(--font-sans);
  font-size:20px;    /* 기본 사이즈 */
  line-height:1.6;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit}
/* ====================================================== */


/* ====================================================== */
/* App header (base 레이아웃 공용)  */
/* ====================================================== */
.app-header{height:64px;position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--border)}
.app-header__inner{height:100%;display:flex;align-items:center;gap:24px;padding:0 var(--wrap-pad);margin:0 auto;max-width:var(--container-pc)}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:22px;white-space:nowrap}
/* ====================================================== */


/* ====================================================== */
/* 메뉴(데스크톱 이상 노출)  */
/* ====================================================== */
.site-nav{margin-left:auto;display:none;gap:50px;align-items:center;font-weight:700}
@media (min-width:900px){ .site-nav{display:flex} }
.site-nav .menu-item{position:relative}
.site-nav .toplink{padding:10px 14px;border-radius:10px}
.site-nav .toplink:hover{background:#f4f6fb;color:#111; }
.site-nav .submenu{
  position:absolute; top:100%; left:0; min-width:200px;
  background:#fff; border:1px solid var(--border); border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,.12);
  padding:8px; margin-top:8px; list-style:none;
  opacity:0; visibility:hidden; transform:translateY(8px);
  transition:opacity .18s ease, transform .18s ease, visibility 0s .18s;
  z-index:1000;
}
.site-nav .submenu li a{  display:block; padding:10px 10px; border-radius:8px; white-space:nowrap;}
.site-nav .submenu li a:hover{background:#f4f6fb}
.site-nav .menu-item:hover > .submenu,
.site-nav .menu-item:focus-within > .submenu{  opacity:1; visibility:visible; transform:none; transition-delay:0s; }

/* 모바일 햄버거 아이콘(모바일만) */
.icons{margin-left:auto;display:flex;gap:10px;align-items:center}
.icon-btn{width:40px;height:40px;border-radius:10px;border:1px solid var(--border);background:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.icon-btn:hover{border-color:#dcdfe4}
.icon-btn--menu{display:inline-flex}
@media (min-width:900px){ .icon-btn--menu{display:none !important} } /* ⬅ PC/태블릿 숨김 */
/* ====================================================== */



/* ====================================================== */
/* Containers  */
/* ====================================================== */
.app-container{width:100%;padding:0 var(--wrap-pad);margin:0 auto}
@media (min-width:900px){ .app-container{max-width:var(--container-tab)} }
@media (min-width:1200px){ .app-container{max-width:var(--container-pc)} }
/* ====================================================== */



/* ====================================================== */
/* Guest topbar (로그인/회원가입/약관)  */
/* ====================================================== */
body.is-guest{background:#fff !important}
.guestbar{  position:fixed;top:0;left:0;right:0;z-index:90;  background:#f7f8fa;   border-bottom:1px solid var(--border);  padding-top:env(safe-area-inset-top); }
.guestbar__inner{  height:var(--guestbar-h);  display:grid;grid-template-columns:40px 1fr 40px;  align-items:center;column-gap:4px;padding:0 8px;}
.guestbar__back{  width:36px;height:36px;border:0;background:transparent;cursor:pointer;  border-radius:10px;color:#111;display:inline-flex;align-items:center;justify-content:center; }
.guestbar__back:hover{background:#eef2f7}
.guestbar__title{margin:0;text-align:center;font-weight:800;font-size:17px;letter-spacing:.2px} 
.guestbar__right{width:36px;height:36px} 
.guest-shell{   width:100%;   padding:calc(var(--guestbar-h) + var(--guestbar-gap) + env(safe-area-inset-top)) var(--wrap-pad) 24px;   margin:0 auto 24px; }
@media (min-width:900px){
  .guestbar__inner{max-width:520px;margin:0 auto}
  .guest-shell{max-width:520px}
}
/* ====================================================== */



/* ====================================================== */
/* Grid (홈 등)  */
/* ====================================================== */
.grid{display:grid;grid-template-columns:1fr;gap:16px}
@media (min-width:900px){ .grid-2{grid-template-columns:1fr 1fr} }
/* ====================================================== */




/* ====================================================== */
/* Block section (카드 제거 대체)  */
/* ====================================================== */
.block{padding:0;margin:12px 0;background:transparent}
.block__hd{
  padding:12px 0;font-weight:900;letter-spacing:.2px; margin-bottom:30px;
  /* border-bottom:1px solid var(--border); */
  display:flex;align-items:center;gap:8px
}
.block__hd2{
  padding:12px 0;font-weight:900;letter-spacing:.2px; margin-bottom:0px;
  /* border-bottom:1px solid var(--border); */
  display:flex;align-items:center;gap:8px
}
.block__bd{padding:14px 0}

.card{padding:0;margin:12px 0;background:transparent;border:0;box-shadow:none}
.card__hd{padding:12px 0;font-weight:900;border-bottom:0px solid var(--border)}
.card__bd{padding:0px 0;}
/* ====================================================== */




/* ====================================================== */
/* Typography / Chips / Lists  */
/* ====================================================== */
.muted{ color:var(--muted);font-size:14px}
.chip{ display:inline-flex;align-items:center;gap:6px;   padding:4px 10px;border-radius:999px;font-size:12px;white-space:nowrap;   background:#eef2ff;color:#3730a3 }
.chip.warn{background:#fff7ed;color:#9a3412}
ul.clean{margin:0;padding-left:18px}
.hr{height:1px;background:var(--border);margin:16px 0}
/* ====================================================== */




/* ====================================================== */
/* Forms  */
/* ====================================================== */
.form {display:block;width:100%}
.field {display:flex;flex-direction:column;gap:6px;margin-bottom:12px;}
.form-label {font-weight:700; color:#222; font-size:16px;}
.input{
  width:100%;min-height:46px;padding:12px 14px;   /* ⬆ 폼 컨트롤 키움 */
  border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--fg);
  transition:border-color .15s, box-shadow .15s, background .15s;
  font-size:16px;
}
.input:focus{outline:0;border-color:var(--brand);box-shadow:var(--ring)}
.textarea{min-height:130px;resize:vertical;padding:12px 14px}
.select{min-height:46px}
.form-row-between{display:flex;justify-content:space-between;align-items:center; }
/* ====================================================== */



/* ====================================================== */
/* Buttons  */
/* ====================================================== */
.btn{
  display:inline-flex;justify-content:center;align-items:center;gap:8px;
  min-width:120px;height:44px;                     /* ⬆ 버튼 키움 */
  padding:0 16px;border:0;border-radius:10px;
  background:var(--brand);color:#fff;font-weight:700;cursor:pointer;
  font-size:16px;
}
.btn.outline{background:#fff;color:var(--brand);border:1px solid var(--brand)}
.btn:disabled{opacity:.6;cursor:not-allowed}
/* ====================================================== */



/* ====================================================== */
/* Alerts  */
/* ====================================================== */
.alert{border:1px solid var(--border);border-radius:10px;padding:12px 14px}
.alert.ok{background:#ecfdf3;border-color:#bbf7d0;color:#065f46}
.alert.danger{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.alert-list{margin:12px 0 0;padding-left:16px}
/* ====================================================== */




/* ====================================================== */
/* Footer  */
/* ====================================================== */
/* .site-footer { background:#0f172a; color:#cbd5e1; } */
.site-footer { background:#cbd5e1; color:#555; border-top:1px solid #cbd5e1; }
.site-footer .container { max-width:1200px; margin:0 auto; padding:0px var(--wrap-pad) 0px; }
.footer-top{  display:grid; gap:12px;  grid-template-columns:1fr;   align-items:center;  padding:30px 0 8px;  border-top:1px solid #f1f1f1;}
.partner{  display:flex; align-items:center; gap:10px;  font-weight:300; color:#555;}
.partner-logo{ width:52px; height:auto; object-fit:contain; filter:brightness(1.05); }
.badges{ display:flex; gap:8px; flex-wrap:wrap;margin-bottom: 15px; }
.badge-link{  display:inline-flex; align-items:center; gap:8px;  padding:10px 12px; border-radius:999px;  background:#111827; border:1px solid #334155;  font-weight:600; font-size:14px; line-height:1;  transition:transform .08s ease, opacity .15s ease, border-color .15s ease;}
.badge-link:hover{ transform:translateY(-1px); opacity:.95; border-color:#475569; }
.badge-link svg{ display:block; }
.badge-link.cafe{ background:#555; color:#f1f1f1;}
.badge-link.home{ background:#555; color:#f1f1f1;}
.footer-middle{ padding:14px 0; }
.footer-links-row{  display:flex; align-items:center; gap:10px; flex-wrap:wrap;  font-weight:800; margin-top: 5px; }
.footer-links-row a{ color:#555; }
.footer-links-row .sep{ opacity:.45; }
.footer-bottom{  display:grid; gap:14px; align-items:start;  grid-template-columns:1fr;  padding-bottom:15px;}
.corp-info p{ margin:4px 0; }
.corp-info .addr, .corp-info .tel{ color:#555; }
.corp-info .copy{ color:#94a3b8; font-size:13px; }
.brand-mini{ text-align:left; }
.brand-mini .footer-name{ font-weight:800; color:#555;}
@media (min-width:900px){
  .footer-top{    grid-template-columns: 1fr auto;   }
  .footer-bottom{    grid-template-columns: 1fr auto;     align-items:center;  }
}
@media (min-width:1200px){
  .site-footer .container{ padding:6px var(--wrap-pad) 6px; }
  .partner-logo{ width:60px; }
}
@media (max-width:899.98px){
  .badge-link{ padding:12px 14px; font-size:15px; }
  .footer-links-row{ gap:12px; }
}
/* ====================================================== */



/* ====================================================== */
/* Utilities / A11y */
/* ====================================================== */
.text-center{text-align:center}.text-right{text-align:right}
.mt-8{margin-top:8px}.mt-16{margin-top:16px}
.hidden{display:none !important}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important}
}
/* ====================================================== */



/* ===== Safety: off-canvas & dropdown 기본 숨김, 상태 클래스로만 노출 ===== */

/* ====================================================== */
/* 드로어/사이드메뉴(모바일용) — 기본 숨김 */
/* ====================================================== */
#drawer{position:fixed; inset:0; z-index:999; pointer-events:none}
#drawer .drawer__overlay{
  position:absolute; inset:0; background:rgba(0,0,0,.45);
  opacity:0; transition:.25s;
}
#drawer .drawer__panel{
  position:absolute; top:0; right:0; height:100%; width:86vw; max-width:360px;
  background:#fff; border-left:1px solid var(--border);
  display:flex; flex-direction:column; gap:10px; padding:14px 16px;
  transform:translateX(100%); transition:transform .25s ease; will-change:transform;
  overflow-y:auto; box-shadow:-20px 0 40px rgba(0,0,0,.18);
}
#drawer .drawer__footer{  margin-top:auto;  position:sticky;  bottom:0;  background:#fff;  padding:12px 0 calc(12px + env(safe-area-inset-bottom));  border-top:1px solid #eef2f7;
  display:grid;  gap:8px;}
#drawer.open{pointer-events:auto}
#drawer.open .drawer__overlay{opacity:1}
#drawer.open .drawer__panel{transform:translateX(0)}
#drawer .drawer__close{  position:sticky; top:0; align-self:flex-start;  width:36px;height:36px;border:0;background:transparent;cursor:pointer;  border-radius:10px;font-size:24px;line-height:1;display:inline-flex;align-items:center;justify-content:center; }
#drawer .drawer__close:hover{background:#f4f6fb}
#drawer .mnav{list-style:none; padding:6px 0 0; margin:0}
#drawer .mnav .menu-item{border-bottom:1px solid #f1f5f9}
#drawer .mnav__link{
  width:100%; text-align:left; border:0; background:transparent; cursor:pointer;
  padding:12px 4px; font-weight:800; display:flex; justify-content:space-between; align-items:center;
  gap:10px;
}
#drawer .mnav__link .menu__chev{ font-size:14px; opacity:.7; }
#drawer .menu-item.open > .mnav__link .menu__chev{ opacity:1; }
#drawer .mnav__link::after{ content:none !important; }
#drawer .submenu{
  display:none; list-style:none; margin:0 0 10px 0; padding:0 0 10px 10px;
  border-left:2px solid #eef2f7;
}
#drawer .menu-item.open > .submenu{display:block}
#drawer .submenu a{display:block; padding:10px 6px; border-radius:8px}
#drawer .submenu a:hover{background:#f4f6fb}

/* 햄버거는 모바일에서만 */
.icon-btn--menu{display:inline-flex}
@media (min-width:900px){ .icon-btn--menu{display:none !important} }

/* 헤더 우측 아바타/메뉴 드롭다운 — 기본 숨김 */
.app-header__inner { position: relative; }  /* 기준점 */
.hdr-menu,
.dropdown-menu,
.user-menu { 
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px; padding: 8px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.08);
  display: none;
}
.hdr-menu.is-open,
.dropdown-menu.is-open,
.user-menu.is-open { display: block; }
/* ====================================================== */



/* ====================================================== */
/* 모달  */
/* ====================================================== */
/* 모든 모달은 기본 숨김, .open일 때 중앙 노출 */
.modal { display: none; }
.modal.open { display: grid; place-items: center; }

/* ===== Hero: 우측 보조 박스는 모바일에서 숨김 ===== */
.only-desktop { display: none !important; }
@media (min-width: 900px){
  .only-desktop { display: block !important; }
}
/* ====================================================== */




/* ====================================================== */
/* Board - 공지, 이벤트 리스트 및 상세  */
/* ====================================================== */
.chip.ok{ background:#d1d1d1; color:#fff; font-weight:700;}
/* 리스트 헤더(데스크톱에서만) */
.postlist__head{
  display:none; gap:10px; align-items:center; background-color:#F9F9F9;
  padding:10px 14px; border-top:2px solid var(--border); border-bottom:2px solid var(--border);
  color:var(--muted); font-weight:500;
}
.postlist__head .th{white-space:nowrap;}
@media (min-width:900px){
  /* 3열: 구분 | 제목 | 일자 */
  .postlist__head.cols-3{ display:grid; grid-template-columns:120px 1fr 140px; }
  .postlist.cols-3 .postlist__row{ grid-template-columns:120px 1fr 140px; align-items:center; padding:14px; }
  /* 4열이 필요한 다른 페이지가 있을 때 사용 (현재 파일은 미사용) */
  .postlist__head.cols-4{ display:grid; grid-template-columns:120px 1fr 140px 90px; }
  .postlist.cols-4 .postlist__row{ grid-template-columns:120px 1fr 140px 90px; align-items:center; padding:14px; }
  .postlist__row:hover{ background:#f9fafb; border-radius:10px }
}
/* 리스트 본문 */
.postlist{ list-style:none; margin:0; padding:0 }
.postlist__row{
  display:grid; gap:8px; grid-template-columns: 1fr; padding:14px 0; border-bottom:1px solid var(--border);}
.postlist__badges{ display:flex; gap:6px; align-items:center }
.postlist__title a{ display:inline-block; font-weight:400;}
.postlist__title a:hover{ text-decoration:underline }
.postlist__date, .postlist__views{  color:var(--muted); font-size:14px;}
@media (min-width:900px){
  .postlist__head{display:grid;grid-template-columns:120px 1fr 140px 90px}
  .postlist__row {grid-template-columns:120px 1fr 140px 90px;align-items:center;padding:14px}
}
.postlist__date,.postlist__views{color:var(--muted);font-size:14px}
/* 상세 */
.post{ display:block }
.post__hd{ padding:12px 0 8px; border-bottom:1px solid var(--border) }
.post__title{ margin:0 0 6px; font-size:22px; font-weight:00 }
.post__meta{ font-size:14px; text-align:right }
.post__figure{ margin:16px 0 6px }
.post__figure img{ width:100%; height:auto;  border:1px solid #eee; border-radius:12px;}
.post-article{  padding:16px 0 10px;}
.post-article p{ margin:0 0 12px }
.post-article h2{ font-size:20px; margin:22px 0 10px; font-weight:900 }
.post-article h3{ font-size:18px; margin:18px 0 8px; font-weight:800 }
.post-article ul{ padding-left:20px; margin:10px 0 }
.post-article img{ max-width:100%; height:auto; border-radius:8px }
.post__ft{ display:flex; gap:8px; padding:28px 0 28px; margin-top:30px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:10px; align-items:center; justify-content:center;}
.pagination { margin-top: 12px }
/* ====================================================== */



/* ====================================================== */
/* 페이징 - customized   */
/* ====================================================== */
.pager { display:flex; gap:8px; align-items:center; justify-content:center; margin-top:12px;  font-size: 14px;}
.pager__btn { padding:6px 10px; border:0px solid #e5e7eb; border-radius:8px; background:#fff; }
.pager__btn:hover { background:#f8fafc; }
.pager__btn.disabled { opacity:.35; pointer-events:none; }
.pager__sep { color:#cbd5e1; }
/* ====================================================== */



