/*
Theme Name: 찜트립 (Astra Child)
Theme URI: https://jjimtrip.com/
Description: 팔도 지도의 색 토큰과 서체를 사이트 전체로 확장한 Astra 차일드 테마. 홈 히어로 한 곳에만 모션을 몰고, 본문은 조용하게 둔다.
Author: jjimtrip
Template: astra
Version: 1.0.0
Text Domain: jjimtrip-child
*/

/* ==========================================================================
   1. 토큰
   팔도 지도(src/shell.html)에 이미 정의된 색을 그대로 승계한다. 지도와 사이트가
   한 몸으로 보이려면 두 곳의 값이 갈라지면 안 된다. 지도 쪽을 고치면 여기도 고칠 것.

   세 가지 상태를 모두 정의한다.
     :root                                  기본(라이트)
     @media (prefers-color-scheme: dark)    OS 다크 — 명시적 라이트 선택이 이기도록 가드
     :root[data-theme="dark"]               토글로 고른 다크
   ========================================================================== */

/* :root 를 두 번 겹쳐 쓴 건 오타가 아니다.
   워드프레스 '추가 CSS'(Customizer)는 테마 스타일시트보다 뒤에 출력되는데, 지금 그
   자리에 예전 디자인용 CSS 가 남아 있고 하필 같은 --jt- 접두사로 --jt-line 을 다시
   정의한다. 순서로는 그쪽이 이기므로 명시도를 한 단 올려 토큰을 지킨다.
   추가 CSS 를 지우면 이 겹침은 없어도 되지만, 남아 있어도 깨지지 않게 둔다. */
:root:root {
  --jt-ground: #E9EBEF;
  --jt-surface: #F7F8FA;
  --jt-surface-2: #FFFFFF;
  --jt-line: #C9CFDA;
  --jt-line-soft: #DDE2EA;
  --jt-text: #12151B;
  --jt-dim: #5B6474;
  --jt-faint: #626B7A;

  --jt-indigo: #2E4B7A;
  --jt-indigo-hi: #3D639F;
  --jt-on-indigo: #F7F8FA;
  --jt-indigo-soft: #DFE5F0;
  --jt-celadon: #43796A;
  --jt-celadon-soft: #DDEAE5;
  --jt-gam: #A9522B;
  --jt-gam-soft: #F2E2D9;

  /* 히어로는 라이트/다크와 무관하게 늘 어둡다. 강렬함을 한 곳에 몰기 위한 의도된 고정값. */
  --jt-hero-bg: #0A0F17;
  --jt-hero-bg-2: #111B29;
  --jt-hero-text: #E8ECF3;
  --jt-hero-dim: #93A0B4;
  --jt-hero-line: #1E2A3B;
  --jt-hero-glow-a: rgba(61, 99, 159, .38);
  --jt-hero-glow-b: rgba(67, 121, 106, .26);

  --jt-r: 3px;
  --jt-r-lg: 5px;
  --jt-shadow: 0 1px 2px rgba(18, 21, 27, .05), 0 10px 28px -16px rgba(18, 21, 27, .22);
  --jt-shadow-lg: 0 2px 4px rgba(18, 21, 27, .06), 0 22px 50px -26px rgba(18, 21, 27, .34);

  --jt-sans: "IBM Plex Sans KR", system-ui, -apple-system, "Malgun Gothic", "맑은 고딕", sans-serif;
  --jt-serif: "Gowun Batang", "IBM Plex Sans KR", "Nanum Myeongjo", serif;
  --jt-mono: "IBM Plex Mono", "IBM Plex Sans KR", ui-monospace, SFMono-Regular, monospace;

  --jt-maxw: 1160px;
  --jt-gut: clamp(18px, 4vw, 44px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --jt-ground: #0E1116;
    --jt-surface: #161A21;
    --jt-surface-2: #1B212A;
    --jt-line: #2C333F;
    --jt-line-soft: #232A34;
    --jt-text: #E4E7ED;
    --jt-dim: #98A1B1;
    --jt-faint: #8892A3;

    --jt-indigo: #7FA0D6;
    --jt-indigo-hi: #9DB8E4;
    --jt-on-indigo: #0E1116;
    --jt-indigo-soft: #1E2836;
    --jt-celadon: #75B29F;
    --jt-celadon-soft: #172723;
    --jt-gam: #D07A4C;
    --jt-gam-soft: #2A1D16;

    --jt-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 28px -16px rgba(0, 0, 0, .8);
    --jt-shadow-lg: 0 2px 4px rgba(0, 0, 0, .55), 0 22px 50px -26px rgba(0, 0, 0, .9);
  }
}

