/* style.css — atlas-engine shared styles (mobile-first).
   브랜드 색상은 토큰(:root)로 분리 — 도메인/브랜드 확정 시 이 값만 교체. */

:root {
  --brand: #c05070;          /* 루지 로즈 (메인, 채도 ↑ 대비) */
  --brand-dark: #8f2f4d;     /* 진한 로즈 (호버·강조) */
  --brand-deep: #3d1420;     /* 딥 와인 (히어로·푸터·강조 텍스트 — 무게감) */
  --brand-tint: #fbeef2;     /* 연한 로즈 (배경 틴트·선택칩) */
  --brand-tint-strong: #f3d3de;
  --gold: #c9a24b;           /* 로즈골드 포인트 (프리미엄 액센트) */
  --text: #241c1f;           /* 살짝 와인빛 먹색(더 깊은 본문) */
  --text-soft: #6b5c62;
  --text-faint: #a2949a;
  --bg: #f7f2ef;             /* 따뜻한 크림 아이보리(파스텔 탈피) */
  --surface: #ffffff;
  --line: #ece0e4;
  --line-strong: #dccdd3;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow: 0 1px 3px rgba(61, 20, 32, 0.05);
  --shadow-card: 0 6px 22px rgba(61, 20, 32, 0.09);
  --shadow-hero: 0 14px 40px rgba(61, 20, 32, 0.22);
  /* 히어로: 단색 파스텔 → 딥 와인→로즈 대각 + 질감(고급) */
  --brand-grad: linear-gradient(135deg, #a8385a 0%, #7a2542 55%, #3d1420 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); }

/* --- Header --- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.hdr-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  flex-wrap: wrap;
  max-width: 100%;
}
.site-header.sticky { position: sticky; top: 0; z-index: 50; }
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--brand-grad);
  box-shadow: 0 2px 6px rgba(80, 40, 55, 0.25);
  flex: none;
}
/* --- Header search bar --- */
.hdr-search {
  display: flex;
  align-items: center;
  flex: 1 1 200px;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}
.hdr-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text);
  min-width: 0;
}
.hdr-search input:focus { outline: none; }
.hdr-search button {
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  cursor: pointer;
}
.hdr-search button:hover { background: var(--brand-dark); }

/* --- Header actions (login/register/member) --- */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.hdr-actions a { color: var(--text-soft); text-decoration: none; }
.hdr-actions a:hover { color: var(--brand-dark); }

/* --- Header horizontal nav --- */
.hdr-nav {
  display: flex;
  gap: 18px;
  padding: 0 16px 10px;
  overflow-x: auto;
  font-size: 0.85rem;
}
.hdr-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.hdr-nav a:hover { color: var(--brand-dark); }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}
@media (min-width: 1024px) {
  main, .breadcrumb { max-width: 960px; }
}

h1 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
}
h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px;
}
.lead { color: var(--text-soft); margin: 0 0 16px; }

/* --- Breadcrumb --- */
.breadcrumb {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 16px 0;
  font-size: 0.8rem;
}
.breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0;
}
.breadcrumb li { color: var(--text-faint); overflow-wrap: anywhere; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 4px; color: var(--text-faint); }
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-dark); }

/* --- Hero banner (home): 검색 통합형 (프리미엄 딥로즈) --- */
.hero {
  position: relative;
  background: var(--brand-grad);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin: 0 -16px 22px;
  padding: 52px 16px 52px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
}
/* 광원 + 미세 도트 질감으로 깊이감(파스텔 탈피) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 85% at 82% -15%, rgba(232, 180, 150, 0.30), transparent 55%),
    radial-gradient(50% 80% at 8% 115%, rgba(201, 162, 75, 0.18), transparent 60%),
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: auto, auto, 18px 18px;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 680px; margin: 0 auto; }
/* 상단 로즈골드 얇은 라벨 */
.hero-inner::before {
  content: "MASSAGE PASS";
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 12px;
}
.hero h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.hero-sub {
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 20px;
  font-size: 0.97rem;
}
.hero-search {
  display: flex;
  gap: 0;
  max-width: 560px;
  margin: 0 auto 14px;
  background: #fff;
  border-radius: 999px;
  padding: 5px;
  box-shadow: var(--shadow-card);
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 8px 10px 18px;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
}
.hero-search button {
  flex: none;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 22px;
  border-radius: 999px;
  cursor: pointer;
}
.hero-search button:hover { background: var(--brand-dark); }
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .12s;
}
.hero-chip:hover { background: rgba(255, 255, 255, 0.3); }

