/*
Theme Name:        GeneratePress Child - 여행&일상
Theme URI:         https://issuehada.com
Description:       메뉴 없는 미니멀 에디토리얼(브런치/Medium 스타일) 감성 매거진 차일드 테마
Author:            Min
Author URI:        https://issuehada.com
Template:          generatepress
Version:           1.0.0
Text Domain:       generatepress-child
*/

/* --------------------------------------------------------------------------
   0. 웹폰트 (Pretendard) 로드 & 글로벌 타이포그래피
   (웹폰트는 functions.php에서 가변 다이내믹 서브셋으로 병렬 로드)
   -------------------------------------------------------------------------- */

:root {
  --gp-font-primary: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Noto Sans KR", sans-serif;
  --gp-color-bg: #fafbfc;
  --gp-color-surface: #ffffff;
  --gp-color-text-main: #111827;
  --gp-color-text-body: #374151;
  --gp-color-text-muted: #64748b;
  --gp-color-primary: #0284c7;
  --gp-color-primary-light: #f0f9ff;
  --gp-color-border: #e9ecef;
  --gp-radius-card: 14px;
  --gp-radius-sm: 8px;
}

body {
  font-family: var(--gp-font-primary) !important;
  background-color: var(--gp-color-bg) !important;
  color: var(--gp-color-text-body);
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   1. 상단 메뉴(GNB) — 미니멀 에디토리얼 스타일로 복원
   (메뉴 자체는 모양 > 메뉴에서 등록, 여기서는 보이는 모양만 꾸밈)
   -------------------------------------------------------------------------- */
/* 2026-11-02: 네이버 뉴스 GNB 느낌으로 변경 (중앙 정렬, 글자 확대, 붉은 계열 hover/활성) */
:root {
  --gnb-color-text: #333333;   /* 기본 글자색 */
  --gnb-color-hover: #b5524a;  /* hover: 톤 다운된 붉은색 */
  --gnb-color-active: #8f1d1d; /* 활성(현재 메뉴): 더 진한 붉은색 */
}

/* 헤더 안(float-right)에 들어가도 오른쪽으로 밀리지 않고 전체 폭 중앙에 오도록 */
.main-navigation,
.site-header .main-navigation {
  float: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: var(--gp-color-surface) !important;
  border-top: 1px solid var(--gp-color-border) !important;
  border-bottom: 1px solid var(--gp-color-border) !important;
  box-shadow: none !important;
}

.main-navigation .inside-navigation {
  display: flex;
  justify-content: center !important;
}

.main-navigation .main-nav {
  flex: 0 0 auto;
}

.main-navigation .main-nav ul {
  display: flex;
  justify-content: center;
}

.main-navigation .main-nav ul li a {
  position: relative;
  color: var(--gnb-color-text) !important;
  font-family: var(--gp-font-primary) !important;
  font-size: 1.0625rem !important; /* 17px */
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  line-height: 1.4 !important;
  padding: 16px 22px !important;
  background: transparent !important;
  transition: color 0.15s ease;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus {
  color: var(--gnb-color-hover) !important;
  background: transparent !important;
}

.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a,
.main-navigation .main-nav ul li.current-category-ancestor > a,
.main-navigation .main-nav ul li.current-post-ancestor > a {
  color: var(--gnb-color-active) !important;
  font-weight: 800 !important;
  background: transparent !important;
}

/* PC: 활성 메뉴 아래 밑줄 바 (네이버 뉴스 스타일) */
@media (min-width: 769px) {
  .main-navigation .main-nav ul li.current-menu-item > a::after,
  .main-navigation .main-nav ul li.current-menu-ancestor > a::after,
  .main-navigation .main-nav ul li.current-category-ancestor > a::after,
  .main-navigation .main-nav ul li.current-post-ancestor > a::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: -1px;
    height: 3px;
    background: var(--gnb-color-active);
  }
}

/* 모바일: 기본 GeneratePress 토글(햄버거) 메뉴 그대로 사용 */
#mobile-header {
  background: var(--gp-color-surface) !important;
}

