/* ==========================================================================
   머니노트(MONEYNOTE) — style.css
   화이트 & 블루 베이스 / 정보성 사이트형 블로그 컨셉
   건강노트(HEALTHNOTE)와 동일한 구조를 재사용하되, 색상·시그니처 요소·
   레이아웃 비중을 재무 정보 사이트에 맞게 조정했습니다.
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

:root{
  /* color — 화이트 베이스 + 블루 */
  --bg:#ffffff;
  --surface:#f5f7fb;
  --surface-alt:#eef2f9;
  --border:#e2e7f0;
  --border-strong:#cfd8e6;
  --text:#151b2c;
  --text-soft:#5b6478;
  --text-faint:#8b93a6;
  --accent:#1d5fd6;
  --accent-dark:#123f96;
  --accent-soft:#e6eefc;
  --accent-tint:#f2f6fd;
  --note:#a15a12;
  --note-soft:#fbf1e4;
  --up:#1a8f5a;      /* 상승/플러스 지표 */
  --down:#d0342c;    /* 하락/마이너스 지표 */

  /* type */
  --font-base: 'PretendardVariable', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;

  /* layout */
  --page-w: 1180px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --shadow-card: 0 1px 2px rgba(21,27,44,.04), 0 8px 20px -12px rgba(21,27,44,.12);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-base);
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;cursor:pointer;}
input,select,textarea{font-family:inherit;}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}

.wrap{max-width:var(--page-w);margin:0 auto;padding:0 24px;}

/* ---------- 유틸: 상승 추세선(시그니처 디바이더) ---------- */
.pulse-rule{
  height:16px;
  width:100%;
  background-repeat:repeat-x;
  background-position:left center;
  background-size:40px 16px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16' viewBox='0 0 40 16'%3E%3Cpath d='M0 14 L8 14 L14 9 L20 11 L26 4 L32 6 L40 1' fill='none' stroke='%23cfd8e6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='40' cy='1' r='2' fill='%231d5fd6'/%3E%3C/svg%3E");
  opacity:.95;
}

/* ---------- 헤더 ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
}
.header-top{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;gap:20px;
}
.logo{display:flex;align-items:baseline;gap:8px;font-weight:700;font-size:22px;letter-spacing:-.02em;color:var(--accent-dark);}
.logo .mark{
  display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:8px;background:var(--accent);color:#fff;
  font-size:15px;font-weight:700;font-family:var(--font-mono);
}
.logo .today{font-family:var(--font-mono);font-size:12px;font-weight:500;color:var(--text-faint);}

.header-actions{display:flex;align-items:center;gap:10px;}
.search-form{display:flex;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:6px 8px 6px 14px;min-width:220px;}
.search-form input{flex:1;border:none;background:transparent;font-size:13px;color:var(--text);}
.search-form input::placeholder{color:var(--text-faint);}
.search-form button{border:none;background:var(--accent);color:#fff;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.btn-line{border:1px solid var(--border-strong);background:#fff;color:var(--text-soft);padding:8px 14px;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap;}
.btn-line:hover{border-color:var(--accent);color:var(--accent-dark);}
.btn-solid{border:1px solid var(--accent);background:var(--accent);color:#fff;padding:8px 16px;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap;}
.btn-solid:hover{background:var(--accent-dark);border-color:var(--accent-dark);}

.main-nav{border-top:1px solid var(--border);}
.main-nav ul{display:flex;gap:2px;padding:0;overflow-x:auto;}
.main-nav a{display:block;padding:12px 16px;font-size:14px;font-weight:600;color:var(--text-soft);border-bottom:2px solid transparent;white-space:nowrap;}
.main-nav a:hover,.main-nav a.is-active{color:var(--accent-dark);border-bottom-color:var(--accent);}

.mobile-search-link{display:none;}

/* ---------- 히어로 (정보형 블로그 톤: 카피 비중 축소, 지표형 카드 강조) ---------- */
.hero{padding:52px 0 36px;}
.hero-tag{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--font-mono);font-size:12px;font-weight:500;
  color:var(--accent-dark);background:var(--accent-soft);
  padding:5px 12px;border-radius:999px;margin-bottom:18px;
}
.hero-tag::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent);}
.hero h1{
  font-size:36px;line-height:1.35;letter-spacing:-.02em;margin:0 0 14px;
  max-width:700px;font-weight:800;
}
.hero h1 em{color:var(--accent);font-style:normal;}
.hero p{font-size:15.5px;color:var(--text-soft);max-width:560px;margin:0 0 26px;}