:root[data-theme="dark"] {
  --jt-ground: #0E1116;
  --jt-surface: #161A21;
  --jt-surface-2: #1B212A;
  --jt-line: #2C333F;
  --jt-line-soft: #232A34;
  --jt-text: #E4E7ED;
  --jt-dim: #98A1B1;
  --jt-faint: #8892A3;

  --jt-indigo: #7FA0D6;
  --jt-indigo-hi: #9DB8E4;
  --jt-on-indigo: #0E1116;
  --jt-indigo-soft: #1E2836;
  --jt-celadon: #75B29F;
  --jt-celadon-soft: #172723;
  --jt-gam: #D07A4C;
  --jt-gam-soft: #2A1D16;

  --jt-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 28px -16px rgba(0, 0, 0, .8);
  --jt-shadow-lg: 0 2px 4px rgba(0, 0, 0, .55), 0 22px 50px -26px rgba(0, 0, 0, .9);
}


/* ==========================================================================
   2. 바탕
   ========================================================================== */

body,
body.ast-blog-single-style-1,
.ast-separate-container {
  background-color: var(--jt-ground);
  color: var(--jt-text);
  font-family: var(--jt-sans);
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased;
}

/* Astra 는 컨테이너 배경을 인라인 CSS 로 흰색 고정하는 경우가 있다. 토큰으로 되돌린다. */
.ast-separate-container .ast-archive-description,
.ast-plain-container .site-content,
#content .ast-container {
  background-color: transparent;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .site-title {
  font-family: var(--jt-serif);
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.32;
  color: var(--jt-text);
  text-wrap: balance;
}

p, li, dd, td, th {
  font-family: var(--jt-sans);
}

a {
  color: var(--jt-indigo);
  text-underline-offset: .22em;
  transition: color .2s ease, text-decoration-color .2s ease;
}
a:hover, a:focus-visible {
  color: var(--jt-gam);
}

:where(a, button, input, select, textarea, .jt-card):focus-visible {
  outline: 2px solid var(--jt-indigo);
  outline-offset: 3px;
  border-radius: 2px;
}

.jt-mono { font-family: var(--jt-mono); font-variant-numeric: tabular-nums; }
.jt-serif { font-family: var(--jt-serif); }

.jt-shell {
  width: 100%;
  max-width: var(--jt-maxw);
  margin-inline: auto;
  padding-inline: var(--jt-gut);
}

/* 라벨 — 지도의 좌표 표기와 같은 말투를 쓴다 */
.jt-kicker {
  display: inline-block;
  font-family: var(--jt-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--jt-faint);
  margin: 0 0 12px;
}

/* 등고선 — 지도의 지형 표현을 사이트 전역의 구분선으로 쓴다 */
.jt-contour {
  height: 1px;
  border: 0;
  margin: 0;
  background: repeating-linear-gradient(90deg,
    var(--jt-line) 0 22px, transparent 22px 30px);
  opacity: .85;
}


/* ==========================================================================
   3. 헤더 · 내비게이션
   ========================================================================== */

.site-header,
.ast-primary-header-bar,
.ast-header-break-point .main-header-bar {
  background-color: var(--jt-surface) !important;
  border-bottom: 1px solid var(--jt-line) !important;
  box-shadow: none;
}

.site-title,
.site-title a {
  font-family: var(--jt-serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.02em;
  color: var(--jt-indigo) !important;
}
.site-title a:hover { color: var(--jt-gam) !important; }

.site-description {
  font-family: var(--jt-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--jt-faint) !important;
}

.main-header-menu > .menu-item > .menu-link,
.ast-header-break-point .main-navigation .menu-link {
  font-family: var(--jt-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--jt-dim) !important;
  position: relative;
}

/* 밑줄은 레이아웃을 밀지 않도록 가상요소로 그린다 */
.main-header-menu > .menu-item > .menu-link::after {
  content: "";
  position: absolute;
  left: 1em;
  right: 1em;
  bottom: .55em;
  height: 1px;
  background: var(--jt-gam);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s cubic-bezier(.2, .7, .3, 1);
}
.main-header-menu > .menu-item > .menu-link:hover::after,
.main-header-menu > .current-menu-item > .menu-link::after,
.main-header-menu > .current-menu-ancestor > .menu-link::after {
  transform: scaleX(1);
}
.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .current-menu-item > .menu-link,
.main-header-menu > .current-menu-ancestor > .menu-link {
  color: var(--jt-text) !important;
}

.main-header-menu .sub-menu {
  background: var(--jt-surface-2);
  border: 1px solid var(--jt-line);
  border-radius: var(--jt-r);
  box-shadow: var(--jt-shadow);
}
.main-header-menu .sub-menu .menu-link {
  color: var(--jt-dim) !important;
  font-size: 13.5px;
}
.main-header-menu .sub-menu .menu-link:hover {
  color: var(--jt-text) !important;
  background: var(--jt-indigo-soft);
}


/* ==========================================================================
   4. 홈 히어로 — 사이트에서 유일하게 어둡고, 유일하게 움직이는 구역
   ========================================================================== */

.jt-hero {
  position: relative;
  overflow: hidden;
  background: var(--jt-hero-bg);
  color: var(--jt-hero-text);
  padding: clamp(52px, 9vw, 104px) 0 clamp(44px, 7vw, 84px);
  isolation: isolate;
}

/* 광원 두 개. 스크롤에 따라 --jt-par 가 바뀌며 배경만 느리게 따라온다. */
.jt-hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(52% 46% at 74% 12%, var(--jt-hero-glow-a), transparent 68%),
    radial-gradient(46% 42% at 16% 78%, var(--jt-hero-glow-b), transparent 70%),
    linear-gradient(168deg, var(--jt-hero-bg-2), var(--jt-hero-bg) 62%);
  transform: translate3d(0, calc(var(--jt-par, 0) * 42px), 0);
  will-change: transform;
}

