/* ==========================================================================
   매거진 무드 (Magazine Mood) — Tistory Skin
   1단(사이드바 없음) · 아이보리+테라코타 톤 · Noto Serif KR 헤드라인 + Pretendard 본문
   -------------------------------------------------------------------------
   구조는 CivicClean/Daily Brief 스킨과 동일합니다(검증된 뼈대를 재사용).
   이 스킨만의 차이는 (1) 색상·폰트, (2) 홈 화면 글 목록을 "피처드 카드 + 화보 그리드"로
   보여주는 부분입니다. 색상이나 폭을 바꾸고 싶으면 아래 :root 안의 값만 수정하면
   전체에 반영됩니다.
   ========================================================================== */

:root {
  /* 색상 — 아이보리/크림 바탕에 테라코타 포인트 */
  --color-espresso-900: #2a1c12;  /* 가장 진한 에스프레소 브라운 (유틸바/gnb/푸터 배경) */
  --color-espresso-800: #3d2a1c;  /* 보조 에스프레소 브라운 (hover) */
  --color-terracotta-700: #c1613f; /* 포인트/링크 컬러 (테라코타) */
  --color-terracotta-800: #a3502f; /* 포인트 hover(더 진한 테라코타) */
  --color-terracotta-100: #f3ddc9; /* 옅은 테라코타 배경 (뱃지, hover 배경) */
  --color-terracotta-050: #faf0e3; /* 가장 옅은 테라코타 배경 (h4, 목차 등) */
  --color-accent-onDark: #e8b58e;  /* 어두운 배경(에스프레소) 위 포인트 텍스트 */
  --color-accent-onDark-hover: #f3cba9;
  --color-ink: #2b2118;        /* 본문 텍스트 (차가운 검정 대신 따뜻한 다크 브라운) */
  --color-ink-soft: #8a7860;   /* 보조 텍스트 (날짜, 메타정보) */
  --color-border: #ece0cb;     /* 선/구분선 (따뜻한 톤) */
  --color-bg: #faf6ee;         /* 페이지 배경 (아이보리) */
  --color-cream-band: #f6efe0; /* 히어로 밴드 배경 (페이지보다 살짝 진한 크림) */
  --color-white: #fffdf9;      /* 카드 표면 (크림 화이트) */

  /* 레이아웃 */
  --content-width: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 2px 5px rgba(58, 40, 24, 0.05), 0 10px 26px rgba(58, 40, 24, 0.07);
  --shadow-card-lg: 0 10px 20px rgba(58, 40, 24, 0.08), 0 26px 50px rgba(58, 40, 24, 0.12);

  /* 폰트 */
  --font-base: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", sans-serif;
  --font-headline: "Noto Serif KR", "Nanum Myeongjo", serif;
}

/* --------------------------------------------------------------------------
   기본 리셋
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.7;
  word-break: keep-all;
  font-size: 16px;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

.screen_out {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--color-espresso-900); color: #fff;
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   상단 유틸 바
   -------------------------------------------------------------------------- */
.util-bar {
  background: var(--color-espresso-900);
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}
.util-bar .util-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}
.util-bar a { color: rgba(255,255,255,0.72); }
.util-bar a:hover { color: #fff; }
.util-bar .btn_share {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-onDark);
  cursor: pointer;
}
.util-bar .btn_share:hover { color: var(--color-accent-onDark-hover); }

/* --------------------------------------------------------------------------
   헤더 (마스트헤드)
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 10px;
  object-fit: cover; border: 1px solid var(--color-border);
}
.brand-name {
  font-family: var(--font-headline);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-espresso-900);
}
.brand-desc {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-ink-soft);
  margin-top: 3px;
}

.header-tools { display: flex; align-items: center; gap: 10px; }

.area_search .frm_search {
  display: flex; align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 8px 6px 16px;
}
.area_search .tf_search {
  border: 0; background: transparent; outline: none;
  font-family: inherit; font-size: 14px; width: 160px;
  color: var(--color-ink);
}
.area_search .btn_search {
  border: 0; background: var(--color-terracotta-700); color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex: none;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: 8px;
  width: 40px; height: 40px;
  font-size: 18px;
  color: var(--color-espresso-900);
}

/* --------------------------------------------------------------------------
   메인 내비게이션 (카테고리)
   -------------------------------------------------------------------------- */