/* --------------------------------------------------------------------------
   2. 상단 헤더 & 브랜딩 (미니멀 매거진 스타일)
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--gp-color-surface) !important;
  border-bottom: 1px solid #f1f3f5;
  padding: 42px 20px 32px !important;
  text-align: center;
}

.site-header .inside-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.site-branding .main-title {
  font-family: var(--gp-font-primary) !important;
  font-size: 1.9rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em;
  margin: 0 !important;
  line-height: 1.2;
}

.site-branding .main-title a {
  color: var(--gp-color-text-main) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-branding .main-title a:hover {
  color: var(--gp-color-primary) !important;
}

.site-branding .site-description {
  font-size: 0.92rem;
  color: var(--gp-color-text-muted);
  margin-top: 6px;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   3. 메인 레이아웃 & 컨테이너
   -------------------------------------------------------------------------- */
#page {
  max-width: 1140px;
  margin: 40px auto !important;
}

/* --------------------------------------------------------------------------
   4. 메인 피드 글 카드 (Magazine Post Cards)
   -------------------------------------------------------------------------- */
.blog .inside-article,
.archive .inside-article {
  background: var(--gp-color-surface) !important;
  border: 1px solid var(--gp-color-border) !important;
  border-radius: var(--gp-radius-card) !important;
  padding: 30px !important;
  margin-bottom: 32px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.025);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.blog .inside-article:hover,
.archive .inside-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* 썸네일 이미지 라운딩 및 부드러운 줌(Zoom) */
.post-image {
  margin-bottom: 22px !important;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f1f3f5;
}

.post-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.inside-article:hover .post-image img {
  transform: scale(1.025);
}

/* 카드 제목 */
.entry-title {
  font-family: var(--gp-font-primary) !important;
  font-size: 1.48rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  letter-spacing: -0.025em;
  margin: 10px 0 14px !important;
  word-break: keep-all;
}

.entry-title a {
  color: var(--gp-color-text-main) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry-title a:hover {
  color: var(--gp-color-primary) !important;
}

/* 카테고리 알약(Pill) 배지 */
.entry-meta .cat-links a {
  display: inline-block;
  font-size: 0.78rem !important;
  font-weight: 700;
  color: var(--gp-color-primary) !important;
  background: var(--gp-color-primary-light);
  padding: 3px 11px;
  border-radius: 9999px;
  text-decoration: none;
  margin-right: 6px;
  transition: background 0.2s ease;
}

.entry-meta .cat-links a:hover {
  background: #e0f2fe;
}

.entry-meta .icon-categories,
.entry-meta .screen-reader-text {
  display: none !important;
}

/* 메타 정보 (날짜 등) */
.entry-meta {
  font-size: 0.85rem;
  color: var(--gp-color-text-muted);
}

.entry-meta a {
  color: var(--gp-color-text-muted);
  text-decoration: none;
}

/* 피드 요약문 (Excerpt / Summary) */
.entry-summary p {
  color: var(--gp-color-text-muted) !important;
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 16px !important;
  word-break: keep-all;
}

.entry-summary a.read-more {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gp-color-primary) !important;
  text-decoration: none;
  border-bottom: 1px dashed var(--gp-color-primary);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.entry-summary a.read-more:hover {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   5. 싱글 포스트 본문 가독성 & 헤더
   -------------------------------------------------------------------------- */
/* 개별 글 본문 상단 대표이미지 중복 노출 방지 */
.single .page-header-image-single,
.single .featured-image {
  display: none !important;
}

.single .entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gp-color-text-body);
  word-break: keep-all;
}

