/*
Theme Name: NEW HEALTHS
Theme URI: https://newhealths.ca/
Author: NEW HEALTHS
Description: 일상의 작은 사건에서 마음을 읽는 정신건강·심리 매거진 테마. 40~60대의 가독성과 모바일 속도를 우선으로 설계했습니다.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newhealths
Tags: blog, magazine, one-column, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   1. 디자인 토큰
   ========================================================= */
:root{
  --nh-bg:          #FBF8F3;   /* 아이보리 */
  --nh-surface:     #FFFFFF;
  --nh-surface-alt: #F4EFE6;   /* 따뜻한 베이지 */
  --nh-sand:        #EDE5D8;
  --nh-line:        #E4DCCD;
  --nh-line-soft:   #EFE8DC;

  --nh-ink:         #2C2924;   /* 본문 */
  --nh-ink-2:       #56514A;   /* 보조 텍스트 */
  --nh-ink-3:       #857E73;   /* 캡션 */

  --nh-sage:        #6F8F76;   /* 포인트 세이지 */
  --nh-sage-deep:   #4F6B56;
  --nh-sage-soft:   #E7EEE7;
  --nh-blue:        #5F7C90;   /* 차분한 블루 */
  --nh-blue-soft:   #E6EDF1;
  --nh-clay:        #B4826A;   /* 따뜻한 강조 */

  --nh-radius:      14px;
  --nh-radius-lg:   20px;
  --nh-shadow:      0 1px 2px rgba(44,41,36,.04), 0 8px 24px rgba(44,41,36,.05);
  --nh-shadow-hover:0 2px 6px rgba(44,41,36,.06), 0 16px 40px rgba(44,41,36,.09);

  --nh-serif: "Nanum Myeongjo", "Noto Serif KR", Georgia, "Apple SD Gothic Neo", serif;
  --nh-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
             "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;

  --nh-wrap: 1160px;
  --nh-read: 720px;
  --nh-gap: 28px;
}

/* =========================================================
   2. 리셋 & 기본
   ========================================================= */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--nh-bg);
  color:var(--nh-ink);
  font-family:var(--nh-sans);
  font-size:17px;
  line-height:1.8;
  letter-spacing:-.01em;
  word-break:keep-all;
  overflow-wrap:break-word;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
a:hover{ color:var(--nh-sage-deep); }
button{ font:inherit; cursor:pointer; }
h1,h2,h3,h4{ line-height:1.4; letter-spacing:-.02em; margin:0 0 .6em; font-weight:700; }
p{ margin:0 0 1.15em; }
ul,ol{ padding-left:1.25em; }
hr{ border:0; border-top:1px solid var(--nh-line); margin:2.5rem 0; }
:focus-visible{ outline:3px solid var(--nh-sage); outline-offset:3px; border-radius:4px; }