.gnb {
  background: var(--color-espresso-900);
}
.gnb-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 티스토리가 생성하는 [##_category_list_##] 기본 마크업(ul/li)을 가로 메뉴로 강제 변환 */
.gnb-inner ul.category_list,
.gnb-inner ul {
  display: flex;
  flex-wrap: wrap;
}
.gnb-inner ul li {
  position: relative;
}
.gnb-inner ul li a {
  display: block;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
}
.gnb-inner ul li a:hover,
.gnb-inner ul li a:focus {
  color: #fff;
  background: var(--color-espresso-800);
}
.gnb-extra { display: flex; }
.gnb-extra a { font-size: 14px; color: rgba(255,255,255,0.55); padding: 15px 14px; }
.gnb-extra a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   홈 화면 전용 히어로 — 첫 페이지([##_body_id_##]가 tt-body-index)에서만 보이고,
   카테고리·태그·검색·글보기 등 다른 모든 페이지에서는 자동으로 숨겨집니다.
   -------------------------------------------------------------------------- */
.home-hero { display: none; }
body#tt-body-index .home-hero {
  display: block;
  background: linear-gradient(180deg, var(--color-cream-band), var(--color-bg));
  border-bottom: 1px solid var(--color-border);
}
.home-hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 56px 20px 44px;
  text-align: center;
}
.home-hero-title {
  font-family: var(--font-headline);
  color: var(--color-espresso-900);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.home-hero-desc {
  color: var(--color-ink-soft);
  font-size: 15px;
  margin-bottom: 34px;
}

.hero-search {
  max-width: 560px;
  margin: 0 auto 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 14px 32px rgba(58, 40, 24, 0.10);
}
.hero-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 0;
  color: var(--color-ink);
  background: none;
}
.hero-search-btn {
  border: 0;
  background: var(--color-terracotta-700);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  flex: none;
}
.hero-search-btn:hover { background: var(--color-terracotta-800); }

.quick-links-label {
  text-align: left;
  color: var(--color-ink-soft);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.quick-links-grid ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.quick-links-grid ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-white);
  color: var(--color-espresso-900);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px 12px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-card);
  transition: transform .15s ease, box-shadow .15s ease;
}
.quick-links-grid ul li a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-lg);
}
.quick-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-terracotta-100);
  color: var(--color-terracotta-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex: none;
}
.quick-link-label {
  text-align: center;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   컨테이너 / 리스트 헤더
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 44px 36px 84px;
}

.list-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-espresso-900);
}
.list-head h2 {
  font-family: var(--font-headline);
  font-size: 21px;
  font-weight: 700;
  color: var(--color-espresso-900);
}
.list-head .count {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-soft);
}

/* --------------------------------------------------------------------------
   글 목록 카드 (기본: 카테고리/태그/검색 등 홈이 아닌 목록 페이지)
   -------------------------------------------------------------------------- */
.post-list { display: flex; flex-direction: column; gap: 16px; }

.post-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.post-card.notice { border-color: var(--color-terracotta-700); }

.list_content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
}
.thumbnail_post {
  flex: none;
  width: 96px; height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-terracotta-100);
}
.thumbnail_post img { width: 100%; height: 100%; object-fit: cover; }