/* 이전 글 / 다음 글 (SEO 내부 링크 & 내비게이션) */
.post-navigation {
  margin-top: 50px !important;
  padding: 24px 0;
  border-top: 1px solid var(--gp-color-border);
  border-bottom: 1px solid var(--gp-color-border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-navigation a:hover {
  color: var(--gp-color-primary);
}

/* --------------------------------------------------------------------------
   6. 사이드바 & 위젯 정돈
   -------------------------------------------------------------------------- */
.sidebar .widget {
  background: var(--gp-color-surface) !important;
  border: 1px solid var(--gp-color-border) !important;
  border-radius: 12px;
  padding: 24px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.sidebar .widget-title,
.sidebar .widget h2 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--gp-color-text-main) !important;
  border-bottom: 2px solid var(--gp-color-primary);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* 사이드바 검색 위젯 정돈 */
.wp-block-search__inside-wrapper {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.wp-block-search__input {
  border: none !important;
  padding: 10px 14px !important;
  font-size: 0.92rem !important;
  outline: none !important;
}

.wp-block-search__button {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 14px !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

.wp-block-search__button:hover {
  background: #0369a1 !important;
}

/* 사이드바 최신 글 (썸네일 + 제목 매거진 레이아웃) */
.wp-block-latest-posts__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wp-block-latest-posts__list li {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.wp-block-latest-posts__list li:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* 썸네일 박스 (좌측 64x64) */
.wp-block-latest-posts__featured-image,
.lt-widget-thumb {
  flex-shrink: 0 !important;
  width: 64px !important;
  height: 64px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background-color: #f1f5f9 !important;
  margin: 0 !important;
  border: 1px solid #e2e8f0 !important;
}

.wp-block-latest-posts__featured-image img,
.lt-widget-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

.wp-block-latest-posts__list li:hover .lt-widget-thumb img,
.wp-block-latest-posts__list li:hover .wp-block-latest-posts__featured-image img {
  transform: scale(1.08) !important;
}

.lt-widget-thumb-placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.4rem !important;
  background: #f8fafc !important;
}

/* 제목 래퍼 및 링크 */
.lt-widget-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.wp-block-latest-posts__post-title,
.lt-widget-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: #1e293b !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  word-break: keep-all !important;
}

.wp-block-latest-posts__post-title:hover,
.lt-widget-title:hover {
  color: #0284c7 !important;
}

.wp-block-latest-posts__post-date {
  display: block !important;
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
  margin-top: 4px !important;
}

/* --------------------------------------------------------------------------
   7. 심플 푸터
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--gp-color-surface) !important;
  border-top: 1px solid #f1f3f5;
  padding: 32px 20px !important;
  font-size: 0.85rem;
  color: var(--gp-color-text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   8. 아티클 매거진 서식 (기존 콘텐츠 호환 유지)
   -------------------------------------------------------------------------- */
.mg-post,
.wp-article-wrap {
  max-width: 760px;
  margin: 0 auto;
  color: var(--gp-color-text-body);
  line-height: 1.85;
}

.mg-badge,
.wp-cat-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gp-color-primary);
  background-color: var(--gp-color-primary-light);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.mg-lead,
.wp-lead {
  font-size: 1.12rem;
  color: var(--gp-color-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.mg-takeaways,
.wp-takeaways {
  background-color: #f8fafc;
  border-left: 4px solid var(--gp-color-primary);
  border-radius: 0 var(--gp-radius-sm) var(--gp-radius-sm) 0;
  padding: 20px 24px;
  margin: 28px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.mg-card,
.wp-card {
  background-color: #f9fafb;
  border: 1px solid var(--gp-color-border);
  border-radius: var(--gp-radius-sm);
  padding: 22px;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   9. "맨 위로" 버튼 (Scroll to Top)
   -------------------------------------------------------------------------- */
.tnd-scroll-top {
  position: fixed;
  /* #page 컨테이너(max-width: 1140px) 우측 바깥 24px 지점에 고정. 뷰포트가 좁아지면 최소 24px 여백 유지 */
  right: max(24px, calc((100vw - 1140px) / 2 - 24px));
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  color: #171717 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0;
}

.tnd-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tnd-scroll-top:hover {
  background: #171717 !important;
  color: #ffffff !important;
  border-color: #171717 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15) !important;
}

.tnd-scroll-top:active {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  transform: translateY(0) scale(0.94) !important;
}

.tnd-scroll-top:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .tnd-scroll-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}


/* --------------------------------------------------------------------------
   10. 20261008 - 신규 css 추가
   -------------------------------------------------------------------------- */

ol, ul {
	margin: 0 0 1.5em 2em;
}

/* 헤더 높이 조절 */
.site-header {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* 전체 여백 */
.container.grid-container {
  padding: 0 16px;
  min-width: 360px;
}

@media (max-width: 768px) {
  #page {
    margin-top: 0px !important;
  }

  .site-header {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }
	
  .separate-containers .inside-article, 
	.separate-containers .comments-area, 
	.separate-containers .page-header, 
	.separate-containers .paging-navigation, 
	.one-container .site-content, 
	.inside-page-header {
		padding: 24px;
	}
}

.em-wrap {
  max-width: 720px;
  margin: 0 auto;
  color: #262626;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.95;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

/* 상단 메타 바 (밑줄 없는 미니멀 에디토리얼 플랫 라벨) */
.em-meta-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c8c8c;
  margin-bottom: 22px;
}

.em-category {
  color: #171717;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-bottom: none;
  /* 밑줄 완전 제거 */
}

/* 대제목 */
.em-title {
  font-size: clamp(2.1rem, 4.5vw, 2.85rem) !important;
  font-weight: 800 !important;
  line-height: 1.32 !important;
  color: #0a0a0a !important;
  letter-spacing: -0.035em !important;
  margin: 0 0 20px 0 !important;
}

/* 리드 단락 */
.em-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #525252;
  font-weight: 400;
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eaeaea;
}

/* 매거진 인용구 & 핵심 서머리 */
.em-quote-box {
  margin: 36px 0;
  padding: 26px 30px;
  background-color: #fbfbfb;
  border-radius: 4px;
  border-left: 2px solid #171717;
}

.em-quote-text {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.7;
  color: #171717;
  margin-bottom: 14px;
}

.em-key-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.em-key-points li {
  font-size: 0.94rem;
  color: #525252;
  line-height: 1.7;
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.em-key-points li:last-child {
  margin-bottom: 0;
}

.em-key-points li::before {
  content: "-";
  clear:both;
  position: absolute;
  left: 0;
  color: #a3a3a3;
}

/* 소제목 (h2) - 세리프 넘버링과 조화 */
.em-wrap h2 {
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  color: #0a0a0a !important;
  margin: 54px 0 20px !important;
  letter-spacing: -0.025em !important;
  line-height: 1.4 !important;
  padding: 0 !important;
  border: none !important;
}

.em-num {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  color: #8c8c8c;
  margin-right: 8px;
  font-weight: 400;
}

/* 본문 단락 */
.em-wrap p {
  margin-bottom: 26px;
  color: #383838;
  font-size: 1.05rem;
  line-height: 1.95;
}

/* 이미지 및 캡션 */
.em-figure {
  margin: 44px 0;
}

.em-figure img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.em-figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #737373;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.5;
  padding: 0 4px;
}

.em-license {
  font-size: 0.75rem;
  color: #a3a3a3;
}

/* 매거진 룰 리스트 */
.em-rule-list {
  margin: 36px 0;
  border-top: 1px solid #eaeaea;
}

.em-rule-item {
  padding: 20px 0;
  border-bottom: 1px solid #eaeaea;
}

.em-rule-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.em-rule-index {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #171717;
  font-weight: 600;
}

.em-rule-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #171717;
}

.em-rule-desc {
  font-size: 0.96rem;
  color: #525252;
  line-height: 1.75;
  margin: 0;
  padding-left: 14px;
}

/* 하단 에디토리얼 클로징 */
.em-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid #eaeaea;
  font-size: 0.82rem;
  color: #8c8c8c;
  line-height: 1.7;
}

/* 테이블 */
.em-table-wrap {
  width: 100%;
  overflow-x: auto; /* 모바일에서 가로 폭이 넘칠 경우 스크롤 생성 */
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}

/* 기본 테이블 스타일 */
.em-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.925rem; /* 일반 텍스트보다 살짝 작은 크기 */
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  table-layout: fixed; /* 칸 크기를 고정하여 레이아웃 무너짐 방지 */
}

/* 헤더(th) 및 셀(td) 공통 스타일 */
.em-table th,
.em-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  line-height: 1.5;
  word-break: keep-all; /* 단어나 문장이 어색하게 끊기는 것 방지 */
}