/* 등고선 격자 — 지도 배경과 같은 문법 */
.jt-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background:
    linear-gradient(rgba(127, 160, 214, .07) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, rgba(127, 160, 214, .07) 1px, transparent 1px) 0 0 / 64px 100%;
  -webkit-mask-image: radial-gradient(78% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(78% 70% at 50% 40%, #000 30%, transparent 100%);
  transform: translate3d(0, calc(var(--jt-par, 0) * -22px), 0);
}

/* 지도는 가로로 넓어야 한다. shell.html 의 .stage 는 960px 미만에서 한 칸으로 접히고,
   그러면 도시 정보 패널이 지도 옆이 아니라 아래로 내려가 액자 밖으로 밀린다.
   그래서 카피는 본문 폭 안에 두고, 지도만 화면 폭까지 빼낸다. */
.jt-hero__copy { max-width: 62ch; }

.jt-hero__mapband {
  margin-top: clamp(30px, 4vw, 46px);
  padding-inline: clamp(0px, 1.5vw, 28px);
}

.jt-hero .jt-kicker { color: #7FA0D6; }

.jt-hero__title {
  font-family: var(--jt-serif);
  font-size: clamp(30px, 5.2vw, 54px);
  line-height: 1.22;
  letter-spacing: -.025em;
  margin: 0 0 18px;
  color: var(--jt-hero-text);
}

/* 헤드라인은 줄 단위로 순차 등장한다. 글자 단위로 쪼개면 스크린리더가 끊어 읽는다. */
.jt-hero__title .jt-line {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  animation: jt-rise .72s cubic-bezier(.2, .7, .3, 1) forwards;
}
.jt-hero__title .jt-line:nth-child(2) { animation-delay: .1s; }
@keyframes jt-rise { to { opacity: 1; transform: none; } }

.jt-hero__say {
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  line-height: 1.8;
  color: var(--jt-hero-dim);
  max-width: 42ch;
  margin: 0 0 26px;
  opacity: 0;
  animation: jt-rise .72s cubic-bezier(.2, .7, .3, 1) .2s forwards;
}

.jt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  opacity: 0;
  animation: jt-rise .72s cubic-bezier(.2, .7, .3, 1) .3s forwards;
}

.jt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--jt-r);
  font-family: var(--jt-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}
.jt-btn svg { width: 16px; height: 16px; flex: none; }

.jt-btn--gam {
  background: var(--jt-gam);
  color: #FFF;
  border-color: var(--jt-gam);
}
.jt-btn--gam:hover, .jt-btn--gam:focus-visible {
  background: #8F4222;
  border-color: #8F4222;
  color: #FFF;
}

.jt-btn--ghost {
  background: transparent;
  border-color: rgba(232, 236, 243, .28);
  color: var(--jt-hero-text);
}
.jt-btn--ghost:hover, .jt-btn--ghost:focus-visible {
  border-color: rgba(232, 236, 243, .6);
  background: rgba(232, 236, 243, .07);
  color: var(--jt-hero-text);
}

.jt-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 30px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--jt-hero-line);
  list-style: none;
  opacity: 0;
  animation: jt-rise .72s cubic-bezier(.2, .7, .3, 1) .42s forwards;
}
.jt-hero__stats li { display: flex; flex-direction: column; gap: 2px; }
.jt-hero__stats b {
  font-family: var(--jt-mono);
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--jt-hero-text);
  line-height: 1.2;
}
.jt-hero__stats span {
  font-family: var(--jt-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jt-hero-dim);
}

/* 지도 액자 */
.jt-mapframe {
  position: relative;
  border: 1px solid var(--jt-hero-line);
  border-radius: var(--jt-r-lg);
  background: var(--jt-hero-bg-2);
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .95);
  opacity: 0;
  transform: translateY(20px) scale(.985);
  animation: jt-mapin .9s cubic-bezier(.2, .7, .3, 1) .18s forwards;
}
@keyframes jt-mapin { to { opacity: 1; transform: none; } }

.jt-mapframe__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--jt-hero-line);
  font-family: var(--jt-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jt-hero-dim);
}
.jt-mapframe__bar i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--jt-celadon);
  flex: none;
}
.jt-mapframe__bar span:last-child { margin-left: auto; }