.link_post { flex: 1; min-width: 0; display: block; }
.tit_post {
  display: block;
  font-family: var(--font-headline);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 6px;
}
.post-card:hover .tit_post,
.link_post:hover .tit_post { color: var(--color-terracotta-700); }
.txt_post {
  font-size: 14.5px;
  color: var(--color-ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail_info {
  padding: 0 24px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-ink-soft);
}
.link_cate {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-terracotta-100);
  color: var(--color-terracotta-800);
  font-weight: 600;
  font-size: 12.5px;
}
.txt_bar { display: inline-block; }

/* --------------------------------------------------------------------------
   홈 화면 전용 — "매거진 화보" 레이아웃
   목록의 첫 글(공지 제외)은 큰 피처드 카드로, 그 다음 글들은 사진 카드 그리드로
   보여줍니다. 별도의 JS 없이 CSS Grid만으로 처리합니다:
   - .post-list 자체를 3열 그리드로 만들고
   - 공지/피처드 카드는 grid-column을 전체 폭으로 늘려서(1/-1) 한 줄을 차지시키고
   - 나머지 카드는 그리드 셀 하나씩 자동으로 채워지게 둡니다.
   카테고리·태그·검색 등 다른 목록 페이지는 위쪽의 기본 1단 리스트 그대로입니다.
   -------------------------------------------------------------------------- */
body#tt-body-index .post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 28px;
}
body#tt-body-index .post-list > .post-card {
  margin: 0;
}
body#tt-body-index .post-list > .post-card.notice {
  grid-column: 1 / -1;
}

/* 피처드 카드 — 공지 다음(또는 공지가 없으면 맨 처음) 글 1개.
   왼쪽에 큰 사진, 오른쪽에 세리프 큰 제목 + 발췌문을 배치합니다. */
body#tt-body-index .post-list > .post-card:not(.notice):is(:first-child, .notice + *) {
  grid-column: 1 / -1;
  border-radius: 22px;
  box-shadow: var(--shadow-card-lg);
}
body#tt-body-index .post-list > .post-card:not(.notice):is(:first-child, .notice + *) .list_content {
  align-items: stretch;
  gap: 0;
  padding: 0;
}
body#tt-body-index .post-list > .post-card:not(.notice):is(:first-child, .notice + *) .thumbnail_post {
  flex: 0 0 50%;
  width: 50%;
  height: auto;
  min-height: 380px;
  border-radius: 0;
}
body#tt-body-index .post-list > .post-card:not(.notice):is(:first-child, .notice + *) .link_post {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body#tt-body-index .post-list > .post-card:not(.notice):is(:first-child, .notice + *) .tit_post::before {
  content: "이달의 화보 ✎";
  display: block;
  font-family: var(--font-base);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-terracotta-700);
  margin-bottom: 12px;
}
body#tt-body-index .post-list > .post-card:not(.notice):is(:first-child, .notice + *) .tit_post {
  font-size: 34px;
  line-height: 1.35;
  margin-bottom: 16px;
}
body#tt-body-index .post-list > .post-card:not(.notice):is(:first-child, .notice + *) .txt_post {
  font-size: 16px;
  line-height: 1.7;
  -webkit-line-clamp: 3;
}
body#tt-body-index .post-list > .post-card:not(.notice):is(:first-child, .notice + *) .detail_info {
  padding: 20px 48px 0;
}

/* 화보 그리드 카드 — 피처드 카드를 뺀 나머지 글. 위에 사진, 아래에 제목/발췌/메타. */
body#tt-body-index .post-list > .post-card:not(.notice):not(:is(:first-child, .notice + *)) .list_content {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
}
body#tt-body-index .post-list > .post-card:not(.notice):not(:is(:first-child, .notice + *)) .thumbnail_post {
  width: 100%;
  height: 190px;
  border-radius: 0;
}
body#tt-body-index .post-list > .post-card:not(.notice):not(:is(:first-child, .notice + *)) .link_post {
  padding: 18px 20px 4px;
}
body#tt-body-index .post-list > .post-card:not(.notice):not(:is(:first-child, .notice + *)) .tit_post {
  font-size: 17px;
}
body#tt-body-index .post-list > .post-card:not(.notice):not(:is(:first-child, .notice + *)) .detail_info {
  padding: 6px 20px 20px;
}