/* 헤더(th) 디자인 - 명확한 구분 */
.em-table th {
  background-color: #f7f9fa;
  color: #1a1a1a;
  font-weight: 600;
  border-bottom: 2px solid #dcdcdc;
  border-right: 1px solid #eaeaea;
}

.em-table th:last-child {
  border-right: none;
}

/* 본문 셀(td) 디자인 및 행 구분선 */
.em-table td {
  border-bottom: 1px solid #eaeaea;
  border-right: 1px solid #f0f0f0;
}

.em-table td:last-child {
  border-right: none;
}

/* 마지막 행 테두리 정리 */
.em-table tbody tr:last-child td {
  border-bottom: 1px solid #e0e0e0;
}

/* 마우스 오버 시 행 강조 (PC 화면용) */
@media (hover: hover) and (pointer: fine) {
  .em-table tbody tr:hover {
    background-color: #fafbfb;
  }
}

/* 📱 모바일 화면 최적화 (태블릿 및 스마트폰) */
@media screen and (max-width: 768px) {
  .em-table {
    font-size: 0.85rem; /* 모바일에서 보기 좋게 살짝 더 축소 */
  }
  
  .em-table th,
  .em-table td {
    padding: 10px 10px; /* 여백을 줄여 공간 확보 */
  }
  
  /* 첫 번째 열(날짜) 폭을 좁게 고정하여 모바일 공간 효율성 극대화 */
  .em-table th:nth-child(1),
  .em-table td:nth-child(1) {
    width: 25%;
  }
  .em-table th:nth-child(2),
  .em-table td:nth-child(2) {
    width: 35%;
  }
  .em-table th:nth-child(3),
  .em-table td:nth-child(3) {
    width: 40%;
  }
}

