:root{
  --bg:#ffffff;
  --text:#111111;
  --muted:#666a73;
  --line:#e7e8ee;
  --card:#ffffff;
  --shadow: 0 10px 30px rgba(17,17,17,.08);
  --r:14px;

  --accent:#ff2fb7;
  --accent2:#ff6ad1;
  --accent-ink:#ffffff;
}

*{ 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; }
a:hover{ text-decoration:underline; }
b{ font-weight:800; }

.wrap{
  width:min(1100px, calc(100% - 32px));
  margin:0 auto;
}

.skip{
  position:absolute; left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:16px; width:auto; height:auto;
  background:#000; color:#fff; padding:10px 12px; border-radius:10px;
  z-index:9999;
}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 220px;
}
.brand-mark{
  width:38px; height:38px; border-radius:12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 24px rgba(255,47,183,.18);
}
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{ font-weight:900; letter-spacing:-.3px; }
.brand-sub{ font-size:12px; color:var(--muted); margin-top:3px; letter-spacing:-.2px; }

.nav{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  justify-content:center;
}
.nav-link{
  padding:9px 10px;
  border-radius:999px;
  font-size:13px;
  color:#2a2d34;
  border:1px solid transparent;
}
.nav-link:hover{
  border-color: var(--line);
  background:#fafafb;
  text-decoration:none;
}