.jt-mapframe iframe {
  display: block;
  width: 100%;
  height: clamp(460px, 64vh, 640px);
  border: 0;
  background: var(--jt-hero-bg-2);
}
/* 960px 아래에서는 지도 안에서 패널이 지도 밑으로 내려간다. 액자를 키워 둘 다 담는다. */
@media (max-width: 960px) {
  .jt-mapframe iframe { height: 760px; }
}

.jt-mapframe__note {
  margin: 0;
  padding: 9px 14px;
  border-top: 1px solid var(--jt-hero-line);
  font-size: 11px;
  color: var(--jt-hero-dim);
}
.jt-mapframe__note a { color: var(--jt-hero-dim); }
.jt-mapframe__note a:hover { color: var(--jt-hero-text); }


/* ==========================================================================
   5. 홈 섹션 공통
   ========================================================================== */

/* 우리가 직접 그리는 화면(.jt-full — 홈·목록·검색·글·404·지도)은 섹션이 스스로 폭과
   여백을 갖는다. Astra 컨테이너의 제한을 푼다. 고정 페이지는 Astra 템플릿 그대로라
   이 표식이 붙지 않는다.
   Astra 는 컨테이너 여백을 인라인 CSS 로 내보내므로 여기서만 !important 를 쓴다. */
.jt-full #content > .ast-container {
  max-width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.jt-full #primary {
  width: 100%;
  margin: 0;
  padding: 0;
}
.jt-full .site-main { padding: 0; }

/* 지도 페이지에는 Astra 의 글 제목 블록이 필요 없다 — 화면 전체가 지도다 */
.page-template-template-map .ast-article-single { background: none; border: 0; padding: 0; }

.jt-section { padding: clamp(46px, 7vw, 88px) 0; }
.jt-section--tint { background: var(--jt-surface); border-block: 1px solid var(--jt-line); }

.jt-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}
.jt-section__head h2 {
  font-size: clamp(22px, 3.1vw, 32px);
  margin: 0;
}
.jt-section__head p {
  margin: 8px 0 0;
  color: var(--jt-dim);
  font-size: 15px;
  max-width: 56ch;
}
.jt-section__more {
  font-family: var(--jt-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* 스크롤 진입. JS 가 .is-in 을 붙인다. JS 가 죽어도 내용이 보이도록
   .jt-js 가 붙은 문서에서만 숨긴다. */
.jt-js .jt-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.2, .7, .3, 1);
}
.jt-js .jt-reveal.is-in { opacity: 1; transform: none; }


/* ==========================================================================
   6. 카드 — 홈과 검색이 같은 카드를 쓴다
   ========================================================================== */

.jt-grid {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}

.jt-card {
  display: flex;
  flex-direction: column;
  background: var(--jt-surface-2);
  border: 1px solid var(--jt-line-soft);
  border-left: 3px solid var(--jt-celadon);
  border-radius: var(--jt-r);
  overflow: hidden;
  transition: border-color .24s ease, box-shadow .24s ease;
}
.jt-card:hover, .jt-card:focus-within {
  border-color: var(--jt-line);
  border-left-color: var(--jt-gam);
  box-shadow: var(--jt-shadow);
}

/* 목록 화면의 카드는 post_class() 를 거치는데, Astra 가 거기에 .ast-article-post 를
   붙이고 안쪽 여백을 준다. 그러면 썸네일이 카드 안쪽으로 밀려 가장자리에 닿지 않는다.
   여백은 .jt-card__body 가 갖는다. (홈 카드는 post_class 를 안 써서 원래 멀쩡하다) */
.jt-grid .jt-card { padding: 0; }

.jt-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--jt-ground);
  border-bottom: 1px solid var(--jt-line-soft);
}
.jt-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.jt-card:hover .jt-card__thumb img { transform: scale(1.035); }

.jt-card__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 18px 18px;
  flex: 1;
}
.jt-card__cat {
  font-family: var(--jt-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jt-gam);
  text-decoration: none;
}
.jt-card__cat:hover { color: var(--jt-indigo); }
.jt-card__title {
  font-family: var(--jt-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.42;
  margin: 0;
}
.jt-card__title a { color: var(--jt-text); text-decoration: none; }
.jt-card__title a:hover { color: var(--jt-indigo); }
.jt-card__excerpt {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--jt-dim);
}
.jt-card__meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--jt-line-soft);
  font-family: var(--jt-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--jt-faint);
  font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   7. 분류 타일
   ========================================================================== */

.jt-cats {
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
}

.jt-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 24px;
  background: var(--jt-surface-2);
  border: 1px solid var(--jt-line-soft);
  border-radius: var(--jt-r);
  text-decoration: none;
  overflow: hidden;
  transition: border-color .24s ease, box-shadow .24s ease;
}
.jt-cat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--jt-indigo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s cubic-bezier(.2, .7, .3, 1);
}
.jt-cat:hover, .jt-cat:focus-visible {
  border-color: var(--jt-line);
  box-shadow: var(--jt-shadow);
}
.jt-cat:hover::before, .jt-cat:focus-visible::before { transform: scaleX(1); }