/* 리스트를 감싸는 컨테이너 스타일 */
.em-contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

/* 각 리스트 아이템(li) 스타일 */
.em-contact-list li {
  position: relative;
  background-color: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #3182ce; /* 왼쪽 포인트 바 추가 */
  border-radius: 6px;
  padding: 12px 16px 12px 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #2d3748;
  line-height: 1.5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 전화번호 강조 스타일 */
.em-contact-list strong {
  color: #1a202c;
  font-weight: 600;
}

/* 사진 출처 표시 */
.em-photo-credit {
	font-size: 0.75rem;
	color: #a3a3a3;
	display: block;
}


/* --------------------------------------------------------------------------
   11. PC 글 목록: 왼쪽 이미지 + 오른쪽 글 정보
   -------------------------------------------------------------------------- */

@media (min-width: 769px) {
    .blog .site-main article.post,
    .archive .site-main article.post {
        display: flow-root;
    }

    .blog .site-main article.post .inside-article,
    .archive .site-main article.post .inside-article {
        display: grid;
        grid-template-columns: 200px minmax(0, 1fr);
        grid-template-areas:
            "image header"
            "image summary"
            "image footer";
        column-gap: 28px;
        align-items: start;
		margin-bottom: 0 !important;
    }

    .blog .site-main article.post .post-image,
    .archive .site-main article.post .post-image {
        grid-area: image;
        margin: 0;
    }

    .blog .site-main article.post .post-image img,
    .archive .site-main article.post .post-image img {
        display: block;
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 8px;
    }

    .blog .site-main article.post .entry-header,
    .archive .site-main article.post .entry-header {
        grid-area: header;
        margin-bottom: 12px;
    }

    .blog .site-main article.post .entry-title,
    .archive .site-main article.post .entry-title {
        font-size: 22px;
        line-height: 1.5;
    }

    .blog .site-main article.post .entry-summary,
    .archive .site-main article.post .entry-summary {
        grid-area: summary;
        margin: 0 0 12px;
    }

    .blog .site-main article.post footer.entry-meta,
    .archive .site-main article.post footer.entry-meta {
        grid-area: footer;
        margin-top: 0;
    }
}