/* --- 출장 마사지 강조 배너 --- */
.hc-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin: 0 0 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 0%, var(--brand-tint) 100%);
  border: 1px solid var(--brand-tint-strong);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: transform .12s, box-shadow .12s;
}
.hc-banner:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(80,40,55,0.14); }
.hc-banner-label {
  flex: none;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: var(--brand);
  padding: 6px 12px;
  border-radius: 999px;
}
.hc-banner-title { font-weight: 700; font-size: 1rem; }
.hc-banner-cta { margin-left: auto; font-weight: 700; font-size: 0.88rem; color: var(--brand-dark); }

/* --- 섹션 헤더 (브랜드 강조 바 + 더보기) --- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 26px 0 12px;
}
.section-head h2 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-deep);
  padding-left: 13px;
  border-left: 4px solid;
  border-image: linear-gradient(180deg, var(--brand), var(--gold)) 1;
  line-height: 1.2;
}
.section-more {
  flex: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
}
.section-more:hover { color: var(--brand-dark); }
/* 섹션 헤더가 있으면 중복 h2 상단 여백 제거 */
#ranking .section-head, #categories .section-head { margin-top: 0; }

/* --- 홈 2단 레이아웃 (데스크톱) --- */
.home-cols { display: block; }
.home-side .region-section .section-head,
.home-side .home-price .section-head { margin-top: 22px; }
@media (min-width: 1024px) {
  .home-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
  }
  .home-side .region-section .section-head:first-child { margin-top: 0; }
}

/* --- 순위 지역 탭 (기존 CSS 누락분 보강) --- */
.ranking-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 6px;
}
.ranking-tab {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .1s, border-color .1s, color .1s;
}
.ranking-tab:hover { border-color: var(--brand); color: var(--brand-dark); }
.ranking-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* --- Category icon grid (home) --- */
.category-grid ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
}
.category-grid li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  text-align: center;
  box-shadow: var(--shadow);
}
.category-grid li a:hover { border-color: var(--brand); color: var(--brand-dark); }
.category-grid li a svg {
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 999px;
  padding: 8px;
  width: 24px;
  height: 24px;
  box-sizing: content-box;
}
.category-grid li a span { font-size: 0.8rem; font-weight: 600; }
@media (min-width: 600px) {
  .category-grid ul { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .category-grid ul { grid-template-columns: repeat(6, 1fr); }
}

/* --- Price table --- */
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 12px 0 8px;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 0 0 8px;
}
.price-table th, .price-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table th { font-weight: 600; color: var(--text); width: 40%; background: var(--brand-tint); }
.price-table td { color: var(--text-soft); }

/* --- Region grid (home / gu list) --- */
.region-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.region-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
/* 홈 사이드바 안에서는 더 촘촘하게(2열, 작은 카드) */
.home-side .region-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.home-side .region-card a { padding: 10px 12px; }
.home-side .region-name { font-size: 0.9rem; }
.home-side .region-count { font-size: 0.74rem; }
.home-side .home-price { margin-top: 4px; }
.region-card a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: border-color .12s, transform .12s;
}
.region-card a:hover { border-color: var(--brand); transform: translateY(-1px); }
.region-name { font-weight: 700; font-size: 1.02rem; }
.region-count { font-size: 0.8rem; color: var(--text-faint); }
/* gu list (구 링크) reuse region-card look via region-list li>a fallback */
.region-list li > a:not([class]) {
  display: block; padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text);
}
.region-list li > a:not([class]):hover { border-color: var(--brand); }