.jt-cat__icon {
  width: 30px; height: 30px;
  color: var(--jt-celadon);
  flex: none;
}
.jt-cat__icon svg { width: 100%; height: 100%; display: block; }
.jt-cat b {
  font-family: var(--jt-serif);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--jt-text);
  letter-spacing: -.015em;
}
.jt-cat span {
  font-size: 13px;
  color: var(--jt-dim);
  line-height: 1.65;
}
.jt-cat em {
  font-family: var(--jt-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jt-faint);
  margin-top: 2px;
}


/* ==========================================================================
   8. 도움말 3점 · 마무리 CTA
   ========================================================================== */

.jt-points {
  display: grid;
  gap: clamp(18px, 2.6vw, 34px);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.jt-point { display: flex; flex-direction: column; gap: 9px; }
.jt-point__no {
  font-family: var(--jt-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--jt-gam);
}
.jt-point b {
  font-family: var(--jt-serif);
  font-size: 18px;
  letter-spacing: -.015em;
}
.jt-point p { margin: 0; font-size: 14px; color: var(--jt-dim); line-height: 1.78; }

.jt-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(26px, 4vw, 44px);
  background: var(--jt-indigo-soft);
  border: 1px solid var(--jt-indigo);
  border-radius: var(--jt-r-lg);
}
.jt-cta h2 { margin: 0 0 6px; font-size: clamp(20px, 2.6vw, 27px); }
.jt-cta p { margin: 0; color: var(--jt-dim); font-size: 14.5px; max-width: 50ch; }


/* ==========================================================================
   9. 아카이브 · 검색 — Astra 기본 마크업을 카드 문법으로 바꿔 입힌다
   템플릿을 덮지 않고 CSS 로만 처리해 Astra 업데이트에 덜 흔들리게 둔다.
   ========================================================================== */

.ast-archive-description {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--jt-line);
  padding: clamp(30px, 5vw, 58px) 0 clamp(18px, 2.6vw, 26px);
  margin-bottom: clamp(26px, 4vw, 44px);
  text-align: left;
}
.ast-archive-description .ast-archive-title,
.ast-archive-description h1 {
  font-family: var(--jt-serif);
  font-size: clamp(26px, 4vw, 40px);
  margin: 0;
}
.ast-archive-description .ast-archive-title::before {
  content: "ARCHIVE";
  display: block;
  font-family: var(--jt-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .17em;
  color: var(--jt-faint);
  margin-bottom: 10px;
}
.ast-archive-description p { color: var(--jt-dim); font-size: 14.5px; }

/* 목록 카드 */
.ast-article-post .ast-article-inner,
.blog-layout-4.ast-article-inner {
  background: var(--jt-surface-2);
  border: 1px solid var(--jt-line-soft);
  border-left: 3px solid var(--jt-celadon);
  border-radius: var(--jt-r);
  overflow: hidden;
  transition: border-color .24s ease, box-shadow .24s ease;
  height: 100%;
}
.ast-article-post .ast-article-inner:hover,
.blog-layout-4.ast-article-inner:hover {
  border-color: var(--jt-line);
  border-left-color: var(--jt-gam);
  box-shadow: var(--jt-shadow);
}

.ast-article-post .post-thumb-img-content img,
.ast-blog-featured-section img {
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.ast-article-post .ast-article-inner:hover .post-thumb-img-content img {
  transform: scale(1.035);
}

.ast-article-post .entry-title,
.ast-article-post .entry-title a {
  font-family: var(--jt-serif);
  font-size: 18px;
  line-height: 1.42;
  color: var(--jt-text);
}
.ast-article-post .entry-title a:hover { color: var(--jt-indigo); }

.ast-excerpt-container p {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--jt-dim);
}

.entry-meta,
.entry-meta * {
  font-family: var(--jt-mono);
  font-size: 10.5px !important;
  letter-spacing: .06em;
  color: var(--jt-faint) !important;
  font-variant-numeric: tabular-nums;
  text-transform: none;
}
.entry-meta a:hover { color: var(--jt-gam) !important; }

/* 페이지네이션 */
.ast-pagination .page-numbers {
  font-family: var(--jt-mono);
  font-size: 12.5px;
  border: 1px solid var(--jt-line);
  border-radius: var(--jt-r);
  padding: 8px 13px;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--jt-dim);
  background: var(--jt-surface-2);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ast-pagination .page-numbers:hover {
  border-color: var(--jt-indigo);
  color: var(--jt-indigo);
}
.ast-pagination .page-numbers.current {
  background: var(--jt-indigo);
  border-color: var(--jt-indigo);
  color: var(--jt-on-indigo);
}


/* ==========================================================================
   10. 단일 글 · 고정 페이지 본문
   읽는 자리다. 여기엔 모션을 넣지 않는다.
   ========================================================================== */

.ast-article-single {
  background: var(--jt-surface-2);
  border: 1px solid var(--jt-line-soft);
  border-radius: var(--jt-r);
  padding: clamp(24px, 4.5vw, 56px);
}

.ast-article-single .entry-header {
  border-bottom: 1px solid var(--jt-line-soft);
  padding-bottom: 22px;
  margin-bottom: 30px;
}
.ast-article-single .entry-title {
  font-size: clamp(25px, 3.8vw, 38px);
  line-height: 1.3;
  margin: 0 0 12px;
}

.entry-content {
  font-size: 16px;
  line-height: 1.88;
  color: var(--jt-text);
}
.entry-content > * { max-width: 74ch; }
.entry-content > .alignwide,
.entry-content > .alignfull,
.entry-content > figure,
.entry-content > .wp-block-table,
.entry-content > .wp-block-image { max-width: none; }

.entry-content h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  margin: 2.4em 0 .7em;
  padding-top: .7em;
  border-top: 1px solid var(--jt-line-soft);
  position: relative;
}
.entry-content h2::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 34px; height: 2px;
  background: var(--jt-gam);
}
.entry-content h3 {
  font-size: clamp(17px, 2vw, 20px);
  margin: 2em 0 .6em;
  color: var(--jt-indigo);
}
.entry-content p { margin: 0 0 1.35em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.5em; padding-left: 1.35em; }
.entry-content li { margin-bottom: .5em; }
.entry-content li::marker { color: var(--jt-celadon); }

