@charset "utf-8";
/* ===== Gemini 스타일 테마 ===== */
:root{
  --gm-bg:#fff; --gm-side:#f0f4f9; --gm-surface:#f0f4f9; --gm-hover:#e2e7ed; --gm-active:#d3e3fd;
  --gm-text:#1f1f1f; --gm-sub:#444746; --gm-muted:#747775; --gm-line:#e3e3e3; --gm-blue:#0b57d0;
  --gm-side-w:280px; --gm-side-wc:72px;
}
html,body{background:var(--gm-bg)!important;}
body{font-family:'Google Sans','Noto Sans KR',-apple-system,sans-serif;color:var(--gm-text);min-width:0!important;}
.material-symbols-outlined{font-size:22px;line-height:1;vertical-align:middle;font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;}
a{color:inherit}

/* 레이아웃 */
.gm-app{display:flex;min-height:100vh}
.gm-side{position:sticky;top:0;height:100vh;width:var(--gm-side-w);flex:0 0 var(--gm-side-w);background:var(--gm-side);display:flex;flex-direction:column;padding:12px;box-sizing:border-box;transition:width .25s,flex-basis .25s;overflow:hidden;z-index:50}
.gm-main{flex:1;min-width:0;display:flex;flex-direction:column}
@media (min-width:769px){
  .gm-collapsed .gm-side{width:var(--gm-side-wc);flex-basis:var(--gm-side-wc)}
  .gm-collapsed .gm-label{display:none!important}
}