/* --- 검색 결과 카드 썸네일 (업종색 CSS 그라데이션, branding.py 팔레트와 동일 톤) --- */
.thumb-cat {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--brand-grad);
}
.thumb-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 80% 15%, rgba(255,255,255,0.16), transparent 60%),
    radial-gradient(35% 55% at 15% 90%, rgba(255,255,255,0.10), transparent 60%);
}
.thumb-cat-label {
  position: relative;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.thumb-cat[data-cat="china"]      { background: linear-gradient(135deg,#c85f7c,#9c3f5e); }
.thumb-cat[data-cat="thai"]       { background: linear-gradient(135deg,#d16a86,#a8425f); }
.thumb-cat[data-cat="swedish"]    { background: linear-gradient(135deg,#b85c86,#7e3a63); }
.thumb-cat[data-cat="gyeongrak"]  { background: linear-gradient(135deg,#c96b72,#9c4450); }
.thumb-cat[data-cat="gyeonghyeol"]{ background: linear-gradient(135deg,#bd5f7f,#8f3d63); }
.thumb-cat[data-cat="aroma"]      { background: linear-gradient(135deg,#c76b8e,#8f4a6e); }
.thumb-cat[data-cat="sports"]     { background: linear-gradient(135deg,#cf6579,#a03f55); }
.thumb-cat[data-cat="women"]      { background: linear-gradient(135deg,#d072a0,#9c477a); }
.thumb-cat[data-cat="korean"]     { background: linear-gradient(135deg,#cc6274,#9e4150); }
.thumb-cat[data-cat="vietnam"]    { background: linear-gradient(135deg,#c86d94,#94476f); }
.thumb-cat[data-cat="oneshop"]    { background: linear-gradient(135deg,#c15f83,#8c3d63); }
.thumb-cat[data-cat="homecare"]   { background: linear-gradient(135deg,#d0688a,#a4436a); }

/* --- Shop cards (검색·지역 결과 그리드) --- */
.shop-list {
  list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.shop-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .12s;
}
.shop-card:hover { border-color: var(--brand); }
.shop-card a { display: flex; flex-direction: column; padding: 0; color: inherit; text-decoration: none; }
.shop-card-thumb { line-height: 0; }
.shop-card-thumb .brand-thumb { width: 100%; height: auto; display: block; }
.shop-card-body { padding: 12px 14px; }

/* --- 레퍼런스급 매장 배너(배경 SVG + HTML 텍스트 오버레이) --- */
.shopbanner {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  line-height: 1.3;
}
.shopbanner .brand-shopbg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
/* 실사 이미지(image_url 있는 매장) + 하단 스크림으로 텍스트 가독성 */
.shopbanner .sb-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.shopbanner:has(.sb-photo)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.5));
}
/* 검색 결과 배너: CSS 그라데이션 배경(.thumb-cat) + 하단 스크림 */
.shopbanner.thumb-cat { aspect-ratio: 4 / 3; }
.shopbanner .thumb-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.42));
}
.sb-flag, .sb-cat, .sb-region, .sb-name { position: absolute; z-index: 1; color: #fff; }
.sb-flag {
  top: 12px; left: 12px;
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,0.34);
}
.sb-cat {
  top: 12px; right: 12px;
  font-size: 0.74rem; font-weight: 800;
  color: var(--brand-dark);
  padding: 4px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.92);
}
.sb-region {
  left: 16px; bottom: 46px;
  font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.94);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.sb-name {
  left: 16px; right: 16px; bottom: 16px;
  font-size: 1.32rem; font-weight: 800; letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shop-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.shop-card h3 { margin: 0; font-size: 1.02rem; font-weight: 700; }
.shop-loc { margin: 6px 0 0; font-size: 0.83rem; color: var(--text-faint); }
.badge {
  flex: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-tint);
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

/* --- Shop detail --- */
.shop-info {
  margin: 16px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 16px;
}
.shop-info dt { font-weight: 600; margin-top: 12px; font-size: 0.8rem; color: var(--text-faint); }
.shop-info dd { margin: 2px 0 12px; }

.shop-card-detail {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 0 0 18px;
  margin: 0 auto 16px;
  max-width: 720px;
  overflow: hidden;
}
.shop-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 20px 22px;
  color: #fff;
  background: var(--brand-grad);
  text-align: center;
}
.shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 80% at 84% -10%, rgba(255,255,255,0.26), transparent 60%),
    radial-gradient(45% 70% at 10% 115%, rgba(255,255,255,0.15), transparent 60%);
  pointer-events: none;
}
.shop-hero .brand-thumb, .shop-hero .brand-banner, .shop-hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}
.shop-hero-photo { object-fit: cover; }
/* 배경 위 어두운 스크림으로 텍스트 가독성 확보 */
.shop-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(61,20,32,0.15), rgba(61,20,32,0.45));
  pointer-events: none;
}
.shop-hero-inner { position: relative; z-index: 1; }
.shop-hero-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  margin-bottom: 10px;
}
.shop-hero-icon svg { width: 30px; height: 30px; color: #fff; }
.region-hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); margin: 0 0 18px; min-height: 120px;
  display: flex; align-items: center;
}
.region-hero .brand-banner { position: absolute; inset: 0; width: 100%; height: 100%; }
.region-hero-inner { position: relative; z-index: 1; padding: 22px 20px; color: #fff; }
.region-hero-inner h1 { color: #fff; margin: 0 0 6px; }
.region-hero-inner p { color: rgba(255,255,255,0.92); margin: 0; font-size: 0.92rem; }
.shop-card-detail h1 {
  position: relative;
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.shop-badges {
  position: relative;
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge-on-hero {
  color: #fff !important;
  background: rgba(255,255,255,0.2) !important;
  border: 1px solid rgba(255,255,255,0.3);
}
.shop-region { font-size: 0.83rem; color: rgba(255,255,255,0.9); }
/* 신뢰 뱃지(사실 기반: 전화예약·요금안내·방문상담) */
.shop-trust {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.shop-trust li {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
}
.shop-actions {
  display: flex;
  gap: 10px;
  margin: 16px 16px 0;
}
.shop-call, #favorite-btn {
  flex: 1;
  text-align: center;
  padding: 13px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  cursor: pointer;
}
.shop-call {
  background: var(--brand);
  color: var(--surface);
  border-color: var(--brand);
  text-decoration: none;
}
.shop-call:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
#favorite-btn {
  background: var(--surface);
  color: var(--brand-dark);
}
.shop-card-detail .shop-info,
.shop-card-detail .price-table {
  margin-left: 16px;
  margin-right: 16px;
  width: auto;
}
.shop-card-detail #shop-dynamic,
.shop-card-detail #shop-reviews {
  margin-left: 16px;
  margin-right: 16px;
}

/* 매장상세 리치 섹션: 업체소개/코스안내/이용안내/FAQ/주변매장 */
.shop-card-detail .shop-intro,
.shop-card-detail .shop-courses,
.shop-card-detail .shop-usage,
.shop-card-detail .shop-faq,
.shop-card-detail .trust-block,
.shop-card-detail .shop-nearby {
  margin: 16px 16px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.shop-card-detail .trust-block .section-head { margin-top: 0; }

/* --- 이용 절차 + 안심 안내 (정직한 신뢰 요소) --- */
.trust-block { margin: 0 0 16px; }
.trust-steps {
  list-style: none; margin: 0 0 14px; padding: 0;
  display: grid; gap: 10px; grid-template-columns: 1fr;
}
@media (min-width: 560px) { .trust-steps { grid-template-columns: 1fr 1fr; } }
.trust-step {
  position: relative;
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 14px 12px 46px;
  background: var(--brand-tint);
  border-radius: var(--radius-sm);
}
.trust-num {
  position: absolute; left: 12px; top: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 0.8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.trust-step-title { font-weight: 800; font-size: 0.92rem; color: var(--brand-deep); }
.trust-step-desc { font-size: 0.82rem; color: var(--text-soft); line-height: 1.5; }
.trust-notes {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 8px;
}
.trust-notes li {
  position: relative; padding-left: 26px;
  font-size: 0.88rem; color: var(--text);
}
.trust-notes li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-tint-strong);
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem;
}
/* 섹션 헤더는 홈과 동일한 .section-head(브랜드 바) 사용 — 상단 여백만 제거 */
.shop-card-detail .section-head,
.shop-card-detail #shop-reviews .section-head { margin-top: 0; }
.intro-text { margin: 0; color: var(--text-soft); line-height: 1.7; }

.shop-courses .price-table { margin: 0 0 12px; }
.course-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.course-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  background: var(--brand-tint);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
}
.course-name { font-weight: 700; color: var(--brand-dark); font-size: 0.94rem; }
.course-desc { color: var(--text-soft); font-size: 0.86rem; line-height: 1.6; }

.usage-list { margin: 0; display: grid; gap: 10px; }
.usage-list dt {
  font-weight: 700; font-size: 0.82rem; color: var(--brand-dark);
  margin: 0; padding-left: 10px; border-left: 3px solid var(--brand-tint-strong);
}
.usage-list dd { margin: 3px 0 0; color: var(--text-soft); font-size: 0.9rem; line-height: 1.6; }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q. "; color: var(--brand-dark); }
.faq-item summary::after { content: " +"; color: var(--text-faint); }
.faq-item[open] summary::after { content: " –"; }
.faq-item p { margin: 8px 0 0; color: var(--text-soft); }

.nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.nearby-list li a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.nearby-list li a:hover { border-color: var(--brand); }
.nb-name { font-weight: 600; color: var(--text); font-size: 0.88rem; }
.nb-cat { align-self: flex-start; }

/* related links (구→업종/동, 인접) */
.type-list, .dong-list, .chip-list {
  list-style: none; padding: 0; margin: 8px 0 4px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.type-list li a, .dong-list li a, .chip-list li a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  text-decoration: none;
  transition: border-color .12s, color .12s, background .12s;
}
.type-list li a:hover, .dong-list li a:hover, .chip-list li a:hover {
  border-color: var(--brand); color: var(--brand-dark); background: var(--brand-tint);
}
/* 지역 선택 카드(매장수 뱃지) */
.region-pick .region-card a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  flex-direction: row;
}
.region-pick .region-count {
  flex: none; font-size: 0.74rem; font-weight: 600;
  color: var(--brand-dark); background: var(--brand-tint);
  padding: 3px 9px; border-radius: 999px;
}

/* 출장 마사지 지역 랜딩(/{...}/homecare/) + 전국 허브(/homecare/) */
.hc-landing {
  display: block;
  max-width: 720px;
  margin: 0 auto 16px;
}

/* 출장 랜딩 히어로 배너 */
.hc-hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-grad);
  border-radius: var(--radius-lg);
  padding: 30px 20px 26px;
  margin: 0 0 18px;
  text-align: center;
  color: #fff;
}
.hc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 80% at 82% -10%, rgba(255,255,255,0.28), transparent 60%),
    radial-gradient(45% 70% at 12% 115%, rgba(255,255,255,0.16), transparent 60%);
  pointer-events: none;
}
.hc-hero-inner { position: relative; }
.hc-hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  margin-bottom: 10px;
}
.hc-hero h1 { color: #fff; font-size: 1.5rem; margin: 0 0 14px; letter-spacing: -0.02em; overflow-wrap: anywhere; }

.hc-actions {
  display: flex;
  margin: 0;
}
.hc-actions-bottom { margin: 20px 0 0; }
.hc-cta {
  flex: 1;
  text-align: center;
  padding: 15px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--brand-dark);
  background: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}
.hc-cta:hover { background: var(--brand-tint); }
.hc-actions-bottom .hc-cta {
  color: #fff;
  background: var(--brand);
}
.hc-actions-bottom .hc-cta:hover { background: var(--brand-dark); }
.hc-cta-soon {
  background: rgba(255,255,255,0.85);
  color: var(--text-faint);
  cursor: default;
  box-shadow: none;
}
/* 신뢰 뱃지(사실 기반) */
.hc-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.hc-badges li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
}

.hc-intro, .hc-courses, .hc-usage, .hc-faq, .hc-sub {
  margin: 0 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px;
}
/* 섹션 헤더는 홈과 동일한 .section-head(브랜드 바) 사용 — 상단 여백만 축소 */
.hc-intro .section-head, .hc-courses .section-head, .hc-usage .section-head,
.hc-faq .section-head, .hc-sub .section-head { margin-top: 0; }
.hc-intro p { margin: 0; color: var(--text-soft); line-height: 1.7; }
.hc-price .price-table { margin: 0; }

/* 출장 코스 선택 — 여러 옵션 카드 그리드(대표님 실제 서비스 코스) */
.hc-course-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .hc-course-grid { grid-template-columns: 1fr 1fr; } }
.hc-course-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 0%, var(--brand-tint) 160%);
  box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
.hc-course-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.hc-course-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hc-course-name { font-weight: 800; font-size: 1.02rem; color: var(--brand-deep); }
.hc-course-tag {
  flex: none; font-size: 0.72rem; font-weight: 700; color: #fff;
  background: var(--brand); padding: 3px 10px; border-radius: 999px;
}
.hc-course-desc { margin: 0; font-size: 0.88rem; color: var(--text-soft); line-height: 1.55; flex: 1; }
.hc-course-cta {
  align-self: flex-start;
  font-size: 0.82rem; font-weight: 700; color: var(--brand-dark);
}
.hc-course-cta::before { content: "📞 "; }

.hc-sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.hc-sub-list li a {
  display: block;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.88rem;
}
.hc-sub-list li a:hover { border-color: var(--brand); color: var(--brand-dark); }

@media (min-width: 600px) {
  .hc-sub-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .hc-sub-list { grid-template-columns: repeat(4, 1fr); }
}

/* --- 다단 푸터 --- */
.site-footer {
  margin-top: 40px;
  background: #2b2226;
  color: rgba(255, 255, 255, 0.72);
}
.foot-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 16px 32px;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
.foot-col h3 { color: #fff; font-size: 0.92rem; margin: 0 0 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-col a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 0.86rem; }
.foot-col a:hover { color: #fff; }
.foot-name { display: block; color: #fff; font-weight: 800; font-size: 1rem; margin-bottom: 6px; }
.foot-note { font-size: 0.78rem; line-height: 1.6; margin: 0; color: rgba(255, 255, 255, 0.55); }
@media (min-width: 640px) {
  .foot-inner { grid-template-columns: 1fr 1fr 2fr; }
}

/* --- AI recommend (natural-language) --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.ai-recommend {
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-strong);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0 20px;
}
.ai-recommend-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.ai-hint { margin: 8px 0 0; font-size: 0.8rem; color: var(--text-soft); }

/* --- Natural-language search --- */
.nl-search {
  display: flex; gap: 8px; margin: 0;
}
.nl-search input {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid var(--brand-tint-strong);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--surface);
}
.nl-search input:focus { outline: none; border-color: var(--brand); }
.nl-search button {
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.nl-search button:hover { background: var(--brand-dark); }
.nl-feedback { font-size: 0.85rem; margin: 4px 0 12px; min-height: 0; }
.nl-feedback .applied { color: var(--brand-dark); }
.nl-feedback .ignored, .nl-feedback .ambiguous { color: var(--text-faint); }

/* --- Search / filter page --- */
.search-hooks { display: flex; gap: 8px; margin: 12px 0; }
.search-hooks button {
  flex: 1; padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-faint);
  font-size: 0.88rem;
  cursor: not-allowed;
}

.search-filters { display: grid; gap: 18px; margin: 18px 0; }
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-group > span, .filter-group > label {
  font-size: 0.82rem; font-weight: 700; color: var(--text-soft);
}
#filter-region { flex-direction: row; flex-wrap: wrap; gap: 8px; }
#filter-region select {
  flex: 1; min-width: 92px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--surface);
}
#category-options, #price-options { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: background .1s, border-color .1s, color .1s;
}
.chip:hover { border-color: var(--brand); }
.chip:has(input:checked) {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand-dark);
  font-weight: 600;
}
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }

.result-count { font-size: 0.9rem; font-weight: 600; color: var(--text); margin: 16px 0 6px; }
.empty-state {
  padding: 32px 16px; text-align: center; color: var(--text-faint); font-size: 0.9rem;
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius);
}

@media (min-width: 640px) {
  .search-filters { grid-template-columns: 1fr 1fr; }
  #filter-region { grid-column: 1 / -1; }
}

.post-body { white-space: pre-wrap; }

/* --- Ranking cards (순위 카드) --- */
.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  /* API 응답 전 공간 예약(레이아웃 시프트 방지). 순위는 ranking.js가 채움. */
  min-height: 280px;
}
@media (max-width: 479px) {
  .ranking-list { grid-template-columns: 1fr; }
}
.rank-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px 12px 12px;
  transition: transform .12s;
}
.rank-card:hover { transform: translateY(-2px); }
.rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--surface);
  font-size: 0.82rem;
  font-weight: 800;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(80,40,55,0.25);
}
/* 1·2·3위 금·은·동 강조 (실데이터 순위) */
.rank-card:nth-child(1) .rank-badge {
  background: linear-gradient(135deg, #f6c454, #e0a021);
  color: #5a3d00;
}
.rank-card:nth-child(2) .rank-badge {
  background: linear-gradient(135deg, #d7dde3, #aeb7c0);
  color: #3a3f45;
}
.rank-card:nth-child(3) .rank-badge {
  background: linear-gradient(135deg, #e2a878, #c07f4a);
  color: #4a2c12;
}
.rank-card:nth-child(-n+3) { box-shadow: 0 6px 18px rgba(80,40,55,0.14); }
.rank-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  border-radius: var(--radius);
  background: var(--brand-grad);
  margin-bottom: 10px;
}
.rank-thumb-cat {
  color: var(--surface);
  font-size: 0.9rem;
  font-weight: 700;
}
.rank-name {
  display: block;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
  min-width: 0;
}
.rank-meta {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
  margin-top: 2px;
}
.rank-stat {
  display: block;
  color: var(--brand-dark);
  font-size: 0.78rem;
  margin-top: 4px;
}

@media (min-width: 640px) {
  .ranking-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .ranking-list { grid-template-columns: repeat(4, 1fr); }
  /* 홈 좌측 메인 컬럼 안에서는 좁으므로 2열로 밀도 유지 */
  .home-main .ranking-list { grid-template-columns: repeat(2, 1fr); }
}

/* --- Responsive: tablet (~1024px) --- */
@media (max-width: 1024px) {
  .shop-card-detail { max-width: 100%; }
}

/* --- Responsive: mobile (~768px) --- */
@media (max-width: 768px) {
  .hdr-inner {
    padding: 10px 12px;
  }
  .hdr-search {
    order: 3;
    flex-basis: 100%;
  }
  .hdr-actions {
    order: 2;
    margin-left: auto;
  }
  .hdr-nav {
    gap: 14px;
    padding: 0 12px 8px;
  }
  .hero {
    margin: 0 -16px 16px;
    padding: 24px 16px;
  }
  .hero h1 { font-size: 1.25rem; }
  .hero-sub { font-size: 0.88rem; margin: 0 0 14px; }
  .hero-cta { padding: 10px 20px; font-size: 0.9rem; }
  .category-grid ul { grid-template-columns: repeat(3, 1fr); }
  .shop-card-detail {
    border-radius: var(--radius);
    margin: 0 -16px 16px;
    max-width: none;
  }
}

/* 홈 커뮤니티 피드 */
.feed-cols { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .feed-cols { grid-template-columns: 1fr 1fr; } }
.feed-col h3 { font-size: 0.98rem; margin: 0 0 8px; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.feed-item {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  padding: 10px 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); text-decoration: none; color: var(--text);
}
.feed-item:hover { border-color: var(--brand); }
.feed-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-meta { flex: none; color: var(--text-faint); font-size: 0.78rem; }

/* 커뮤니티 허브 미리보기 카드 */
.board-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .board-cards { grid-template-columns: 1fr 1fr; } }
.board-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.board-card-thumb { line-height: 0; }
.board-card-thumb .brand-banner { width: 100%; height: 84px; display: block; }
.board-card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; }
.board-card .board-preview { padding: 0 16px 14px; }
.board-card-head h2 { margin: 0; font-size: 1.02rem; border: 0; padding: 0; }
.board-preview { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.board-preview a { color: var(--text); text-decoration: none; font-size: 0.9rem; }
.board-preview a:hover { color: var(--brand-dark); }
.board-empty { color: var(--text-faint); font-size: 0.85rem; }

/* 게시판 테이블 */
.post-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-table th { text-align: left; background: var(--brand-tint); color: var(--text); font-weight: 700; padding: 10px 12px; font-size: 0.82rem; }
.post-table td { padding: 11px 12px; border-top: 1px solid var(--line); }
.post-table .col-title a { color: var(--text); text-decoration: none; font-weight: 600; }
.post-table .col-title a:hover { color: var(--brand-dark); }
.post-table .col-author, .post-table .col-date, .post-table .col-comment { color: var(--text-soft); white-space: nowrap; }
.post-table .col-comment { text-align: center; }
@media (max-width: 560px) {
  .post-table thead { display: none; }
  .post-table, .post-table tbody, .post-table tr, .post-table td { display: block; width: auto; }
  .post-table tr { border-top: 1px solid var(--line); padding: 8px 12px; }
  .post-table td { border: 0; padding: 2px 0; }
  .post-table .col-title a { font-size: 0.95rem; }
  .post-table .col-author, .post-table .col-date, .post-table .col-comment { display: inline; font-size: 0.78rem; color: var(--text-faint); }
  .post-table .col-author::after { content: " · "; }
  .post-table .col-date::after { content: " · 댓글 "; }
}

/* 글 상세 카드 */
.post-article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 20px; max-width: 720px; }
.post-article h1 { margin: 0 0 6px; font-size: 1.3rem; }
.post-nav { display: flex; gap: 10px; margin-top: 20px; }
.btn-primary, .btn-secondary { padding: 9px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--surface); color: var(--brand-dark); border: 1px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--brand); }

/* Belt-and-suspenders only (not the primary fix — see min-width:0 /
   overflow-wrap rules above for the root-cause fix): guard the page's
   main content column against any remaining min-content-width child. */
main {
  overflow-x: hidden;
}