.checkpoints{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.checkpoint-card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius-m);padding:18px;
  border-left:3px solid var(--accent);
}
.checkpoint-card .num{font-family:var(--font-mono);font-size:12px;color:var(--accent-dark);font-weight:600;}
.checkpoint-card h3{font-size:15px;margin:8px 0 6px;font-weight:700;}
.checkpoint-card p{font-size:13px;color:var(--text-soft);margin:0;}

/* ---------- 섹션 공통 ---------- */
.section{padding:40px 0;}
.section + .section{border-top:1px solid var(--border);}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:22px;gap:16px;}
.section-head .eyebrow{font-family:var(--font-mono);font-size:12px;color:var(--text-faint);margin-bottom:6px;display:block;}
.section-head h2{font-size:22px;font-weight:800;margin:0;letter-spacing:-.01em;}
.section-more{font-size:13px;font-weight:600;color:var(--accent-dark);border:1px solid var(--border-strong);padding:7px 14px;border-radius:999px;white-space:nowrap;}
.section-more:hover{border-color:var(--accent);}

/* ---------- 카드(캐러셀/그리드 공용) — 블로그형이라 텍스트 비중을 살짝 키움 ---------- */
.carousel{position:relative;}
.carousel-track{display:flex;gap:16px;overflow-x:auto;scroll-behavior:smooth;padding-bottom:4px;scrollbar-width:none;}
.carousel-track::-webkit-scrollbar{display:none;}
.carousel-arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  width:36px;height:36px;border-radius:50%;background:#fff;
  border:1px solid var(--border-strong);display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-card);z-index:5;font-size:18px;line-height:1;color:var(--text-soft);cursor:pointer;
}
.carousel-arrow:hover{border-color:var(--accent);color:var(--accent-dark);}
.carousel-arrow.prev{left:-14px;}
.carousel-arrow.next{right:-14px;}