/* 사이드바 */
.gm-side-top{height:48px;display:flex;align-items:center}
.gm-icon-btn{width:48px;height:48px;border:0;border-radius:50%;background:transparent;color:var(--gm-sub);cursor:pointer;display:flex;align-items:center;justify-content:center}
.gm-icon-btn:hover{background:var(--gm-hover)}
.gm-newchat{display:inline-flex;align-items:center;gap:12px;height:44px;padding:0 14px;margin:20px 0 16px;border-radius:22px;background:#dde3ea;color:var(--gm-sub)!important;text-decoration:none!important;font-size:14px;font-weight:500;white-space:nowrap;align-self:flex-start}
.gm-newchat:hover{background:#d0d7df}
.gm-side-scroll{flex:1;overflow-y:auto;overflow-x:hidden;margin:0 -4px;padding:0 4px}
.gm-side-title{font-size:14px;font-weight:500;color:var(--gm-text);margin:16px 0 6px 14px;white-space:nowrap}
.gm-side-list{list-style:none;margin:0;padding:0}
.gm-side-list a,.gm-side-bottom a{display:flex;align-items:center;gap:12px;height:40px;padding:0 14px;border-radius:20px;color:var(--gm-sub)!important;text-decoration:none!important;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gm-side-list a:hover,.gm-side-bottom a:hover{background:var(--gm-hover)}
.gm-side-list .material-symbols-outlined{font-size:20px}
.gm-side-sub{list-style:none;margin:0 0 4px 34px;padding:0}
.gm-side-sub a{height:32px;font-size:13px;color:var(--gm-muted)!important}
.gm-recent a{display:block;line-height:40px}
.gm-empty{padding:8px 14px;font-size:13px;color:var(--gm-muted)}
.gm-side-bottom{border-top:0;padding-top:8px}
.gm-side-bottom .visit-num,.gm-side-bottom strong{font-weight:400}
@media (min-width:769px){ .gm-collapsed .gm-newchat{padding:0;width:44px;justify-content:center} }

/* 상단바 */
.gm-top{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;position:sticky;top:0;background:var(--gm-bg);z-index:40}
.gm-brand{display:inline-flex;align-items:center;font-size:20px;color:var(--gm-sub)!important;text-decoration:none!important;padding:6px 8px 6px 12px;border-radius:8px}
.gm-brand:hover{background:var(--gm-surface)}
.gm-top-right{display:flex;align-items:center;gap:8px}
.gm-chip-btn{font-size:14px;color:var(--gm-sub)!important;padding:8px 14px;border-radius:20px;text-decoration:none!important}
.gm-chip-btn:hover{background:var(--gm-surface)}
.gm-login-btn{font-size:14px;font-weight:500;background:var(--gm-blue);color:#fff!important;padding:10px 22px;border-radius:20px;text-decoration:none!important}
.gm-login-btn:hover{background:#0842a0}
.gm-avatar-wr{position:relative}
.gm-avatar{width:36px;height:36px;border-radius:50%;border:0;background:linear-gradient(135deg,#4285f4,#9b72cb);color:#fff;font-size:15px;font-weight:500;cursor:pointer}
.gm-pop{display:none;position:absolute;right:0;top:46px;width:260px;background:#e9eef6;border-radius:24px;padding:16px;box-shadow:0 4px 16px rgba(0,0,0,.15);z-index:100}
.gm-pop.on{display:block}
.gm-pop-name{font-size:18px;text-align:center;margin:6px 0 2px}
.gm-pop-mail{font-size:13px;color:var(--gm-muted);text-align:center;margin:0 0 14px}
.gm-pop a{display:block;background:#fff;padding:12px 16px;font-size:14px;color:var(--gm-text)!important;text-decoration:none!important;margin-bottom:2px;border-radius:4px}
.gm-pop a:first-of-type{border-radius:16px 16px 4px 4px}
.gm-pop a.gm-pop-out{border-radius:4px 4px 16px 16px}
.gm-pop a:hover{background:#f8fafd}

/* 기본 그누보드 컨테이너 재정의 */
.gm-main #wrapper{flex:1;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;background:none!important}
.gm-main #container_wr{width:auto!important;max-width:1000px;margin:0 auto!important;padding:0 24px!important;float:none!important;zoom:normal}
.gm-main #container{width:auto!important;float:none!important;min-height:0;padding:0!important;margin:0!important;background:none!important}
.gm-main #container_wr:after{content:"";display:block;clear:both}
#container_title{font-size:28px;font-weight:500;margin:16px 0 24px;padding:0;border:0;background:none;color:var(--gm-text)}
#container_title span{display:inline;padding:0;width:auto}
#container.gm-is-index{max-width:820px;margin:0 auto!important}

/* 메인 */
.gm-home{padding:8vh 0 24px}
.gm-hero{margin-bottom:28px}
.gm-hello{display:flex;align-items:center;gap:10px;font-size:20px;margin:0 0 4px}
.gm-spark{font-size:26px!important;background:linear-gradient(135deg,#4285f4,#9b72cb,#d96570);-webkit-background-clip:text;background-clip:text;color:transparent}
.gm-grad{background:linear-gradient(74deg,#4285f4 0,#9b72cb 25%,#d96570 50%,#9b72cb 75%,#4285f4 100%);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:gmShine 4s ease-out forwards}
@keyframes gmShine{from{background-position:100% 0}to{background-position:0 0}}
.gm-ask{font-size:44px;line-height:1.2;font-weight:500;letter-spacing:-.01em;color:var(--gm-text);margin:0}

.gm-prompt{background:var(--gm-bg);border:1px solid #dadce0;border-radius:28px;padding:16px 12px 8px 22px;box-shadow:0 2px 8px rgba(0,0,0,.06);transition:box-shadow .2s}
.gm-prompt:focus-within{box-shadow:0 2px 14px rgba(11,87,208,.15)}
.gm-prompt textarea{display:block;width:100%;border:0!important;outline:0;resize:none;background:transparent;font:inherit;font-size:16px;line-height:24px;min-height:48px;max-height:200px;color:var(--gm-text);padding:0;box-shadow:none!important}
.gm-prompt-bar{display:flex;align-items:center;justify-content:space-between;margin-top:6px}
.gm-prompt-tools{display:flex;gap:4px;margin-left:-10px}
.gm-tool{display:inline-flex;align-items:center;gap:6px;height:40px;min-width:40px;justify-content:center;border-radius:20px;color:var(--gm-sub)!important;text-decoration:none!important;font-size:14px}
.gm-tool-txt{padding:0 12px}
.gm-tool:hover{background:var(--gm-surface)}
.gm-tool .material-symbols-outlined{font-size:20px}
.gm-send{width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:var(--gm-muted);cursor:pointer}
.gm-send:hover{background:var(--gm-surface);color:var(--gm-blue)}

.gm-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:20px 0 64px}
.gm-chip{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:20px;background:var(--gm-surface);color:var(--gm-text)!important;text-decoration:none!important;font-size:14px}
.gm-chip:hover{background:var(--gm-hover)}
.gm-chip .material-symbols-outlined{font-size:18px}

.gm-section{margin-bottom:16px}
.gm-section-title{font-size:15px;font-weight:500;color:var(--gm-sub);margin:0 0 12px 4px}
.gm-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.gm-grid3 > *,.gm-box{background:var(--gm-surface);border-radius:20px;padding:18px;overflow:hidden;min-width:0}
.gm-home .lat,.gm-home .pic_lt,.gm-home .pic_li_lt,.gm-home .lt_wr{width:auto!important;float:none!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}
.gm-home .lat_title,.gm-home .lat_title a{font-size:15px!important;font-weight:500;color:var(--gm-text)!important;border:0!important;background:none!important;padding:0!important;margin:0 0 10px!important;line-height:1.4!important;height:auto!important}
.gm-home .lat_title a:after{display:none}
.gm-home ul li,.gm-home ul li a{color:var(--gm-sub)}
.gm-home ul li a:hover{color:var(--gm-blue);text-decoration:none}
.gm-home li{border:0!important}
.gm-home img{border-radius:12px}

/* 하단 */
.gm-ft{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;padding:28px 20px 20px;margin:0!important;font-size:12px;color:var(--gm-muted);background:none!important;border:0!important;width:auto!important}
.gm-ft a{color:var(--gm-muted)!important;text-decoration:none}
.gm-ft a:hover{text-decoration:underline}
#top_btn{position:fixed;right:24px;bottom:24px;width:44px;height:44px;border:0;border-radius:50%;background:var(--gm-surface);color:var(--gm-sub);box-shadow:0 2px 8px rgba(0,0,0,.12);cursor:pointer;opacity:0;pointer-events:none;transition:opacity .2s;z-index:90}
#top_btn.on{opacity:1;pointer-events:auto}
#top_btn:hover{background:var(--gm-hover)}
hr{display:none}

/* 서브페이지 게시판 부드럽게 */
.gm-is-sub .btn_b01,.gm-is-sub .btn_b02,.gm-is-sub .btn_submit{border-radius:20px!important}
.gm-is-sub input.frm_input,.gm-is-sub textarea,.gm-is-sub select{border-radius:12px}

@media (min-width:769px) and (max-width:1000px){
  .gm-side{width:var(--gm-side-wc);flex-basis:var(--gm-side-wc)}
  .gm-side .gm-label{display:none!important}
  .gm-side .gm-newchat{padding:0;width:44px;justify-content:center}
}
@media (max-width:1000px){
  .gm-grid3{grid-template-columns:1fr}
  .gm-ask{font-size:34px}
}

/* 검색창 화면 가운데 배치 */
.gm-home{padding:0 0 24px}
.gm-center{min-height:calc(100vh - 64px);display:flex;flex-direction:column;justify-content:center;padding-bottom:64px;box-sizing:border-box}
.gm-center .gm-hero{text-align:center}
.gm-center .gm-hello{justify-content:center}
.gm-center .gm-chips{margin:20px 0 0}

/* 메인 검색창 화면 정중앙 */
#container.gm-is-index .gm-home{padding:0!important;min-height:calc(100vh - 150px);display:flex!important;flex-direction:column;justify-content:center;box-sizing:border-box}
#container.gm-is-index .gm-hero{text-align:center;margin-bottom:28px}
#container.gm-is-index .gm-hello{justify-content:center}
#container.gm-is-index .gm-prompt{width:100%;max-width:760px;margin:0 auto;box-sizing:border-box}

/* ===== 사이드바 하단 (정보 / 앱 다운로드 / 가격 책정 / 비즈니스용 / 로그인·설정) ===== */
.gm-side-foot{margin-top:auto;padding:8px 0 4px}
.gm-side-foot-list{list-style:none;margin:0;padding:0}
.gm-side-foot-list a{display:flex;align-items:center;gap:16px;height:44px;padding:0 13px;border-radius:22px;color:var(--gm-text)!important;text-decoration:none!important;font-size:15px;white-space:nowrap;overflow:hidden;transition:background .15s}
.gm-side-foot-list a:hover{background:var(--gm-hover)}
.gm-foot-ico{flex:0 0 22px;width:22px;height:22px;font-size:22px!important;color:var(--gm-sub);font-variation-settings:'FILL' 0,'wght' 300,'GRAD' 0,'opsz' 24!important}
.gm-side-foot-row{display:flex;align-items:center;justify-content:space-between;margin-top:10px}
.gm-side-login{display:inline-flex;align-items:center;height:40px;padding:0 18px;border-radius:20px;background:#dde3ea;color:var(--gm-text)!important;text-decoration:none!important;font-size:14px;font-weight:500;white-space:nowrap}
.gm-side-login:hover{background:#d0d7df}
.gm-side-set{text-decoration:none!important}
.gm-side-set .material-symbols-outlined{font-size:24px;font-variation-settings:'FILL' 0,'wght' 300,'GRAD' 0,'opsz' 24}
/* 사이드바 접힘 상태: 아이콘만 */
@media (min-width:769px){
  .gm-collapsed .gm-side-login{display:none}
  .gm-collapsed .gm-side-foot-row{justify-content:center}
}
@media (min-width:769px) and (max-width:1000px){
  .gm-side .gm-side-login{display:none}
  .gm-side .gm-side-foot-row{justify-content:center}
}

/* ===================================================================
   반응형 / 모바일
   =================================================================== */
/* 기본 그누보드 고정폭(1200px) 해제 */
#ft.gm-ft,#hd,#wrapper{min-width:0!important}
html{-webkit-text-size-adjust:100%}

/* 사이드바 로고 */
.gm-logo{display:flex;align-items:center;gap:8px;padding:4px 10px;margin-top:4px;text-decoration:none!important;color:inherit!important;white-space:nowrap;overflow:hidden}
.gm-logo img{flex:0 0 28px;width:28px;height:28px;object-fit:contain}
.gm-logo h2{font-size:22px;font-weight:700;margin:0;line-height:1}

/* 모바일 전용 요소: PC에서는 숨김 */
.gm-mob-menu,.gm-side-close,.gm-dim{display:none}
.gm-brand-txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 본문 콘텐츠가 화면 밖으로 넘치지 않게 */
.gm-main img,.gm-main video,.gm-main iframe{max-width:100%}
.gm-main #bo_v_con img{height:auto}
.gm-main .tbl_wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}

@media (max-width:768px){
  /* 사이드바 → 왼쪽 서랍 메뉴 */
  .gm-side{position:fixed;top:0;left:0;bottom:0;height:auto;width:min(300px,85vw);flex:none;z-index:1000;
    transform:translateX(-100%);transition:transform .25s ease,visibility .25s;visibility:hidden;
    box-shadow:0 0 24px rgba(0,0,0,.18);padding-top:calc(12px + env(safe-area-inset-top));padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  .gm-drawer-open .gm-side{transform:none;visibility:visible}
  .gm-dim{display:block;position:fixed;inset:0;background:rgba(0,0,0,.32);z-index:999;opacity:0;pointer-events:none;transition:opacity .25s}
  .gm-drawer-open .gm-dim{opacity:1;pointer-events:auto}
  body.gm-noscroll{overflow:hidden}
  #gmSideToggle{display:none}
  .gm-side-close{display:flex;margin-left:auto}
  .gm-side-list a{height:44px}

  /* 상단바 */
  .gm-top{height:56px;padding:0 8px 0 4px;padding-top:env(safe-area-inset-top);gap:4px}
  .gm-mob-menu{display:flex;flex:0 0 48px}
  .gm-brand{flex:1;min-width:0;font-size:18px;padding:6px 4px}
  .gm-brand .material-symbols-outlined{display:none}
  .gm-top-right{flex:0 0 auto;gap:4px}
  .gm-chip-btn{padding:8px 10px;font-size:13px}
  .gm-login-btn{padding:9px 16px;font-size:13px}
  .gm-pop{position:fixed;top:60px;right:8px;left:auto;width:min(280px,calc(100vw - 16px))}

  /* 본문 */
  .gm-main #container_wr{padding:0 16px!important}
  #container_title{font-size:22px;margin:8px 0 16px}
  #container.gm-is-index .gm-home{min-height:calc(100vh - 140px)}

  /* 하단 */
  .gm-ft{padding:24px 16px calc(16px + env(safe-area-inset-bottom));gap:6px 12px}
  #top_btn{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));width:44px;height:44px}

  /* 그룹 페이지 최신글: 1열 */
  .latest_wr .lt_wr{float:none!important;width:100%!important;margin:0 0 16px!important}

  /* 게시판 / 회원 폼 */
  .gm-main .tbl_wrap table{min-width:520px}
  .gm-main .frm_input,.gm-main select,.gm-main textarea{max-width:100%}
  .gm-main .twopart_input,.gm-main .half_input{width:100%!important;margin:0 0 6px!important}
  .gm-main .mbskin,.gm-main .register,.gm-main #mb_login,.gm-main #find_info{width:auto!important;max-width:100%!important}
  .gm-main .bo_fx,.gm-main #bo_btn_top{flex-wrap:wrap}
  .gm-main input[type=text],.gm-main input[type=password],.gm-main input[type=email],.gm-main textarea{font-size:16px} /* iOS 확대 방지 */
  #validation_check{width:auto;margin:40px 16px}
}

@media (max-width:380px){
  .gm-chip-btn{display:none} /* 아주 좁은 화면: 회원가입은 사이드바/로그인 화면으로 */
}