.header-cta{ display:flex; gap:8px; }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  font-size:13px;
  font-weight:900;
  letter-spacing:-.2px;
  background:#fff;
  white-space:nowrap;
}
.btn:hover{ text-decoration:none; background:#fafafb; }
.btn-primary{
  border-color: rgba(255,47,183,.35);
  background: linear-gradient(135deg, rgba(255,47,183,.95), rgba(255,106,209,.85));
  color:var(--accent-ink);
}
.btn-primary:hover{ filter: brightness(0.98); background: linear-gradient(135deg, rgba(255,47,183,.95), rgba(255,106,209,.85)); }
.btn-ghost{ background:#fff; }
.btn-soft{
  border-color: rgba(255,47,183,.18);
  background: rgba(255,47,183,.06);
}

/* Mobile menu toggle */
.nav-toggle{
  display:none;
  width:44px;
  height:40px;
  border-radius: 12px;
  border:1px solid var(--line);
  background:#fff;
  padding:0;
  align-items:center;
  justify-content:center;
}
.nav-toggle:hover{ background:#fafafb; cursor:pointer; }
.nav-toggle-lines{
  width:18px; height:12px;
  position:relative;
  display:block;
}
.nav-toggle-lines::before{
  content:"";
  position:absolute;
  left:0; right:0;
  height:2px;
  border-radius:2px;
  top:0;
  background:#2a2d34;
  box-shadow: 0 5px 0 #2a2d34, 0 10px 0 #2a2d34;
}

/* Mobile menu panel */
.mobile-menu{
  border-top:1px solid var(--line);
  background:#e9ecf3; /* ✅ 살짝 어두운 톤(본문 흰색과 확실히 구분) */
  box-shadow: 0 14px 30px rgba(17,17,17,.10);
  transform: translateY(-6px);
  opacity:0;
  transition: transform .18s ease, opacity .18s ease;
}


/* ✅ Mobile menu open 상태(이게 빠지면 메뉴가 안 보임) */
.mobile-menu.open{
  transform: translateY(0);
  opacity:1;
}



.mobile-cta{
  margin-top: 12px;
  width:100%;
}
.mobile-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.mobile-menu-inner{
  padding: 12px 0 14px;
}
/* 메뉴 버튼(카드)은 흰색 유지해서 대비 */
.m-link{
  border:1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
  background:#ffffff;
  font-size: 13px;
  font-weight: 900;
}
.m-link:hover{ text-decoration:none; background:#f1f2f7; }



/* Layout */
.layout{
  display:grid;
  grid-template-columns: 1fr 330px;
  gap:18px;
  padding: 18px 0 34px;
}
.main{ min-width:0; }
.side{ min-width:0; }

.hero{
  border:1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px 18px;
}
.h1{
  margin:0;
  font-size: 22px;
  letter-spacing:-.6px;
  line-height:1.25;
}
.lead{
  margin:10px 0 0;
  color: #2b2f36;
  line-height:1.7;
}

.hero-actions{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.hero-mini{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  color:#2b2f36;
  font-size: 13px;
}
.mini-link{
  color:#2b2f36;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sep{ color:#c0c3cc; }

.big-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing:-.3px;
  border: 1px solid rgba(255,47,183,.35);
  background: linear-gradient(135deg, rgba(255,47,183,.95), rgba(255,106,209,.85));
  color:#fff;
  box-shadow: 0 12px 28px rgba(255,47,183,.18);
}
.big-btn:hover{ text-decoration:none; filter: brightness(0.98); }
.big-btn-side{ width:100%; }

.quick-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
}
.quick{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding: 12px 12px;
  border:1px solid var(--line);
  border-radius: 12px;
  background:#fafafb;
}
.quick:hover{ text-decoration:none; background:#f4f5f8; }
.q-title{ font-weight:950; letter-spacing:-.3px; }
.q-desc{ font-size:12px; color:var(--muted); letter-spacing:-.2px; }

/* Blocks */
.block{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius: var(--r);
  background:#fff;
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.block-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}
.h2{
  margin:0;
  font-size: 16px;
  letter-spacing:-.4px;
}
.more{
  font-size: 13px;
  color: #2b2f36;
  text-decoration:underline;
  text-underline-offset: 3px;
}
.more:hover{ text-decoration: underline; }

.prose{
  color:#2b2f36;
  line-height:1.75;
}
.prose ul{
  margin:10px 0 0;
  padding-left: 18px;
}
.prose li{ margin: 6px 0; }

.steps{
  margin:0;
  padding-left: 18px;
}
.steps li{ margin: 8px 0; }

.table-wrap{
  margin-top: 10px;
  overflow:auto;
  border:1px solid var(--line);
  border-radius: 12px;
}
.tbl{
  width:100%;
  border-collapse:collapse;
  min-width: 620px;
}
.tbl th, .tbl td{
  padding: 12px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
  font-size: 13px;
  line-height:1.5;
}
.tbl thead th{
  background:#fafafb;
  font-weight:950;
}
.tbl tbody tr:last-child td{ border-bottom:none; }

.muted{
  color: var(--muted);
  font-size: 13px;
  line-height:1.65;
  margin: 10px 0 0;
}

.chips{
  margin-top: 12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.chip{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,47,183,.18);
  background: rgba(255,47,183,.06);
  font-weight: 900;
}
.chip:hover{ text-decoration:none; background: rgba(255,47,183,.10); }

.cta-row{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.center-cta{
  margin-top: 16px;
  display:flex;
  justify-content:center;
}

/* FAQ */
.faq{ display:grid; gap:8px; margin-top: 6px; }
.qa{
  border:1px solid var(--line);
  border-radius: 12px;
  background:#fafafb;
  padding: 0;
}
.qa summary{
  list-style:none;
  cursor:pointer;
  padding: 12px 12px;
  font-weight:950;
  letter-spacing:-.2px;
}
.qa summary::-webkit-details-marker{ display:none; }
.qa[open]{ background:#fff; }
.qa-body{
  padding: 0 12px 12px;
  color:#2b2f36;
  line-height:1.65;
  font-size: 13px;
}

/* Posts */
.posts{ display:grid; gap:12px; margin-top: 6px; }
.post{
  border:1px solid var(--line);
  border-radius: 12px;
  background:#fff;
  padding: 12px 12px;
}
.h3{
  margin:0;
  font-size: 15px;
  letter-spacing:-.3px;
  line-height:1.35;
}
.excerpt{
  margin:8px 0 0;
  color:#2b2f36;
  line-height:1.65;
  font-size: 13px;
}
.meta{
  margin-top:10px;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.tag{
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 999px;
  border:1px solid rgba(255,47,183,.22);
  background: rgba(255,47,183,.06);
  color:#2b2f36;
  font-weight:900;
}

/* Sidebar */
.side-box{
  border:1px solid var(--line);
  border-radius: var(--r);
  background:#fff;
  box-shadow: var(--shadow);
  padding: 14px 14px;
  margin-bottom: 14px;
}
.side-title{
  margin:0 0 10px;
  font-size: 14px;
  font-weight:950;
  letter-spacing:-.3px;
}
.side-links{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:8px;
}
.side-links a{
  border:1px solid var(--line);
  border-radius: 12px;
  padding: 10px 10px;
  background:#fafafb;
  font-size: 13px;
  font-weight:900;
}
.side-links a:hover{ text-decoration:none; background:#f4f5f8; }

.side-list{
  margin:0;
  padding-left: 18px;
  color:#2b2f36;
  line-height:1.75;
}
.side-list li{ margin: 6px 0; }

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.pill{
  border:1px solid var(--line);
  background:#fafafb;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight:900;
}
.pill:hover{ text-decoration:none; background:#f4f5f8; }

/* Footer */
.footer{
  border-top:1px solid var(--line);
  background:#fff;
}
.footer-inner{
  padding: 18px 0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.f-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  color:#2b2f36;
  font-size: 13px;
}
.f-copy{
  color: var(--muted);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 960px){
  .layout{ grid-template-columns: 1fr; }
  .side-links{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .wrap{ width: min(1100px, calc(100% - 28px)); }
  .nav{ display:none; }          /* 모바일에서는 상단 메뉴 숨김 */
  .header-cta{ display:none; }   /* 모바일에서 깨지는 버튼 영역 제거 */
  .nav-toggle{ display:inline-flex; }
}

@media (max-width: 640px){
  .header-inner{ padding: 12px 0; }
  .quick-grid{ grid-template-columns: 1fr; }
  .tbl{ min-width: 560px; }
}


/* ===== Blog (cube cards) ===== */
.grid-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media (max-width: 860px){.grid-cards{grid-template-columns:1fr}}
.gcard{display:block;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 10px 22px rgba(17,17,17,.06);transition:transform .16s ease, box-shadow .16s ease}
.gcard:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(17,17,17,.10);text-decoration:none}
.gthumb{aspect-ratio:16/9;background-size:cover;background-position:center}
.gbody{padding:12px 12px 14px}
.gtitle{font-weight:950;letter-spacing:-.4px;font-size:15px;margin:0 0 6px;color:#101012}
.gdesc{font-size:12px;line-height:1.35;color:#444;margin:0 0 10px}
.gtags{display:flex;flex-wrap:wrap;gap:6px}
.gtag{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#f7f8fb;color:#333;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800}
.blog-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}
.btab{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900;cursor:pointer}
.btab.is-on{background:rgba(255,47,183,.12);border-color:rgba(255,47,183,.35)}
/* post */
.post-hero{display:flex;gap:14px;align-items:stretch;flex-wrap:wrap}
.post-thumb{width:360px;max-width:100%;border-radius:16px;border:1px solid var(--line);box-shadow:0 10px 22px rgba(17,17,17,.06)}
.post-meta{flex:1;min-width:240px}
.post-kicker{font-size:12px;font-weight:900;color:#ff2fb7;margin:2px 0 8px}
.post-lead{margin:0;color:#333;line-height:1.5}


/* ===== Blog hard-fix (ensure cards show even if other rules collide) ===== */
#blogGrid.grid-cards{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:14px !important}
@media (max-width: 860px){#blogGrid.grid-cards{grid-template-columns:1fr !important}}
#blogGrid .gcard{display:block !important;border:1px solid var(--line) !important;border-radius:18px !important;overflow:hidden !important;background:#fff !important;box-shadow:0 10px 22px rgba(17,17,17,.06) !important;transition:transform .16s ease, box-shadow .16s ease !important}
#blogGrid .gcard:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(17,17,17,.10);text-decoration:none}
#blogGrid .gthumb{display:block !important;background-size:cover !important;background-position:center !important;aspect-ratio:16/9}
@supports not (aspect-ratio: 16/9){#blogGrid .gthumb{height:180px}}
#blogGrid .gbody{padding:12px 12px 14px}
#blogGrid .gtitle{font-weight:950;letter-spacing:-.4px;font-size:15px;margin:0 0 6px;color:#101012}
#blogGrid .gdesc{font-size:12px;line-height:1.35;color:#444;margin:0 0 10px}
#blogGrid .gtags{display:flex;flex-wrap:wrap;gap:6px}
#blogGrid .gtag{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#f7f8fb;color:#333;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800}
.blog-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}
.blog-tabs .btab{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900;cursor:pointer}
.blog-tabs .btab.is-on{background:rgba(255,47,183,.12);border-color:rgba(255,47,183,.35)}