.nh-wrap{ width:100%; max-width:var(--nh-wrap); margin:0 auto; padding:0 22px; }
.nh-read{ width:100%; max-width:var(--nh-read); margin:0 auto; padding:0 22px; }
.screen-reader-text{
  position:absolute!important; width:1px; height:1px; overflow:hidden;
  clip:rect(1px,1px,1px,1px); white-space:nowrap;
}
.skip-link{
  position:absolute; left:-9999px; top:0; z-index:999;
  background:var(--nh-sage-deep); color:#fff; padding:12px 18px; border-radius:0 0 10px 0;
}
.skip-link:focus{ left:0; color:#fff; }

/* =========================================================
   3. 헤더 / 네비게이션
   ========================================================= */
.nh-header{
  position:sticky; top:0; z-index:100;
  background:rgba(251,248,243,.92);
  backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid var(--nh-line-soft);
}
.nh-header__inner{
  display:flex; align-items:center; gap:20px;
  min-height:70px;
}
.nh-brand{ display:flex; flex-direction:column; line-height:1.15; margin-right:auto; }
.nh-brand__name{
  font-family:var(--nh-serif);
  font-size:1.32rem; font-weight:700; letter-spacing:.01em; color:var(--nh-ink);
}
.nh-brand__tag{ font-size:.7rem; color:var(--nh-ink-3); letter-spacing:.14em; text-transform:uppercase; margin-top:2px; }

.nh-nav ul{ list-style:none; display:flex; gap:4px; margin:0; padding:0; }
.nh-nav a{
  display:block; padding:9px 13px; border-radius:999px;
  font-size:.95rem; font-weight:500; color:var(--nh-ink-2);
  transition:background .18s, color .18s;
}
.nh-nav a:hover,
.nh-nav .current-menu-item > a,
.nh-nav .current-post-ancestor > a,
.nh-nav .current-menu-parent > a{ background:var(--nh-sage-soft); color:var(--nh-sage-deep); }

.nh-header__tools{ display:flex; align-items:center; gap:6px; }
.nh-iconbtn{
  width:42px; height:42px; display:grid; place-items:center;
  background:transparent; border:1px solid var(--nh-line); border-radius:999px; color:var(--nh-ink-2);
}
.nh-iconbtn:hover{ background:var(--nh-surface); color:var(--nh-sage-deep); }
.nh-iconbtn svg{ width:19px; height:19px; }
.nh-burger{ display:none; }

/* 검색 드로어 */
.nh-searchbar{
  display:none; border-top:1px solid var(--nh-line-soft);
  background:var(--nh-surface);
}
.nh-searchbar.is-open{ display:block; }
.nh-searchbar .nh-wrap{ padding-top:18px; padding-bottom:18px; }

/* 모바일 메뉴 */
.nh-mobilenav{ display:none; border-top:1px solid var(--nh-line-soft); background:var(--nh-surface); }
.nh-mobilenav.is-open{ display:block; }
.nh-mobilenav ul{ list-style:none; margin:0; padding:10px 0; }
.nh-mobilenav a{ display:block; padding:13px 22px; font-size:1.02rem; font-weight:500; border-bottom:1px solid var(--nh-line-soft); }
.nh-mobilenav li:last-child a{ border-bottom:0; }

/* 검색 폼 */
.nh-search{ display:flex; gap:8px; }
.nh-search input[type="search"]{
  flex:1; min-width:0; padding:14px 18px; font-size:1rem; font-family:inherit;
  border:1px solid var(--nh-line); border-radius:999px; background:var(--nh-bg); color:var(--nh-ink);
}
.nh-search input[type="search"]:focus{ border-color:var(--nh-sage); outline:none; }
.nh-search button{
  padding:14px 24px; border:0; border-radius:999px; font-weight:600;
  background:var(--nh-sage-deep); color:#fff;
}
.nh-search button:hover{ background:var(--nh-sage); }

/* =========================================================
   4. 버튼 / 공통 파츠
   ========================================================= */
.nh-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:15px 28px; border-radius:999px; font-weight:600; font-size:1rem;
  border:1px solid transparent; transition:transform .18s, box-shadow .18s, background .18s;
}
.nh-btn--primary{ background:var(--nh-sage-deep); color:#fff; }
.nh-btn--primary:hover{ background:var(--nh-sage); color:#fff; transform:translateY(-1px); box-shadow:var(--nh-shadow); }
.nh-btn--ghost{ background:transparent; color:var(--nh-ink); border-color:var(--nh-line); }
.nh-btn--ghost:hover{ background:var(--nh-surface); color:var(--nh-sage-deep); border-color:var(--nh-sage); }

.nh-eyebrow{
  display:inline-block; font-size:.74rem; font-weight:700; letter-spacing:.16em;
  text-transform:uppercase; color:var(--nh-sage-deep);
}
.nh-sec{ padding:64px 0; }
.nh-sec--alt{ background:var(--nh-surface-alt); }
.nh-sec__head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:30px; }
.nh-sec__title{
  font-family:var(--nh-serif); font-size:clamp(1.45rem,1.15rem + 1.1vw,2rem);
  margin:6px 0 0; font-weight:700;
}
.nh-sec__desc{ margin:10px 0 0; color:var(--nh-ink-2); font-size:.98rem; max-width:56ch; }
.nh-more{ font-size:.94rem; font-weight:600; color:var(--nh-sage-deep); white-space:nowrap; }
.nh-more:hover{ text-decoration:underline; }

/* =========================================================
   5. 히어로
   ========================================================= */
.nh-hero{
  position:relative; overflow:hidden;
  background:
    radial-gradient(120% 90% at 88% 8%, #EAF0E9 0%, rgba(234,240,233,0) 58%),
    radial-gradient(90% 80% at 5% 95%, #F6EDE3 0%, rgba(246,237,227,0) 60%),
    var(--nh-bg);
  padding:88px 0 76px;
  border-bottom:1px solid var(--nh-line-soft);
}
.nh-hero__inner{ max-width:820px; }
.nh-hero h1{
  font-family:var(--nh-serif);
  font-size:clamp(2.1rem,1.4rem + 3.1vw,3.5rem);
  line-height:1.28; margin:16px 0 0; font-weight:700;
}
.nh-hero__ko{
  display:block; font-family:var(--nh-sans); font-weight:600;
  font-size:clamp(1.05rem,.9rem + .8vw,1.4rem); color:var(--nh-sage-deep); margin-top:16px; letter-spacing:-.02em;
}
.nh-hero__lede{
  margin:26px 0 0; font-size:clamp(1rem,.96rem + .25vw,1.12rem);
  color:var(--nh-ink-2); line-height:1.95; max-width:60ch;
}
.nh-hero__cta{ display:flex; flex-wrap:wrap; gap:12px; margin-top:34px; }

/* =========================================================
   6. 감정 선택
   ========================================================= */
.nh-mood__q{
  font-family:var(--nh-serif); text-align:center;
  font-size:clamp(1.35rem,1.1rem + 1.1vw,1.9rem); margin:0 0 8px;
}
.nh-mood__sub{ text-align:center; color:var(--nh-ink-2); margin:0 0 32px; font-size:.98rem; }
.nh-mood__grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px;
}
.nh-mood__item{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  padding:26px 14px; text-align:center;
  background:var(--nh-surface); border:1px solid var(--nh-line);
  border-radius:var(--nh-radius-lg); box-shadow:var(--nh-shadow);
  font-weight:600; font-size:1.04rem; color:var(--nh-ink);
  transition:transform .2s, box-shadow .2s, border-color .2s;
}
.nh-mood__item:hover{
  transform:translateY(-3px); box-shadow:var(--nh-shadow-hover);
  border-color:var(--nh-sage); color:var(--nh-sage-deep);
}
.nh-mood__icon{
  width:44px; height:44px; border-radius:999px; display:grid; place-items:center;
  background:var(--nh-sage-soft); color:var(--nh-sage-deep);
}
.nh-mood__icon svg{ width:22px; height:22px; }

/* --- 아카이브 상단 감정 태그 바 (버튼형) --- */
.nh-moodbar{
  display:flex; align-items:baseline; flex-wrap:wrap; gap:10px 14px;
  margin:26px 0 0; padding:24px 0 0; border-top:1px solid var(--nh-line-soft);
}
.nh-moodbar__label{
  font-size:.78rem; font-weight:700; letter-spacing:.1em;
  color:var(--nh-ink-3); flex:0 0 auto;
}
.nh-moodbar__list{ display:flex; flex-wrap:wrap; gap:8px; min-width:0; }
.nh-moodbar__item{
  display:inline-flex; align-items:center; gap:7px;
  padding:8px 16px 8px 9px; border-radius:999px;
  background:var(--nh-surface); border:1.5px solid var(--nh-line);
  font-size:.93rem; font-weight:600; color:var(--nh-ink-2);
  transition:transform .18s, box-shadow .18s, border-color .18s, background .18s, color .18s;
}
.nh-moodbar__item:hover,
.nh-moodbar__item:focus-visible{
  transform:translateY(-2px); box-shadow:0 5px 14px rgba(79,107,86,.13);
  background:var(--nh-sage-soft); border-color:var(--nh-sage); color:var(--nh-sage-deep);
}
.nh-moodbar__item.is-active{
  background:var(--nh-sage-deep); border-color:var(--nh-sage-deep); color:#fff;
}
.nh-moodbar__item.is-active .nh-moodbar__icon{ background:rgba(255,255,255,.22); color:#fff; }
.nh-moodbar__icon{
  width:26px; height:26px; flex:0 0 26px; border-radius:999px;
  display:grid; place-items:center;
  background:var(--nh-sage-soft); color:var(--nh-sage-deep);
}
.nh-moodbar__icon svg{ width:15px; height:15px; }
.nh-mood__item:nth-child(2) .nh-mood__icon{ background:var(--nh-blue-soft); color:var(--nh-blue); }
.nh-mood__item:nth-child(3) .nh-mood__icon{ background:#F5EBE2; color:var(--nh-clay); }
.nh-mood__item:nth-child(5) .nh-mood__icon{ background:var(--nh-blue-soft); color:var(--nh-blue); }
.nh-mood__item:nth-child(6) .nh-mood__icon{ background:#F5EBE2; color:var(--nh-clay); }

/* =========================================================
   7. 카드
   ========================================================= */
.nh-grid{ display:grid; gap:var(--nh-gap); }
.nh-grid--3{ grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); }
.nh-grid--2{ grid-template-columns:repeat(auto-fit,minmax(400px,1fr)); }

/* 그리드/플렉스 자식이 내용 때문에 넘치지 않도록 */
.nh-grid > *,
.nh-feature > *,
.nh-midlife__grid > *,
.nh-rel__grid > *,
.nh-rel__item > *,
.nh-list__item > *{ min-width:0; }

.nh-card{
  display:flex; flex-direction:column; height:100%;
  background:var(--nh-surface); border:1px solid var(--nh-line);
  border-radius:var(--nh-radius-lg); overflow:hidden;
  transition:transform .2s, box-shadow .2s, border-color .2s;
}
.nh-card:hover{ transform:translateY(-4px); box-shadow:var(--nh-shadow-hover); border-color:var(--nh-sand); }
.nh-card__media{ position:relative; aspect-ratio:16/10; background:var(--nh-surface-alt); overflow:hidden; }
.nh-card__media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.nh-card:hover .nh-card__media img{ transform:scale(1.04); }
.nh-card__ph{
  position:absolute; inset:0; display:grid; place-items:center;
  background:linear-gradient(140deg,#EFF3EE 0%, #F7F0E7 100%);
  color:var(--nh-sage-deep); opacity:.5;
}
.nh-card__ph svg{ width:44px; height:44px; }
.nh-card__body{ padding:22px 22px 24px; display:flex; flex-direction:column; flex:1; }
.nh-card__cat{
  font-size:.72rem; font-weight:700; letter-spacing:.1em; color:var(--nh-sage-deep);
  text-transform:uppercase; margin-bottom:10px;
}
.nh-card__title{
  font-family:var(--nh-serif); font-size:1.16rem; line-height:1.52; margin:0 0 10px; font-weight:700;
}
.nh-card__excerpt{ color:var(--nh-ink-2); font-size:.94rem; line-height:1.75; margin:0 0 16px; }
.nh-card__meta{ margin-top:auto; font-size:.8rem; color:var(--nh-ink-3); display:flex; gap:10px; align-items:center; }
.nh-card__meta span + span::before{ content:"·"; margin-right:10px; color:var(--nh-line); }

/* 대표 카드 (오늘의 마음 사건 첫 카드) */
.nh-feature{
  display:grid; grid-template-columns:1.05fr .95fr; gap:0;
  background:var(--nh-surface); border:1px solid var(--nh-line);
  border-radius:var(--nh-radius-lg); overflow:hidden; margin-bottom:var(--nh-gap);
  transition:box-shadow .2s, transform .2s;
}
.nh-feature:hover{ box-shadow:var(--nh-shadow-hover); transform:translateY(-3px); }
.nh-feature__media{ position:relative; min-height:320px; background:var(--nh-surface-alt); }
.nh-feature__media img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.nh-feature__body{ padding:44px 42px; display:flex; flex-direction:column; justify-content:center; }
.nh-feature__title{
  font-family:var(--nh-serif); font-size:clamp(1.35rem,1.1rem + 1.1vw,1.85rem);
  line-height:1.46; margin:12px 0 14px;
}
.nh-feature__excerpt{ color:var(--nh-ink-2); font-size:1rem; line-height:1.85; margin:0 0 20px; }

/* 리스트형 (인기 글) */
.nh-list{ list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.nh-list__item{
  display:flex; gap:18px; align-items:flex-start; padding:20px 4px;
  border-bottom:1px solid var(--nh-line-soft);
}
.nh-list__item:last-child{ border-bottom:0; }
.nh-list__num{
  font-family:var(--nh-serif); font-size:1.32rem; color:var(--nh-sage);
  min-width:34px; line-height:1.5; font-weight:700;
}
.nh-list__title{ font-size:1.04rem; font-weight:600; line-height:1.6; margin:0 0 5px; }
.nh-list__meta{ font-size:.8rem; color:var(--nh-ink-3); }

/* =========================================================
   8. 중년의 마음 배너 섹션
   ========================================================= */
.nh-midlife{
  background:
    linear-gradient(180deg, rgba(79,107,86,.92) 0%, rgba(79,107,86,.86) 100%),
    var(--nh-sage-deep);
  color:#fff; padding:70px 0;
}
.nh-midlife .nh-eyebrow{ color:#CFE0D2; }
.nh-midlife__title{
  font-family:var(--nh-serif); font-size:clamp(1.55rem,1.2rem + 1.5vw,2.25rem);
  margin:10px 0 14px; color:#fff;
}
.nh-midlife__desc{ color:#DDE7DD; max-width:62ch; margin:0 0 34px; line-height:1.9; }
.nh-midlife__grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:16px; }
.nh-midlife__card{
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18);
  border-radius:var(--nh-radius); padding:24px 22px; color:#fff;
  transition:background .2s, transform .2s;
}
.nh-midlife__card:hover{ background:rgba(255,255,255,.15); transform:translateY(-3px); color:#fff; }
.nh-midlife__card h3{ font-family:var(--nh-serif); font-size:1.08rem; line-height:1.55; margin:0 0 8px; color:#fff; }
.nh-midlife__card p{ margin:0; font-size:.88rem; color:#D3E0D4; line-height:1.7; }
.nh-midlife__cta{ margin-top:30px; }
.nh-midlife .nh-btn--ghost{ border-color:rgba(255,255,255,.45); color:#fff; }
.nh-midlife .nh-btn--ghost:hover{ background:rgba(255,255,255,.14); color:#fff; border-color:#fff; }

/* =========================================================
   9. 관계의 심리 (아이콘 그리드)
   ========================================================= */
.nh-rel__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.nh-rel__item{
  display:flex; align-items:center; gap:14px; padding:20px 22px;
  background:var(--nh-surface); border:1px solid var(--nh-line); border-radius:var(--nh-radius);
  font-weight:600; transition:border-color .2s, transform .2s, box-shadow .2s;
}
.nh-rel__item:hover{ border-color:var(--nh-sage); transform:translateY(-2px); box-shadow:var(--nh-shadow); color:var(--nh-sage-deep); }
.nh-rel__item small{ display:block; font-weight:400; font-size:.82rem; color:var(--nh-ink-3); margin-top:2px; }

/* =========================================================
   10. 메시지 섹션
   ========================================================= */
.nh-message{ background:var(--nh-surface-alt); padding:80px 0; text-align:center; }
.nh-message__quote{
  font-family:var(--nh-serif); font-size:clamp(1.5rem,1.2rem + 1.6vw,2.3rem);
  line-height:1.6; margin:18px auto 22px; max-width:22ch;
}
.nh-message__body{ color:var(--nh-ink-2); max-width:60ch; margin:0 auto 30px; line-height:1.95; }

/* =========================================================
   11. 글 상세
   ========================================================= */
.nh-article{ padding:56px 0 20px; }
.nh-article__head{ text-align:left; margin-bottom:38px; }
.nh-article__cat{
  display:inline-block; padding:7px 16px; border-radius:999px;
  background:var(--nh-sage-soft); color:var(--nh-sage-deep);
  font-size:.78rem; font-weight:700; letter-spacing:.06em; margin-bottom:20px;
}
.nh-article__title{
  font-family:var(--nh-serif);
  font-size:clamp(1.75rem,1.25rem + 2.2vw,2.65rem);
  line-height:1.42; margin:0 0 20px; font-weight:700;
}
.nh-article__meta{
  display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center;
  font-size:.86rem; color:var(--nh-ink-3);
  padding-bottom:26px; border-bottom:1px solid var(--nh-line);
}
.nh-article__thumb{ margin:0 auto 38px; border-radius:var(--nh-radius-lg); overflow:hidden; }
.nh-article__thumb img{ border-radius:var(--nh-radius-lg); width:100%; }

.nh-article__intro{
  font-size:1.1rem; line-height:1.95; color:var(--nh-ink-2);
  padding:26px 28px; margin:0 0 40px;
  background:var(--nh-surface); border-left:3px solid var(--nh-sage);
  border-radius:0 var(--nh-radius) var(--nh-radius) 0;
}

/* 본문 타이포 — 8단계 구조 자동 번호 */
.nh-body{ counter-reset:nhstep; font-size:1.075rem; line-height:1.98; color:var(--nh-ink); }
.nh-body > h2{
  counter-increment:nhstep;
  font-family:var(--nh-serif); font-size:clamp(1.28rem,1.1rem + .7vw,1.6rem);
  line-height:1.5; margin:3rem 0 1.1rem; padding-top:1.6rem;
  border-top:1px solid var(--nh-line-soft);
}
.nh-body > h2::before{
  content:"0" counter(nhstep);
  display:block; font-family:var(--nh-sans); font-size:.78rem; font-weight:700;
  letter-spacing:.18em; color:var(--nh-sage); margin-bottom:10px;
}
.nh-body > h2:first-child{ margin-top:0; border-top:0; padding-top:0; }
.nh-body h3{ font-size:1.12rem; margin:2.1rem 0 .8rem; color:var(--nh-ink); }
.nh-body p{ margin:0 0 1.35em; }
.nh-body ul,.nh-body ol{ margin:0 0 1.5em; padding-left:1.35em; }
.nh-body li{ margin-bottom:.55em; }
.nh-body strong{ font-weight:700; color:var(--nh-ink); }
.nh-body em{ font-style:normal; background:linear-gradient(transparent 62%, #E7EEE7 62%); font-weight:500; }
.nh-body a{ color:var(--nh-sage-deep); text-decoration:underline; text-underline-offset:3px; }
.nh-body img{ border-radius:var(--nh-radius); margin:2rem 0; }
.nh-body blockquote{
  margin:2.2rem 0; padding:4px 0 4px 24px; border-left:3px solid var(--nh-sand);
  font-family:var(--nh-serif); font-size:1.15rem; line-height:1.85; color:var(--nh-ink-2);
}
.nh-body blockquote p:last-child{ margin-bottom:0; }

/* 본문 안 특수 박스 */
.nh-note{
  background:var(--nh-surface); border:1px solid var(--nh-line);
  border-radius:var(--nh-radius); padding:24px 26px; margin:2.2rem 0;
}
.nh-note__label{
  font-size:.74rem; font-weight:700; letter-spacing:.14em; color:var(--nh-sage-deep);
  text-transform:uppercase; margin-bottom:10px; display:block;
}
.nh-note p:last-child{ margin-bottom:0; }

.nh-question{
  background:var(--nh-sage-soft); border-radius:var(--nh-radius-lg);
  padding:34px 32px; margin:3rem 0 0; text-align:center;
}
.nh-question__label{
  font-size:.74rem; font-weight:700; letter-spacing:.16em; color:var(--nh-sage-deep);
  text-transform:uppercase;
}
.nh-question p{
  font-family:var(--nh-serif); font-size:clamp(1.1rem,1rem + .5vw,1.35rem);
  line-height:1.75; margin:14px 0 0; color:var(--nh-ink);
}

/* 면책 고지 */
.nh-disclaimer{
  margin:44px 0 0; padding:20px 22px;
  background:var(--nh-surface-alt); border-radius:var(--nh-radius);
  font-size:.86rem; line-height:1.8; color:var(--nh-ink-2);
}
.nh-disclaimer strong{ color:var(--nh-ink); }
.nh-disclaimer a{ color:var(--nh-sage-deep); text-decoration:underline; }

/* 태그 */
.nh-tags{ display:flex; flex-wrap:wrap; gap:8px; margin:36px 0 0; }
.nh-tags a{
  padding:8px 15px; border-radius:999px; background:var(--nh-surface);
  border:1px solid var(--nh-line); font-size:.85rem; color:var(--nh-ink-2);
}
.nh-tags a:hover{ border-color:var(--nh-sage); color:var(--nh-sage-deep); }

/* 이전/다음 */
.nh-prevnext{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:48px 0 0; }
.nh-prevnext a{
  padding:22px 24px; background:var(--nh-surface); border:1px solid var(--nh-line);
  border-radius:var(--nh-radius); transition:border-color .2s, transform .2s;
}
.nh-prevnext a:hover{ border-color:var(--nh-sage); transform:translateY(-2px); }
.nh-prevnext small{ display:block; font-size:.75rem; letter-spacing:.1em; color:var(--nh-ink-3); margin-bottom:8px; text-transform:uppercase; }
.nh-prevnext strong{ font-size:.98rem; font-weight:600; line-height:1.55; }
.nh-prevnext .is-next{ text-align:right; }

/* 관련 글 */
.nh-related{ padding:64px 0 80px; background:var(--nh-surface-alt); margin-top:70px; }

/* =========================================================
   12. 아카이브 / 검색 / 페이지
   ========================================================= */
.nh-pagehero{
  background:linear-gradient(180deg,#F6F1E8 0%, var(--nh-bg) 100%);
  padding:64px 0 52px; border-bottom:1px solid var(--nh-line-soft);
}
.nh-pagehero h1{
  font-family:var(--nh-serif); font-size:clamp(1.75rem,1.3rem + 1.9vw,2.5rem); margin:12px 0 0;
}
.nh-pagehero__desc{ margin:16px 0 0; color:var(--nh-ink-2); max-width:62ch; line-height:1.9; }
.nh-pagehero__count{ margin:18px 0 0; font-size:.86rem; color:var(--nh-ink-3); }

.nh-catnav{ display:flex; flex-wrap:wrap; gap:8px; margin:28px 0 0; }
.nh-catnav a{
  padding:9px 17px; border-radius:999px; background:var(--nh-surface);
  border:1px solid var(--nh-line); font-size:.9rem; font-weight:500; color:var(--nh-ink-2);
}
.nh-catnav a:hover{ border-color:var(--nh-sage); color:var(--nh-sage-deep); }
.nh-catnav a.is-active{ background:var(--nh-sage-deep); border-color:var(--nh-sage-deep); color:#fff; }

.nh-page{ padding:56px 0 80px; }
.nh-page .nh-body > h2{ border-top:0; padding-top:0; margin-top:2.6rem; }
.nh-page .nh-body > h2::before{ content:none; }

.nh-pagination{ display:flex; justify-content:center; gap:8px; margin:52px 0 0; flex-wrap:wrap; }
.nh-pagination .page-numbers{
  min-width:44px; height:44px; display:grid; place-items:center; padding:0 14px;
  background:var(--nh-surface); border:1px solid var(--nh-line); border-radius:999px;
  font-size:.94rem; color:var(--nh-ink-2);
}
.nh-pagination .page-numbers:hover{ border-color:var(--nh-sage); color:var(--nh-sage-deep); }
.nh-pagination .page-numbers.current{ background:var(--nh-sage-deep); border-color:var(--nh-sage-deep); color:#fff; }

.nh-empty{ text-align:center; padding:70px 0; color:var(--nh-ink-2); }
.nh-empty h2{ font-family:var(--nh-serif); font-size:1.5rem; margin-bottom:12px; }

/* =========================================================
   13. 푸터
   ========================================================= */
.nh-footer{ background:#2C2924; color:#C9C2B7; padding:64px 0 30px; margin-top:0; }
.nh-footer a{ color:#C9C2B7; }
.nh-footer a:hover{ color:#fff; }
.nh-footer__top{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.12); }
.nh-footer__brand{ font-family:var(--nh-serif); font-size:1.3rem; color:#fff; margin:0 0 12px; }
.nh-footer__about{ font-size:.92rem; line-height:1.85; max-width:44ch; margin:0; }
.nh-footer h4{ font-size:.76rem; letter-spacing:.16em; text-transform:uppercase; color:#8F887C; margin:0 0 16px; }
.nh-footer ul{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.nh-footer ul a{ font-size:.94rem; }
.nh-footer__bottom{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:14px;
  padding-top:26px; font-size:.84rem; color:#8F887C;
}
.nh-footer__note{ max-width:70ch; line-height:1.75; }

/* =========================================================
   14. 반응형
   ========================================================= */
@media (max-width:1024px){
  .nh-feature{ grid-template-columns:1fr; }
  .nh-feature__media{ min-height:240px; aspect-ratio:16/9; }
  .nh-feature__body{ padding:32px 28px 36px; }
  .nh-midlife__grid{ grid-template-columns:repeat(2,1fr); }
  .nh-footer__top{ grid-template-columns:1fr 1fr; }
}
@media (max-width:860px){
  .nh-nav{ display:none; }
  .nh-burger{ display:grid; }
  .nh-grid--3,.nh-grid--2{ grid-template-columns:1fr; }
  .nh-rel__grid{ grid-template-columns:repeat(2,1fr); }
  .nh-sec{ padding:52px 0; }
  .nh-hero{ padding:64px 0 56px; }
  .nh-prevnext{ grid-template-columns:1fr; }
  .nh-prevnext .is-next{ text-align:left; }
}
@media (max-width:640px){
  body{ font-size:16.5px; }
  .nh-wrap,.nh-read{ padding:0 18px; }
  .nh-mood__grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .nh-mood__item{ padding:20px 10px; font-size:.96rem; }
  .nh-moodbar{ gap:8px 10px; }
  .nh-moodbar__item{ padding:7px 13px 7px 8px; font-size:.86rem; gap:6px; }
  .nh-moodbar__icon{ width:23px; height:23px; flex:0 0 23px; }
  .nh-moodbar__icon svg{ width:13px; height:13px; }
  .nh-midlife__grid,.nh-rel__grid{ grid-template-columns:1fr; }
  .nh-footer__top{ grid-template-columns:1fr; gap:32px; }
  .nh-sec__head{ flex-direction:column; align-items:flex-start; }
  .nh-article__intro{ padding:22px 20px; font-size:1.04rem; }
  .nh-question{ padding:28px 22px; }
  .nh-body{ font-size:1.05rem; }
  .nh-feature__body{ padding:28px 22px 32px; }
}

/* 접근성 · 인쇄 */
@media (prefers-reduced-motion:reduce){
  *{ animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
@media print{
  .nh-header,.nh-footer,.nh-related,.nh-prevnext,.nh-tags{ display:none!important; }
  body{ background:#fff; font-size:12pt; }
}

/* WordPress 기본 클래스 */
.alignleft{ float:left; margin:.4em 1.6em 1em 0; }
.alignright{ float:right; margin:.4em 0 1em 1.6em; }
.aligncenter{ margin-left:auto; margin-right:auto; }
.wp-caption{ max-width:100%; }
.wp-caption-text,.wp-block-image figcaption{
  font-size:.84rem; color:var(--nh-ink-3); text-align:center; margin-top:10px;
}
.sticky,.gallery-caption,.bypostauthor{ display:block; }