.entry-card{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius-m);
  overflow:hidden;display:flex;flex-direction:column;flex:0 0 264px;
  box-shadow:var(--shadow-card);
}
.entry-card .thumb{aspect-ratio:16/10;overflow:hidden;background:var(--surface);}
.entry-card .thumb img{width:100%;height:100%;object-fit:cover;}
.entry-card .body{padding:15px;display:flex;flex-direction:column;flex:1;}
.entry-cat{
  display:inline-block;font-size:11px;font-weight:700;color:var(--accent-dark);
  background:var(--accent-soft);padding:3px 8px;border-radius:5px;margin-bottom:8px;width:fit-content;
}
.entry-card h3{font-size:15px;line-height:1.45;font-weight:700;margin:0 0 6px;}
.entry-card p{font-size:12.5px;color:var(--text-soft);margin:0 0 12px;flex:1;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.entry-date{
  display:flex;justify-content:space-between;align-items:center;margin-top:auto;
  font-family:var(--font-mono);font-size:11px;color:var(--text-faint);border-top:1px dashed var(--border);padding-top:10px;
}
.entry-more-card{
  flex:0 0 140px;display:flex;align-items:center;justify-content:center;text-align:center;
  border:1px dashed var(--border-strong);border-radius:var(--radius-m);color:var(--text-soft);font-size:13px;font-weight:600;
}
.entry-more-card:hover{border-color:var(--accent);color:var(--accent-dark);}

/* ---------- 스포트라이트(이달의 머니 포인트) — 정보형 블로그 느낌으로 3열 리스트형 ---------- */
.spotlight-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.pin-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-m);
  padding:16px;display:flex;flex-direction:column;
}
.pin-card .pin-thumb{aspect-ratio:16/10;border-radius:var(--radius-s);overflow:hidden;margin-bottom:12px;background:#fff;}
.pin-card .pin-thumb img{width:100%;height:100%;object-fit:cover;}
.pin-card h4{font-size:14px;font-weight:700;margin:0 0 10px;line-height:1.4;}
.pin-date{margin-top:auto;font-family:var(--font-mono);font-size:11px;color:var(--text-faint);}

/* ---------- 키워드 칩 ---------- */
.keyword-block{background:var(--accent-tint);border:1px solid var(--accent-soft);border-radius:var(--radius-l);padding:28px;text-align:center;}
.keyword-block h3{font-size:17px;font-weight:800;margin:0 0 14px;}
.keyword-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:18px;}
.keyword-chips a{background:#fff;border:1px solid var(--border-strong);padding:8px 16px;border-radius:999px;font-size:13px;font-weight:600;}
.keyword-chips a:hover{border-color:var(--accent);color:var(--accent-dark);}

/* ---------- 카테고리 목록 페이지 ---------- */
.cat-hero{padding:36px 0 20px;border-bottom:1px solid var(--border);}
.cat-hero .eyebrow{font-family:var(--font-mono);font-size:12px;color:var(--accent-dark);}
.cat-hero h1{font-size:28px;font-weight:800;margin:8px 0 8px;}
.cat-hero p{color:var(--text-soft);font-size:14px;margin:0;}

.list-toolbar{display:flex;align-items:center;justify-content:space-between;padding:22px 0 18px;gap:12px;flex-wrap:wrap;}
.sort-tabs{display:flex;gap:6px;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:4px;}
.sort-tabs button{border:none;background:transparent;padding:7px 16px;border-radius:999px;font-size:13px;font-weight:600;color:var(--text-soft);}
.sort-tabs button.is-active{background:var(--accent);color:#fff;}
.result-count{font-size:13px;color:var(--text-faint);font-family:var(--font-mono);}

/* 정보형 블로그 톤: 카드 3열(살짝 넓게)로 조정 */
.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding-bottom:30px;}
.cat-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-m);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow-card);}
.cat-card .thumb{aspect-ratio:16/10;background:var(--surface);overflow:hidden;}
.cat-card .thumb img{width:100%;height:100%;object-fit:cover;}
.cat-card .body{padding:16px;display:flex;flex-direction:column;flex:1;}
.cat-card h3{font-size:16px;font-weight:700;margin:0 0 7px;line-height:1.45;}
.cat-card p{font-size:13px;color:var(--text-soft);margin:0 0 12px;flex:1;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

.pagination{display:flex;justify-content:center;gap:6px;padding:20px 0 50px;}
.pagination button{
  width:34px;height:34px;border-radius:8px;border:1px solid var(--border);background:#fff;
  font-family:var(--font-mono);font-size:13px;font-weight:600;color:var(--text-soft);
}
.pagination button.is-active{background:var(--accent);border-color:var(--accent);color:#fff;}
.pagination button:disabled{opacity:.35;}

.empty-state{padding:70px 20px;text-align:center;color:var(--text-faint);}
.empty-state .mark{font-family:var(--font-mono);font-size:12px;color:var(--accent-dark);background:var(--accent-soft);padding:5px 12px;border-radius:999px;display:inline-block;margin-bottom:14px;}
.empty-state h3{color:var(--text);font-size:17px;margin:0 0 8px;}
.empty-state p{font-size:13px;margin:0;}

/* ---------- 상세 페이지 — 정보형 블로그답게 본문 폭을 살짝 넓힘 ---------- */
.post-head{padding:36px 0 24px;border-bottom:1px solid var(--border);}
.post-crumb{font-size:12.5px;color:var(--text-faint);margin-bottom:14px;}
.post-crumb a:hover{color:var(--accent-dark);}
.post-head h1{font-size:29px;font-weight:800;line-height:1.42;margin:0 0 16px;letter-spacing:-.01em;}
.post-meta{display:flex;flex-wrap:wrap;gap:16px;font-family:var(--font-mono);font-size:12.5px;color:var(--text-faint);}
.post-meta span{display:flex;align-items:center;gap:6px;}

.post-body{padding:34px 0;max-width:800px;}
.post-intro{font-size:16px;color:var(--text-soft);padding:18px 20px;background:var(--surface);border-left:3px solid var(--accent);border-radius:0 var(--radius-s) var(--radius-s) 0;margin-bottom:36px;}
.post-hero-img{border-radius:var(--radius-m);overflow:hidden;margin-bottom:36px;border:1px solid var(--border);aspect-ratio:16/9;background:var(--surface);}
.post-hero-img img{width:100%;height:100%;object-fit:cover;display:block;}

.post-section{margin-bottom:34px;}
.post-section h2{font-size:20px;font-weight:800;margin:0 0 14px;display:flex;align-items:center;gap:10px;}
.post-section h2::before{content:"";width:4px;height:18px;background:var(--accent);border-radius:2px;}
.post-section p{font-size:15.5px;color:var(--text);margin:0 0 14px;}

.keyfact-box{background:var(--note-soft);border:1px solid #f0dcc0;border-radius:var(--radius-m);padding:16px 18px;margin:16px 0;}
.keyfact-box .kf-label{font-family:var(--font-mono);font-size:11.5px;font-weight:700;color:var(--note);margin-bottom:8px;display:block;}
.keyfact-box ul{padding-left:18px;list-style:disc;}
.keyfact-box li{font-size:14px;color:var(--text);margin-bottom:4px;}

.post-table{width:100%;border-collapse:collapse;margin:16px 0;font-size:14px;}
.post-table th,.post-table td{border:1px solid var(--border);padding:10px 12px;text-align:left;}
.post-table th{background:var(--surface);font-weight:700;font-family:var(--font-mono);font-size:12.5px;color:var(--text-soft);}

.post-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:30px;padding-top:24px;border-top:1px dashed var(--border);}
.post-tags a{background:var(--surface);border:1px solid var(--border);padding:6px 13px;border-radius:999px;font-size:12.5px;color:var(--text-soft);}
.post-tags a:hover{border-color:var(--accent);color:var(--accent-dark);}

.related-block{border-top:1px solid var(--border);padding:36px 0 50px;}

/* ---------- 검색 페이지 ---------- */
.search-hero{padding:40px 0 10px;}
.search-hero h1{font-size:25px;font-weight:800;margin:0 0 18px;}
.search-big-form{display:flex;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:8px;}
.search-big-form input{flex:1;border:none;background:transparent;padding:10px 12px;font-size:15px;}
.search-big-form button{background:var(--accent);color:#fff;border:none;padding:0 22px;border-radius:10px;font-weight:700;font-size:14px;}
.search-list{padding:26px 0 60px;display:flex;flex-direction:column;gap:12px;}
.search-row{display:flex;gap:16px;background:#fff;border:1px solid var(--border);border-radius:var(--radius-m);padding:14px;align-items:center;}
.search-row .thumb{width:96px;height:72px;border-radius:var(--radius-s);overflow:hidden;flex-shrink:0;background:var(--surface);}
.search-row .thumb img{width:100%;height:100%;object-fit:cover;}
.search-row h3{font-size:15px;font-weight:700;margin:0 0 6px;}
.search-row p{font-size:12.5px;color:var(--text-faint);margin:0;font-family:var(--font-mono);}

/* ---------- 정적 페이지(소개/약관 등) ---------- */
.static-page{padding:44px 0 70px;max-width:760px;}
.static-page h1{font-size:27px;font-weight:800;margin:0 0 20px;}
.static-page h2{font-size:18px;font-weight:800;margin:30px 0 10px;}
.static-page p,.static-page li{font-size:14.5px;color:var(--text-soft);line-height:1.8;}
.static-page ul{padding-left:20px;list-style:disc;}
.bracket{color:var(--note);background:var(--note-soft);padding:1px 5px;border-radius:4px;font-family:var(--font-mono);font-size:.92em;}

/* ---------- 문의 페이지 ---------- */
.contact-tabs{display:flex;gap:8px;margin-bottom:26px;flex-wrap:wrap;}
.contact-tabs a{padding:9px 18px;border-radius:999px;border:1px solid var(--border);font-size:13.5px;font-weight:600;color:var(--text-soft);}
.contact-tabs a.is-active{background:var(--accent);border-color:var(--accent);color:#fff;}
.contact-form{display:flex;flex-direction:column;gap:14px;max-width:560px;}
.contact-form label{font-size:13px;font-weight:700;margin-bottom:6px;display:block;}
.contact-form input,.contact-form select,.contact-form textarea{
  width:100%;border:1px solid var(--border-strong);border-radius:var(--radius-s);padding:11px 13px;font-size:14px;background:#fff;
}
.contact-form textarea{min-height:130px;resize:vertical;}

/* ---------- 푸터 ---------- */
.site-footer{border-top:1px solid var(--border);background:var(--surface);margin-top:20px;}
.footer-top{padding:34px 0 22px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:24px;}
.footer-brand .logo{margin-bottom:8px;}
.footer-brand p{font-size:13px;color:var(--text-faint);max-width:320px;}
.footer-links{display:flex;gap:48px;flex-wrap:wrap;}
.footer-col h5{font-size:12.5px;color:var(--text-faint);font-family:var(--font-mono);margin:0 0 12px;}
.footer-col a{display:block;font-size:13.5px;color:var(--text-soft);margin-bottom:10px;}
.footer-col a:hover{color:var(--accent-dark);}
.footer-bottom{border-top:1px solid var(--border);padding:16px 0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--text-faint);}
.footer-bottom a{color:var(--text-faint);}

/* ---------- 반응형 ---------- */
@media (max-width:960px){
  .checkpoints{grid-template-columns:1fr;}
  .spotlight-grid{grid-template-columns:repeat(2,1fr);}
  .cat-grid{grid-template-columns:repeat(2,1fr);}
  .hero h1{font-size:28px;}
}
@media (max-width:640px){
  .search-form{display:none;}
  .mobile-search-link{display:flex;width:36px;height:36px;border-radius:50%;border:1px solid var(--border-strong);align-items:center;justify-content:center;}
  .spotlight-grid{grid-template-columns:1fr;}
  .cat-grid{grid-template-columns:1fr;}
  .footer-links{gap:28px;}
  .post-head h1{font-size:23px;}
}
