/* 모네랩 공통 스타일 - 페이지별 레이아웃은 각 HTML에 있음 */
:root {
  --green: #03C75A;   /* 네이버 초록 (강조색) */
  --ink: #111111;
  --gray: #444444;
  --line: #DDDDDD;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-strong: 0 4px 10px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #ffffff; color: var(--ink); font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.site-header { position: relative; z-index: 2; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 6px 20px rgba(0, 0, 0, 0.06); }
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: #000000; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #ffffff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #ffffff; }

/* 검색어 띠 효과 (2026-11-06 메인에서 띠 삭제, 지금은 안 씀) */
@keyframes monetlab-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-track { animation: monetlab-ticker 38s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* 자주 묻는 질문: 질문 앞 삼각형 화살표 숨김 */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
section[id] { scroll-margin-top: 16px; }

/* 모바일 하단 고정 문의 버튼 */
.mobile-cta { display: none; }

@media (max-width: 720px) {
  .site-nav a:not(:last-child) { display: none; }
  .site-header > div { flex-wrap: nowrap !important; }
  .site-nav a:last-child { padding: 10px 14px !important; font-size: 14px; white-space: nowrap; }
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #ffffff; box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
  }
  .mobile-cta a {
    display: flex; align-items: center; justify-content: center; min-height: 52px;
    background: var(--green); color: #111111; font-weight: 800; font-size: 18px;
    text-decoration: none; border-radius: 12px;
  }
  body { padding-bottom: 80px; }
  #top figure img { height: 420px !important; }
}

/* 블로그 최신 글 (api/blog.js가 네이버 RSS에서 목록을 가져옴) */
.blog-posts { border-radius: 14px; background: #ffffff; box-shadow: var(--shadow); padding: 4px 24px; }
.blog-post { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; text-decoration: none; }
.blog-post + .blog-post { box-shadow: 0 -1px 0 #EEEEEE; }
.blog-post:hover .t { text-decoration: underline; }
.blog-post .d { color: #555555; font-size: 15px; font-variant-numeric: tabular-nums; }
.blog-post .t { font-weight: 700; font-size: 17px; }
@media (max-width: 600px) { .blog-post { grid-template-columns: 1fr; gap: 2px; } }

/* 무료 자료실 카드 */
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.res-card { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; border-radius: 14px; background: #ffffff; box-shadow: var(--shadow); text-decoration: none; transition: box-shadow 0.2s; }
.res-card:hover { box-shadow: var(--shadow-strong); }
.res-card .tag { align-self: flex-start; background: var(--green); color: #111111; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.res-card h2, .res-card h3 { margin: 0; font-size: 23px; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }
.res-card p { margin: 0; font-size: 16px; color: #444444; flex: 1; }
.res-card .go { font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }

/* 무료 자료 가벼운 잠금 (assets/js/lead-gate.js) */
.res-card { position: relative; }
.res-card .lock-badge { position: absolute; top: 28px; right: 24px; display: inline-flex; align-items: center; gap: 6px; background: #F4F4F4; color: #111111; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 4px; }

.gate-wrap { position: relative; }
.gate-rest { max-height: 760px; overflow: hidden; filter: blur(7px); opacity: 0.55; pointer-events: none; user-select: none; -webkit-user-select: none; }
.gate-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; background: linear-gradient(rgba(255, 255, 255, 0), #ffffff); pointer-events: none; }
.gate-box { position: absolute; z-index: 5; top: 16px; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 560px; padding: 28px 22px; border-radius: 18px; background: #ffffff; box-shadow: var(--shadow-strong); }
.gate-eyebrow { margin: 0; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.gate-eyebrow::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--green); }
.gate-title { margin: 12px 0 10px; font-weight: 800; font-size: clamp(21px, 4vw, 26px); line-height: 1.4; letter-spacing: -0.02em; }
.gate-sub { margin: 0 0 20px; font-size: 15px; color: #444444; }
.gate-form { display: grid; gap: 14px; }
.gate-field { display: grid; gap: 6px; font-size: 15px; font-weight: 700; }
.gate-field input { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-weight: 400; font-size: 16px; color: #111111; background: #ffffff; border: 1px solid #CCCCCC; border-radius: 10px; }
.gate-field input:focus { outline: 3px solid var(--green); outline-offset: 1px; border-color: #111111; }
.gate-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: #333333; cursor: pointer; }
.gate-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.gate-check a { color: #111111; font-weight: 700; }
.gate-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gate-msg { margin: 0; min-height: 1em; font-size: 15px; font-weight: 700; color: #D93025; }
.gate-msg:empty { display: none; }
.gate-form .gate-btn { display: flex; width: 100%; min-width: 0; border: 0; font-family: inherit; cursor: pointer; }
.gate-form .gate-btn:disabled { opacity: 0.6; cursor: default; }
.gate-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; background: rgba(17, 17, 17, 0.6); }
.gate-box.gate-box-modal { position: relative; top: auto; left: auto; transform: none; width: 100%; margin: auto 0; }
.gate-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; color: #111111; font-size: 28px; line-height: 1; cursor: pointer; border-radius: 8px; }
.gate-close:focus-visible { outline: 3px solid var(--green); }
html.gate-modal-open, html.gate-modal-open body { overflow: hidden; }
.gate-thanks { max-width: 880px; margin: 0 auto 8px; padding: 18px 22px; border-radius: 14px; background: var(--green); color: #111111; font-weight: 700; font-size: 17px; box-shadow: var(--shadow); }
@media (min-width: 721px) {
  .gate-box { padding: 36px 36px; top: 24px; }
  .gate-box.gate-box-modal { top: auto; }
  .gate-thanks { width: calc(100% - 48px); }
}
@media (max-width: 720px) {
  .gate-rest { max-height: 900px; }
  .gate-thanks { margin-left: 20px; margin-right: 20px; }
}