/* --------------------------------------------------------------------------
   글 화면(permalink) 전용 — 상단 헤더/내비를 걷어내고 읽기에만 집중하도록 합니다.
   .skin_view는 글/공지/페이지 본문에서만 나오므로, 이 요소가 있는지로
   "지금 글 화면인지"를 판단합니다(별도 JS 없이 CSS만으로 처리).
   -------------------------------------------------------------------------- */
body:has(.skin_view) .util-bar,
body:has(.skin_view) .site-header,
body:has(.skin_view) .gnb {
  display: none;
}
/* 티스토리가 자동으로 붙이는 공감/공유/···/구독 바(.container_postbtn)의 "···"를 누르면
   나오는 신고하기 메뉴를 감춥니다. (스킨 코드가 아닌 티스토리 자체 기능이라 클래스명이
   고정되어 있습니다: .wrap_btn_etc) */
.wrap_btn_etc { display: none; }
/* 글 화면에서는 본문 가독성을 위해 콘텐츠 영역만 흰(크림) 배경으로 바꿉니다.
   .container는 PC 화면에서 max-width로 폭이 제한되므로, 그 바깥쪽에는
   사이트 배경색(--color-bg)이 여백처럼 그대로 남아 허전해 보이지 않습니다. */
body:has(.skin_view) .container { padding-top: 48px; background: var(--color-white); }
/* 글 화면에서는 목록용 .post-card 카드(흰 배경·테두리·그림자)가 본문 전체를
   감싸지 않도록 걷어냅니다 — 목록 카드 스타일이 그대로 남아있으면 본문을
   박스로 감싼 것처럼 보이고, 모바일에서 폭이 좁아지는 원인이 됩니다. */
.post-card:has(.skin_view) {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

/* --------------------------------------------------------------------------
   글 본문 (permalink)
   -------------------------------------------------------------------------- */
.skin_view {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.area_title { padding-bottom: 26px; border-bottom: 1px solid var(--color-border); margin-bottom: 32px; }
.tit_category {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-terracotta-700);
  background: var(--color-terracotta-100);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.area_title .tit_post {
  font-family: var(--font-headline);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
}
.txt_detail {
  font-size: 13.5px;
  color: var(--color-ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.txt_detail:empty { display: none; }
.area_title .tit_post:not(:last-child) { margin-bottom: 14px; }
.link_detail { color: var(--color-terracotta-700); }

/* --------------------------------------------------------------------------
   글 목차 (자동 생성, 기본은 접힌 상태)
   본문(.area_view) 위에 <details>로 삽입되어 클릭하면 펼쳐집니다.
   -------------------------------------------------------------------------- */
.area-toc {
  background: var(--color-terracotta-050);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  margin: 0 0 28px;
}
.area-toc summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-headline);
  color: var(--color-espresso-900);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.area-toc summary::-webkit-details-marker { display: none; }
.area-toc summary::after {
  content: "펼치기 ▾";
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-base);
  color: var(--color-ink-soft);
}
.area-toc[open] summary::after { content: "접기 ▴"; }
.area-toc ul {
  margin: 0;
  padding: 2px 0 16px;
  border-top: 1px solid var(--color-border);
}
.area-toc li { padding: 7px 0 7px 0; }
.area-toc li.toc-level-1 { font-weight: 700; }
.area-toc li.toc-level-2 { padding-left: 4px; }
.area-toc li.toc-level-3 { padding-left: 20px; font-size: 14px; }
.area-toc li.toc-level-4 { padding-left: 36px; font-size: 13.5px; color: var(--color-ink-soft); }
.area-toc a { color: var(--color-terracotta-800); }
.area-toc a:hover { color: var(--color-terracotta-700); text-decoration: underline; }

/* --------------------------------------------------------------------------
   글 하단 공유 영역
   -------------------------------------------------------------------------- */
.area_share {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 44px 0 8px;
}
.share-bubble {
  position: relative;
  background: var(--color-terracotta-700);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(58, 40, 24, 0.18);
}
.share-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-terracotta-700);
}
.btn_share_bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-terracotta-700);
  background: var(--color-white);
  color: var(--color-terracotta-700);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.btn_share_bottom:hover { background: var(--color-terracotta-700); color: #fff; }
.share-icon { font-size: 15px; }

/* 공유하기 아래쪽에 두는 보조 이동 링크 */
.area_postnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 4px;
  font-size: 14px;
}
.link_postnav {
  color: var(--color-ink-soft);
  font-weight: 600;
}
.link_postnav:hover { color: var(--color-terracotta-700); text-decoration: underline; }
.postnav_bar { color: var(--color-border); }