.entry-content blockquote {
  margin: 1.9em 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--jt-celadon);
  font-family: var(--jt-serif);
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--jt-dim);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content code {
  font-family: var(--jt-mono);
  font-size: .89em;
  background: var(--jt-indigo-soft);
  color: var(--jt-indigo);
  padding: .12em .42em;
  border-radius: 2px;
}
.entry-content pre {
  background: var(--jt-surface);
  border: 1px solid var(--jt-line-soft);
  border-radius: var(--jt-r);
  padding: 16px 18px;
  overflow-x: auto;
}
.entry-content pre code { background: none; padding: 0; color: var(--jt-text); }

.entry-content img,
.entry-content figure img {
  border-radius: var(--jt-r);
  border: 1px solid var(--jt-line-soft);
  /* functions.php 가 width·height 속성을 채워 넣는다(레이아웃 밀림 방지). 폭을 CSS 로
     줄일 때 그 높이가 그대로 남으면 그림이 눌리므로 높이는 비율대로 따라오게 둔다. */
  max-width: 100%;
  height: auto;
}
.entry-content figcaption {
  font-family: var(--jt-mono);
  font-size: 11px;
  color: var(--jt-faint);
  letter-spacing: .04em;
  text-align: left;
  margin-top: 8px;
}

/* 표 — 통행료·한도처럼 수치가 줄맞춤돼야 하는 표가 많다 */
.entry-content .wp-block-table,
.entry-content figure.wp-block-table { overflow-x: auto; }
.entry-content table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.entry-content th,
.entry-content td {
  border: 1px solid var(--jt-line-soft);
  padding: 10px 13px;
  text-align: left;
}
.entry-content th {
  background: var(--jt-surface);
  font-family: var(--jt-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--jt-faint);
  white-space: nowrap;
}

.entry-content hr,
.entry-content .wp-block-separator {
  border: 0;
  height: 1px;
  margin: 2.6em 0;
  background: repeating-linear-gradient(90deg, var(--jt-line) 0 22px, transparent 22px 30px);
}

/* 글 하단 이동 */
.post-navigation .nav-links a {
  font-family: var(--jt-mono);
  font-size: 12px;
  letter-spacing: .06em;
}


/* ==========================================================================
   11. 댓글 · 폼 · 검색
   ========================================================================== */

.comments-area {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(24px, 3.4vw, 38px);
  border-top: 1px solid var(--jt-line);
}
.comments-title, .comment-reply-title {
  font-family: var(--jt-serif);
  font-size: 20px;
}

input[type="text"], input[type="email"], input[type="url"],
input[type="search"], input[type="tel"], input[type="number"],
input[type="password"], textarea, select {
  font-family: var(--jt-sans);
  font-size: 15px;
  color: var(--jt-text);
  background: var(--jt-surface-2);
  border: 1px solid var(--jt-line);
  border-radius: var(--jt-r);
  padding: 11px 14px;
  min-height: 44px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--jt-indigo);
  box-shadow: 0 0 0 3px var(--jt-indigo-soft);
  outline: none;
}
::placeholder { color: var(--jt-faint); }

button, .button, input[type="submit"], .wp-block-button__link {
  font-family: var(--jt-sans);
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
  padding: 11px 22px;
  background: var(--jt-indigo);
  color: var(--jt-on-indigo);
  border: 1px solid var(--jt-indigo);
  border-radius: var(--jt-r);
  cursor: pointer;
  transition: background-color .22s ease, border-color .22s ease;
}
button:hover, .button:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
  background: var(--jt-gam);
  border-color: var(--jt-gam);
  color: #FFF;
}

