/* 한인365 허브 */
.hh-hub, .hh-hub * { box-sizing: border-box; }
.hh-hub { font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; color: #1c2b3a; background: #f4f7fc; border-radius: 18px; padding: 20px; }
.hh-hub a { text-decoration: none; color: inherit; }

/* 헤더 */
.hh-hd { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hh-logo { font-size: 25px; font-weight: 900; letter-spacing: -.5px; line-height: 1.1; }
.hh-logo b { color: #2563eb; }
.hh-logo small { display: block; font-size: 11.5px; font-weight: 600; color: #64748b; letter-spacing: 0; }
.hh-search { flex: 1; min-width: 200px; display: flex; gap: 8px; margin: 0; }
.hh-search input { flex: 1; padding: 11px 14px; border: 1.5px solid #dbe5f1; border-radius: 999px; background: #fff; color: #1c2b3a; font-size: 14px; }
.hh-search button { padding: 11px 20px; border: 0; border-radius: 999px; background: #2563eb; color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }
.hh-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.hh-nav a { padding: 8px 13px; border-radius: 999px; background: #fff; border: 1px solid #dbe5f1; font-size: 13.5px; font-weight: 700; }
.hh-nav a.on { background: #2563eb; color: #fff; border-color: #2563eb; }

/* 오늘의 정보 */
.hh-today { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.hh-tcard { background: #fff; border: 1px solid #dbe5f1; border-radius: 14px; padding: 13px 15px; }
.hh-lb { font-size: 11.5px; font-weight: 800; color: #2563eb; letter-spacing: .4px; }
.hh-vl { font-size: 19px; font-weight: 900; margin-top: 3px; }
.hh-ds { font-size: 12px; color: #64748b; margin-top: 2px; }
.hh-trend ol { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; }
.hh-trend li { display: flex; gap: 8px; padding: 2.5px 0; }
.hh-trend li b { color: #2563eb; width: 14px; flex: none; }
.hh-trend li a:hover { text-decoration: underline; }

/* 섹션 제목 */
.hh-h2 { font-size: 18px; font-weight: 900; margin: 24px 0 4px; }
.hh-h2sub { font-size: 13px; color: #64748b; margin: 0 0 12px; }

/* 카테고리 그리드 */
.hh-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.hh-cat { display: block; background: #fff; border: 1px solid #dbe5f1; border-radius: 14px; padding: 15px 14px; }
.hh-cat:hover { border-color: #2563eb; }
.hh-cat-ic { width: 38px; height: 38px; border-radius: 11px; background: #e8f0fe; color: #2563eb; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 900; }
.hh-cat-ic.big { width: 52px; height: 52px; font-size: 23px; border-radius: 14px; flex: none; }
.hh-cat h3 { font-size: 15.5px; font-weight: 800; margin: 10px 0 6px; }
.hh-cat p { font-size: 12.3px; line-height: 1.65; color: #64748b; margin: 0; }

/* 가이드 카드 */
.hh-guides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hh-gcard { display: block; background: #fff; border: 1px solid #dbe5f1; border-radius: 14px; padding: 15px; }
a.hh-gcard:hover { border-color: #2563eb; }
.hh-tag { display: inline-block; font-size: 11px; font-weight: 800; color: #2563eb; background: #e8f0fe; padding: 3px 9px; border-radius: 999px; }
.hh-gcard h3 { font-size: 15px; font-weight: 800; line-height: 1.45; margin: 9px 0 6px; }
.hh-gcard p { font-size: 12.5px; color: #64748b; line-height: 1.55; margin: 0; }

/* 지역 */
.hh-regions { display: flex; gap: 8px; flex-wrap: wrap; }
.hh-region { padding: 9px 16px; border-radius: 999px; background: #eef3fa; border: 1px solid #dbe5f1; font-size: 13.5px; font-weight: 700; cursor: pointer; color: #1c2b3a; font-family: inherit; }
.hh-region.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.hh-region-note { font-size: 13px; color: #64748b; margin: 10px 0 0; }
.hh-wxcard { margin-top: 12px; max-width: 340px; }

/* 도구 */
.hh-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hh-tool { display: block; background: #fff; border: 1px solid #dbe5f1; border-radius: 14px; padding: 15px; text-align: center; }
.hh-tool:hover { border-color: #2563eb; }
.hh-tool-ic { width: 42px; height: 42px; margin: 0 auto; border-radius: 12px; background: #e8f0fe; color: #2563eb; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; }
.hh-tool h3 { font-size: 14.5px; font-weight: 800; margin: 9px 0 3px; }
.hh-tool p { font-size: 12px; color: #64748b; margin: 0; }

/* 카테고리 페이지 */
.hh-cathead { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.hh-cat-title { font-size: 24px; font-weight: 900; margin: 0; }
.hh-cat-desc { font-size: 13.5px; color: #64748b; margin: 4px 0 0; }
.hh-subs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hh-sub { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #dbe5f1; font-size: 13px; font-weight: 700; }
.hh-postlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hh-post { display: block; background: #fff; border: 1px solid #dbe5f1; border-radius: 14px; padding: 15px; }
.hh-post:hover { border-color: #2563eb; }
.hh-post h3 { font-size: 15.5px; font-weight: 800; margin: 0 0 6px; line-height: 1.45; }
.hh-post p { font-size: 12.5px; color: #64748b; line-height: 1.55; margin: 0 0 8px; }
.hh-post-date { font-size: 11.5px; color: #94a3b8; }
.hh-empty { font-size: 13.5px; color: #64748b; background: #fff; border: 1px dashed #dbe5f1; border-radius: 14px; padding: 18px; grid-column: 1 / -1; }

.hh-ft { margin-top: 24px; border-top: 1px solid #dbe5f1; padding-top: 13px; font-size: 12px; color: #64748b; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }

/* 넓은 폭 (테마 본문 폭 제한 해제) */
.hh-hub.hh-wide { width: 100%; max-width: 1180px; margin-left: auto; margin-right: auto; }

/* 클린 모드: 테마 헤더·푸터·페이지 제목 숨김 */
body:has(.hh-clean) header.wp-block-template-part,
body:has(.hh-clean) footer.wp-block-template-part { display: none !important; }
body:has(.hh-clean) .wp-block-post-title { display: none !important; }
body:has(.hh-clean) .wp-site-blocks > main { margin-top: 0 !important; padding-top: 0 !important; }

@media (max-width: 900px) {
  .hh-grid { grid-template-columns: repeat(3, 1fr); }
  .hh-today { grid-template-columns: repeat(2, 1fr); }
  .hh-guides, .hh-tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hh-hub { padding: 14px; }
  .hh-grid { grid-template-columns: repeat(2, 1fr); }
  .hh-postlist { grid-template-columns: 1fr; }
  .hh-logo { font-size: 22px; }
}
