/* ============================================================
   ATLAS GUIDE :: TRAVEL HUB v2 (Field Guide v4.0)
   Self-contained page styles. Only reuses global tokens
   (--ag-green-900, --ag-gold-400/500, --font-display, --font-body)
   and the shared .hm-container / .hm-kicker-line / .rv / .hm-sw
   utility classes that already exist site-wide. Everything else
   (hero, chapter layout, cards, icon roundels) is new and scoped
   under the th- prefix so it can't be affected by other pages.
   ============================================================ */

.th-hero,
.th-chapter,
.th-chapter * { box-sizing: border-box; }

/* ---------- HERO ---------- */
.th-hero {
  position: relative;
  overflow: hidden;
  padding-block: 156px 96px;
  background: radial-gradient(120% 140% at 50% -10%, #163a28 0%, var(--ag-green-900, #0D2118) 55%, var(--ag-green-900, #0D2118) 100%);
  text-align: center;
}
.th-hero-compass {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(920px, 130vw);
  height: min(920px, 130vw);
  transform: translate(-50%, -50%);
  color: var(--ag-gold-500, #C9A85C);
  opacity: .09;
  pointer-events: none;
}
.th-hero-inner {
  position: relative;
  max-width: 700px;
  margin-inline: auto;
}
.th-hero-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ag-gold-400, #D9BC77);
  letter-spacing: .04em;
  margin-bottom: 24px;
}
.th-hero-kicker .hm-kicker-line { flex: 1 1 56px; max-width: 56px; }
.th-hero-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-weight: 700;
  font-size: clamp(2.15rem, 4.4vw, 3.15rem);
  line-height: 1.2;
  color: #fdfaf3;
  margin: 0 0 20px;
}
.th-hero-lede {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .72);
  max-width: 52ch;
  margin: 0 auto;
}

/* ---------- CHAPTERS ---------- */
.th-chapter {
  padding-block: 84px;
  background-color: #FBF6EA;
  background-image: radial-gradient(rgba(13, 33, 24, .05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.th-chapter-alt {
  background-color: #F2E9D2;
  background-image: radial-gradient(rgba(13, 33, 24, .06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.th-chapter-inner {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 52px;
  align-items: start;
}

.th-chapter-num {
  display: block;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(13, 33, 24, .14);
  margin-bottom: 8px;
}
.th-chapter-label {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .05em;
  color: #8A6A2E;
  margin-bottom: 10px;
}
.th-chapter-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1.28;
  color: #1B2E22;
  margin: 0 0 12px;
}
.th-chapter-copy {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .92rem;
  line-height: 1.65;
  color: #4A4433;
  margin: 0;
  max-width: 34ch;
}

/* ---------- CARD GRID ---------- */
.th-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.th-card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.th-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px 24px 24px;
  background: #FFFDF7;
  border: 1px solid rgba(13, 33, 24, .14);
  border-radius: 6px;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.th-card:hover,
.th-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 92, .6);
  box-shadow: 0 14px 28px rgba(13, 33, 24, .08);
}

.th-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(13, 33, 24, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1B2E22;
  transition: transform .3s ease, border-color .3s ease, background-color .3s ease, color .3s ease;
}
.th-card-icon svg { width: 22px; height: 22px; }
.th-card:hover .th-card-icon {
  transform: rotate(14deg);
  border-color: var(--ag-gold-500, #C9A85C);
  background: rgba(201, 168, 92, .14);
  color: #8A6A2E;
}

.th-card-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-weight: 700;
  font-size: 1.08rem;
  color: #1B2E22;
  margin: 0;
}
.th-card-desc {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .87rem;
  line-height: 1.55;
  color: #55503F;
  margin: 0;
  flex-grow: 1;
}
.th-card-link {
  position: relative;
  display: inline-block;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: .82rem;
  color: #1B2E22;
  padding-bottom: 3px;
}
.th-card-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(.32);
  transform-origin: left;
  transition: transform .25s ease, background-color .25s ease;
}
.th-card:hover .th-card-link::after {
  transform: scaleX(1);
  background: var(--ag-gold-500, #C9A85C);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .th-chapter-inner { grid-template-columns: 1fr; gap: 30px; }
  .th-chapter-copy { max-width: none; }
}
@media (max-width: 640px) {
  .th-hero { padding-block: 128px 68px; }
  .th-card-grid,
  .th-card-grid-3 { grid-template-columns: 1fr; }
  .th-chapter { padding-block: 60px; }
}

/* ---------- ACCESSIBILITY ---------- */
.th-card:focus-visible {
  outline: 2px solid var(--ag-gold-500, #C9A85C);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .th-card,
  .th-card-icon,
  .th-card-link::after { transition: none !important; }
}