/* 히어로 안의 검색은 어두운 바탕 위에 놓인다 */
.jt-search { display: flex; gap: 8px; width: 100%; max-width: 440px; margin: 0 0 18px; }
.jt-search input[type="search"] {
  flex: 1;
  background: rgba(232, 236, 243, .06);
  border-color: var(--jt-hero-line);
  color: var(--jt-hero-text);
}
.jt-search input[type="search"]::placeholder { color: var(--jt-hero-dim); }
.jt-search input[type="search"]:focus {
  border-color: #7FA0D6;
  box-shadow: 0 0 0 3px rgba(127, 160, 214, .18);
}
.jt-search button {
  background: transparent;
  border-color: var(--jt-hero-line);
  color: var(--jt-hero-text);
}
.jt-search button:hover {
  background: rgba(232, 236, 243, .08);
  border-color: rgba(232, 236, 243, .5);
  color: var(--jt-hero-text);
}


/* ==========================================================================
   12. 팔도 지도 전용 페이지
   ========================================================================== */

.jt-mappage iframe {
  display: block;
  width: 100%;
  height: calc(100vh - 60px);
  min-height: 560px;
  border: 0;
  background: var(--jt-ground);
}
.jt-mappage__note {
  padding: 14px var(--jt-gut);
  border-top: 1px solid var(--jt-line);
  background: var(--jt-surface);
  font-size: 12px;
  color: var(--jt-faint);
}


/* ==========================================================================
   12b. 목록 페이지 (분류 · 검색 · 블로그 · 404)
   Astra 템플릿을 덮고 직접 그린 마크업이다. 홈의 카드를 그대로 쓴다.
   ========================================================================== */

.jt-list { padding: 0; }

.jt-list__head {
  border-bottom: 1px solid var(--jt-line);
  background: var(--jt-surface);
  padding: clamp(34px, 6vw, 72px) 0 clamp(22px, 3.4vw, 34px);
}
.jt-list__title {
  font-size: clamp(26px, 4.2vw, 42px);
  margin: 0;
  line-height: 1.24;
}
.jt-list__desc {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--jt-dim);
  font-size: 15px;
  line-height: 1.75;
}
.jt-list__desc p { margin: 0; }
.jt-list__count {
  margin: 14px 0 0;
  font-family: var(--jt-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--jt-faint);
  font-variant-numeric: tabular-nums;
}
.jt-list__search { margin-top: 20px; max-width: 460px; }

.jt-list__body { padding: clamp(28px, 4.5vw, 52px) var(--jt-gut) clamp(44px, 7vw, 84px); }
.jt-list__body .jt-section__head { margin-top: clamp(30px, 5vw, 56px); }

.jt-searchform { display: flex; gap: 8px; }
.jt-searchform input[type="search"] { flex: 1; min-width: 0; }

.jt-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 15px;
  border: 1px solid var(--jt-line);
  border-radius: 99px;
  background: var(--jt-surface-2);
  font-size: 13.5px;
  color: var(--jt-dim);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.jt-chip:hover, .jt-chip:focus-visible {
  border-color: var(--jt-gam);
  color: var(--jt-gam);
}

.jt-empty {
  padding: clamp(30px, 5vw, 60px) 0;
  max-width: 64ch;
}
.jt-empty h2 { font-size: clamp(20px, 2.8vw, 27px); margin: 0 0 10px; }
.jt-empty p { color: var(--jt-dim); font-size: 15px; margin: 0 0 20px; }
.jt-empty .jt-searchform { max-width: 440px; margin-bottom: 24px; }
.jt-empty__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.jt-pagination { margin-top: clamp(30px, 4.5vw, 50px); }
.jt-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.jt-pagination .page-numbers {
  font-family: var(--jt-mono);
  font-size: 12.5px;
  border: 1px solid var(--jt-line);
  border-radius: var(--jt-r);
  padding: 8px 13px;
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--jt-dim);
  background: var(--jt-surface-2);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.jt-pagination .page-numbers:hover { border-color: var(--jt-indigo); color: var(--jt-indigo); }
.jt-pagination .page-numbers.current {
  background: var(--jt-indigo);
  border-color: var(--jt-indigo);
  color: var(--jt-on-indigo);
}
.jt-pagination .page-numbers.dots { border-color: transparent; background: none; }


/* ==========================================================================
   12c. 글 본문 페이지
   본문 옆에 목차가 붙는다. 좁아지면 목차가 본문 위로 올라간다.
   ========================================================================== */

.jt-single { padding: 0; }

.jt-single__head {
  border-bottom: 1px solid var(--jt-line);
  background: var(--jt-surface);
  padding: clamp(30px, 5vw, 64px) 0 clamp(20px, 3vw, 32px);
}
.jt-single__cat {
  display: inline-block;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--jt-gam);
}
.jt-single__cat:hover { color: var(--jt-indigo); }
.jt-single__title {
  font-size: clamp(25px, 4vw, 40px);
  line-height: 1.3;
  margin: 0;
  max-width: 26ch;
}
.jt-single__meta {
  margin: 16px 0 0;
  font-family: var(--jt-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--jt-faint);
  font-variant-numeric: tabular-nums;
}