.area_view {
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-ink);
}
.area_view img { border-radius: 12px; margin: 8px 0; }
/* 본문 텍스트 링크는 버튼처럼 보이게. 단, 이미지나 표 안의 링크는 원래 모습을 유지합니다. */
.area_view a {
  display: inline-block;
  color: var(--color-white);
  background: var(--color-terracotta-700);
  padding: 3px 16px;
  margin: 0 1px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.7;
  transition: background-color .15s ease;
}
.area_view a:hover { background: var(--color-terracotta-800); }

/* 문단에 링크 하나만 단독으로 들어가면(줄바꿈으로 따로 뺀 링크) 좌우 꽉 찬 큰 버튼으로.
   실제 판별은 아래쪽 스크립트에서 하고, 여기서는 스크립트가 붙여주는 클래스만 스타일링합니다.
   (에디터가 링크 뒤에 <br>을 자동으로 남기는 경우가 많아 CSS 선택자만으로는 정확히 판별하기 어렵습니다) */
.area_view p.p-link-button {
  margin: 30px 0;
}
/* width:100%로 폭을 꽉 채우기 때문에 별도의 가운데 정렬이 필요 없습니다.
   (티스토리 에디터가 문단에 style="text-align:left"를 직접 남기는 경우가 있는데,
   버튼 자체가 폭을 다 차지하므로 그 inline 정렬 값에 영향을 받지 않습니다) */
.area_view p.p-link-button > a {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 1.05em;
}

/* 이미지에 걸린 링크: 버튼 스타일 제외 (마우스를 올렸을 때도 배경이 생기지 않도록 :hover도 함께 지정) */
.area_view a:has(img),
.area_view a:has(img):hover {
  display: inline;
  color: inherit;
  background: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
  font-weight: inherit;
}

/* 표 안의 링크: 버튼 대신 일반 밑줄 링크로 */
.area_view table a {
  display: inline;
  color: var(--color-terracotta-700);
  background: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
  font-weight: inherit;
  text-decoration: underline;
}
.area_view table a:hover { color: var(--color-terracotta-800); background: none; }

/* 표 기본 스타일: 표 자체는 내용 크기만큼만 차지하며 가운데 정렬되고,
   화면보다 넓은 표만 감싸는 div(.table-scroll, JS로 자동 생성)가 가로 스크롤을 담당합니다. */
.area_view .table-scroll {
  overflow-x: auto;
  margin: 24px 0;
}
.area_view table {
  display: table;
  border-collapse: collapse;
  width: auto;
  margin: 0 auto;
  font-size: 14.5px;
}
.area_view th, .area_view td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
}
.area_view th {
  background: var(--color-terracotta-100);
  color: var(--color-espresso-900);
  font-weight: 700;
  white-space: nowrap;
}
/* 소제목 단계별 강조: 세리프 헤드라인 폰트로 잡지 지면 느낌을 냅니다.
   아래로 갈수록 배경·테두리·글자색이 옅어지고 글자 크기도 작아집니다 */
.area_view h1 {
  font-family: var(--font-headline);
  font-size: 68px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-espresso-900);
  border-left: 5px solid var(--color-espresso-900);
  margin: 38px 0 18px;
  padding: 20px 24px;
  border-radius: 8px;
  line-height: 1.4;
}
.area_view h2 {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-espresso-900);
  background: var(--color-terracotta-100);
  border-left: 5px solid var(--color-terracotta-700);
  margin: 36px 0 16px;
  padding: 13px 18px;
  border-radius: 8px;
  line-height: 1.5;
}
.area_view h3 {
  font-family: var(--font-headline);
  font-size: 19.5px;
  font-weight: 700;
  color: var(--color-terracotta-800);
  background: var(--color-terracotta-050);
  border-left: 4px solid var(--color-terracotta-700);
  margin: 30px 0 14px;
  padding: 10px 16px;
  border-radius: 8px;
  line-height: 1.5;
}
.area_view h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-terracotta-800);
  background: none;
  border-left: 3px solid var(--color-terracotta-100);
  margin: 26px 0 12px;
  padding: 3px 0 3px 14px;
  line-height: 1.5;
}
.area_view blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--color-bg);
  border-left: 3px solid var(--color-terracotta-700);
  color: var(--color-ink-soft);
}

.area_etc { margin-top: 30px; }
.list_tag { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tit_tag { font-size: 13px; font-weight: 700; color: var(--color-ink-soft); margin-right: 4px; }
.desc_tag a, .link_tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-ink-soft);
}
.desc_tag a:hover, .link_tag:hover { border-color: var(--color-terracotta-700); color: var(--color-terracotta-700); }

/* --------------------------------------------------------------------------
   방명록 (댓글 목록/작성 폼은 이 스킨에 없습니다 — 방명록 전용 마크업입니다)
   -------------------------------------------------------------------------- */
.area_reply { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--color-border); }
.tit_reply {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--color-espresso-900);
  margin-bottom: 18px;
}
.btn_reply, .btn_replymore {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--color-ink-soft);
}

.list_reply { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.list_reply li {
  display: flex; gap: 12px;
  padding: 14px;
  background: var(--color-bg);
  border-radius: 10px;
}
.list_reply li.re_reply { margin-left: 40px; background: var(--color-terracotta-050); }
.img_profile { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--color-terracotta-100); }
.reply_content { flex: 1; min-width: 0; }
.tit_nickname { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; color: var(--color-espresso-900); }
.txt_reply { display: block; font-size: 14.5px; color: var(--color-ink); margin-bottom: 4px; }
.txt_date { font-size: 12px; color: var(--color-ink-soft); }
.btn_replymenu { border: 0; background: transparent; color: var(--color-ink-soft); font-size: 12px; }
.my_edit { display: flex; gap: 10px; font-size: 12px; }
.my_edit a { color: var(--color-ink-soft); }