.jt-single__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
  padding-top: clamp(28px, 4.5vw, 52px);
  padding-bottom: clamp(36px, 5vw, 64px);
}
@media (max-width: 1000px) {
  .jt-single__body { grid-template-columns: 1fr; }
  .jt-toc { order: -1; }
}

.jt-single__article {
  background: var(--jt-surface-2);
  border: 1px solid var(--jt-line-soft);
  border-radius: var(--jt-r);
  padding: clamp(22px, 3.6vw, 48px);
  min-width: 0;
}
.jt-single__hero { margin: 0 0 clamp(22px, 3vw, 36px); }
.jt-single__hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--jt-r);
  border: 1px solid var(--jt-line-soft);
}

/* 목차 */
.jt-toc {
  position: sticky;
  top: 24px;
  border-left: 2px solid var(--jt-celadon);
  padding: 2px 0 2px 16px;
}
@media (max-width: 1000px) {
  .jt-toc {
    position: static;
    border: 1px solid var(--jt-line-soft);
    border-left: 2px solid var(--jt-celadon);
    border-radius: var(--jt-r);
    background: var(--jt-surface-2);
    padding: 16px 18px;
  }
}
.jt-toc[hidden] { display: none; }
.jt-toc .jt-kicker { margin-bottom: 10px; }
.jt-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: jt-toc;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.jt-toc li { counter-increment: jt-toc; display: flex; gap: 8px; }
.jt-toc li::before {
  content: counter(jt-toc, decimal-leading-zero);
  font-family: var(--jt-mono);
  font-size: 10px;
  color: var(--jt-faint);
  padding-top: .25em;
  flex: none;
}
.jt-toc a {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--jt-dim);
  text-decoration: none;
}
.jt-toc a:hover { color: var(--jt-gam); }

/* 앵커로 뛸 때 제목이 화면 맨 위에 딱 붙지 않도록 */
.entry-content h2 { scroll-margin-top: 24px; }

/* 이전 · 다음 */
.jt-adjacent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(10px, 1.5vw, 16px);
  padding-bottom: clamp(36px, 5vw, 60px);
}
.jt-adjacent__link {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 20px;
  background: var(--jt-surface-2);
  border: 1px solid var(--jt-line-soft);
  border-radius: var(--jt-r);
  text-decoration: none;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.jt-adjacent__link:hover { border-color: var(--jt-line); box-shadow: var(--jt-shadow); }
.jt-adjacent__link--next { text-align: right; }
/* 첫 글·마지막 글은 한쪽만 나온다. 혼자일 때 오른쪽 정렬은 어색하다. */
.jt-adjacent__link--next:only-child { text-align: left; }
.jt-adjacent__link b {
  font-family: var(--jt-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--jt-text);
}
.jt-adjacent__link:hover b { color: var(--jt-indigo); }

.jt-related .jt-section__head { margin-bottom: clamp(20px, 3vw, 30px); }
.jt-single__comments { padding-bottom: clamp(36px, 5vw, 64px); }

.jt-pagelinks {
  margin-top: 28px;
  font-family: var(--jt-mono);
  font-size: 12.5px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}


/* ==========================================================================
   13. 404 · 빈 결과
   ========================================================================== */

.error404 .page-content,
.search-no-results .no-results {
  text-align: left;
  padding: clamp(36px, 6vw, 78px) 0;
}
.error404 .page-title::before,
.search-no-results .page-title::before {
  content: "";
  display: block;
  width: 44px; height: 2px;
  background: var(--jt-gam);
  margin-bottom: 18px;
}


/* ==========================================================================
   14. 푸터
   ========================================================================== */

.site-footer,
.ast-small-footer,
.site-below-footer-wrap {
  background: var(--jt-surface) !important;
  border-top: 1px solid var(--jt-line);
  color: var(--jt-dim);
}
.site-footer a { color: var(--jt-dim); }
.site-footer a:hover { color: var(--jt-gam); }
.ast-footer-copyright,
.ast-footer-copyright * {
  font-family: var(--jt-mono);
  font-size: 11.5px !important;
  letter-spacing: .05em;
  color: var(--jt-faint) !important;
}

#ast-scroll-top {
  background: var(--jt-indigo) !important;
  color: var(--jt-on-indigo) !important;
  border-radius: var(--jt-r);
}


/* ==========================================================================
   15. 모션 끄기
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .jt-hero__title .jt-line,
  .jt-hero__say,
  .jt-hero__actions,
  .jt-hero__stats,
  .jt-mapframe { opacity: 1; transform: none; }
  .jt-js .jt-reveal { opacity: 1; transform: none; }
  .jt-hero__glow, .jt-hero__grid { transform: none !important; }
}