.fld_reply { border: 0; padding: 0; margin: 0; }
.reply_write { margin-bottom: 10px; }
.tf_reply {
  width: 100%;
  min-height: 90px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  resize: vertical;
  outline: none;
}
.tf_reply:focus { border-color: var(--color-terracotta-700); }
.reply_writer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.writer_info { display: flex; gap: 8px; }
.inp_info {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  width: 130px;
}
.inp_info:focus { border-color: var(--color-terracotta-700); }
.writer_check { display: flex; align-items: center; }
.lab_secret { font-size: 13px; color: var(--color-ink-soft); display: flex; align-items: center; gap: 4px; }
.btn_enter {
  border: 0;
  background: var(--color-espresso-900);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.btn_enter:hover { background: var(--color-terracotta-700); }

.protected_form { margin-top: 16px; display: flex; gap: 8px; }
.protected_form input {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
}
.protected_form button {
  border: 0; background: var(--color-espresso-900); color: #fff;
  border-radius: 8px; padding: 10px 18px; font-weight: 600;
}

/* --------------------------------------------------------------------------
   태그 모음 / 방명록 페이지
   -------------------------------------------------------------------------- */
.skin_tag .list_tag, .skin_visitor { padding: 30px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); }
.skin_tag .list_tag { display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------------------------------------------------------
   페이지네이션
   -------------------------------------------------------------------------- */
.area_paging { display: flex; justify-content: center; margin-top: 44px; }
.area_paging_simple { display: none; }
.inner_paging { display: flex; align-items: center; gap: 6px; }
.inner_paging a, .inner_paging .link_page {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-ink-soft);
  border: 1px solid transparent;
}
.inner_paging .link_page:hover { border-color: var(--color-border); }
.inner_paging .link_prev, .inner_paging .link_next {
  padding: 0 14px; border: 1px solid var(--color-border); color: var(--color-espresso-900); font-weight: 600;
}
.no_more_prev, .no_more_next { opacity: 0.35; pointer-events: none; }

/* --------------------------------------------------------------------------
   푸터
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-espresso-900);
  color: rgba(255,255,255,0.62);
  margin-top: 64px;
}
.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}
.footer-title { font-family: var(--font-headline); font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-desc { font-size: 13.5px; margin-bottom: 16px; }
.footer-copy { font-size: 12.5px; color: rgba(255,255,255,0.42); }

/* --------------------------------------------------------------------------
   반응형 (모바일)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  body#tt-body-index .post-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .area_search .tf_search { width: 100px; }

  .gnb-inner {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
  .gnb-inner.is-open { display: flex; }
  .gnb-inner ul { flex-direction: column; }
  .gnb-inner ul li a { padding: 13px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
  .gnb-extra { flex-direction: column; }

  .brand-name { font-size: 19px; }

  .home-hero-title { font-size: 26px; }

  body#tt-body-index .post-list { grid-template-columns: 1fr; gap: 24px; }

  .list_content { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
  .thumbnail_post { width: 100%; height: 160px; }
  .detail_info { padding: 0 18px 16px; }

  /* 피처드 카드: 모바일에서는 좌우 분할 대신 사진이 위, 텍스트가 아래로 */
  body#tt-body-index .post-list > .post-card:not(.notice):is(:first-child, .notice + *) .list_content {
    flex-direction: column;
  }
  body#tt-body-index .post-list > .post-card:not(.notice):is(:first-child, .notice + *) .thumbnail_post {
    width: 100%;
    min-height: 220px;
  }
  body#tt-body-index .post-list > .post-card:not(.notice):is(:first-child, .notice + *) .link_post {
    padding: 28px 22px;
  }
  body#tt-body-index .post-list > .post-card:not(.notice):is(:first-child, .notice + *) .tit_post {
    font-size: 24px;
  }
  body#tt-body-index .post-list > .post-card:not(.notice):is(:first-child, .notice + *) .detail_info {
    padding: 16px 22px 0;
  }

  /* 화보 그리드 카드: list_content 공통 규칙(위)이 이미 세로 배치이므로 여백만 정리 */
  body#tt-body-index .post-list > .post-card:not(.notice):not(:is(:first-child, .notice + *)) .link_post {
    padding: 16px 18px 4px;
  }
  body#tt-body-index .post-list > .post-card:not(.notice):not(:is(:first-child, .notice + *)) .detail_info {
    padding: 6px 18px 18px;
  }

  .area_title .tit_post { font-size: 22px; }
  .area-toc { padding: 2px 16px; }
  body:has(.skin_view) .container { padding-top: 28px; }

  .list_reply li.re_reply { margin-left: 16px; }
  .reply_writer { flex-direction: column; align-items: stretch; }
  .writer_info { flex-direction: column; }
  .inp_info { width: 100%; }
  .btn_enter { width: 100%; }
}
