:root {
  --ink: #292322;
  --muted: #736a67;
  --line: #e9e1dc;
  --paper: #fffdfb;
  --blush: #fbf3ef;
  --rose: #b74d5e;
  --rose-dark: #913647;
  --sage: #3c786a;
  --shadow: 0 12px 32px rgba(63, 40, 35, .08);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { display: inline-flex; gap: 7px; align-items: center; margin: 0 0 10px; color: var(--rose); font-weight: 800; font-size: 13px; letter-spacing: -.02em; }
.eyebrow:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.055em; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(41,35,34,.08); background: rgba(255,253,251,.9); backdrop-filter: blur(14px); }
.header-inner { display: flex; height: 68px; align-items: center; justify-content: space-between; gap: 22px; }
.brand { font-size: 19px; font-weight: 900; letter-spacing: -.07em; }
.brand span { color: var(--rose); }
.desktop-nav { display: flex; gap: 23px; color: #514a47; font-size: 14px; font-weight: 700; }
.header-action, .cta { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: var(--rose); color: #fff; padding: 0 17px; font-weight: 800; cursor: pointer; }
.header-action { min-height: 38px; font-size: 13px; }
.header-action:hover, .cta:hover { background: var(--rose-dark); }

.hero { padding: 78px 0 38px; background: radial-gradient(circle at 88% 15%, #f5dfe3 0, transparent 26%), linear-gradient(135deg, #fffaf7, #f8eee8); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); align-items: center; gap: 52px; }
.hero h1 { max-width: 660px; margin-bottom: 17px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(38px, 5vw, 62px); line-height: 1.13; }
.hero h1 em { color: var(--rose); font-style: normal; }
.hero-copy { max-width: 520px; margin-bottom: 26px; color: var(--muted); font-size: 17px; word-break: keep-all; }
.quick-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; max-width: 520px; padding: 7px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.quick-search input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0 13px; color: var(--ink); font: inherit; }
.quick-search button { border: 0; border-radius: 10px; padding: 12px 15px; background: var(--ink); color: #fff; font-weight: 800; }
.hero-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); box-shadow: var(--shadow); }
.hero-stat div { padding: 22px 16px; background: #fffdfb; text-align: center; }
.hero-stat strong { display: block; color: var(--rose); font-size: 24px; letter-spacing: -.06em; }
.hero-stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

.section { padding: 72px 0; }
.section.alt { background: var(--blush); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-head h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.text-link { color: var(--rose); font-size: 14px; font-weight: 800; }
.chip-row { display: flex; gap: 8px; overflow: auto; margin: 0 0 28px; padding-bottom: 3px; scrollbar-width: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: #fff; color: #5e5652; font-size: 14px; font-weight: 700; }
.chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.expo-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 12px rgba(63,40,35,.03); }
.expo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); transition: .2s ease; }
.banner { position: relative; display: flex; min-height: 184px; align-items: end; padding: 18px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #403433, #b74d5e); }
.banner > * { position: relative; z-index: 1; }
.banner--ivory { background: linear-gradient(135deg, #d5b36a, #f5e6ba 45%, #8f453e); }
.banner--blue { background: linear-gradient(135deg, #183c5a, #6aa2b8 55%, #d9a9a2); }
.card-body { padding: 18px; }
.badges { display: flex; gap: 6px; margin-bottom: 10px; }
.badge { border-radius: 999px; padding: 4px 7px; background: #e8f3ee; color: var(--sage); font-size: 11px; font-weight: 800; }
.badge.urgent { background: #fff0ed; color: #c35545; }
.expo-card h3 { min-height: 48px; margin-bottom: 11px; font-size: 18px; line-height: 1.35; letter-spacing: -.045em; word-break: keep-all; }
.date-row { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; }
.date-row strong { font-size: 17px; letter-spacing: -.045em; }
.date-row span, .place { color: var(--muted); font-size: 13px; }
.place { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; border-top: 1px solid var(--line); padding-top: 14px; color: var(--rose); font-size: 14px; font-weight: 900; }

.two-col { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; }
.calendar-list { display: grid; gap: 12px; }
.calendar-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; }
.calendar-day { color: var(--rose); font-size: 20px; font-weight: 900; text-align: center; }
.calendar-day span { display: block; color: var(--muted); font-size: 11px; }
.calendar-item h3 { margin: 0 0 5px; font-size: 16px; }
.calendar-item p { margin: 0; color: var(--muted); font-size: 13px; }
.mini-cta { border: 1px solid #e3c2c8; border-radius: 10px; padding: 9px 11px; color: var(--rose); font-size: 12px; font-weight: 900; }
.region-panel { border-radius: var(--radius); padding: 30px; background: var(--ink); color: #fff; }
.region-panel h3 { margin-bottom: 11px; font-size: 24px; letter-spacing: -.05em; }
.region-panel p { color: rgba(255,255,255,.72); font-size: 14px; }
.region-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.region-links a { border: 1px solid rgba(255,255,255,.25); border-radius: 99px; padding: 8px 11px; font-size: 13px; }

.detail-hero { padding: 48px 0 24px; background: var(--blush); }
.breadcrumb { margin-bottom: 17px; color: var(--muted); font-size: 13px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 34px; align-items: start; }
.detail-title h1 { margin-bottom: 14px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(32px, 5vw, 52px); line-height: 1.16; }
.detail-title p { color: var(--muted); }
.detail-banner { min-height: 250px; border-radius: var(--radius); background-position: center; background-size: cover; box-shadow: var(--shadow); }
.detail-side { position: sticky; top: 88px; }
.detail-side .info-card { position: static; top: auto; }
.info-card { position: sticky; top: 88px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; box-shadow: var(--shadow); }
.info-card dl { display: grid; grid-template-columns: 70px 1fr; gap: 14px 10px; margin: 0 0 23px; }
.info-card dt { color: var(--muted); font-size: 13px; }
.info-card dd { margin: 0; font-size: 14px; font-weight: 700; word-break: keep-all; }
.info-card .cta { width: 100%; }
.notice { margin-top: 12px; color: var(--muted); font-size: 11px; text-align: center; }
.article { max-width: 720px; }
.article h2 { margin: 42px 0 15px; font-size: 25px; }
.article p { color: #5e5652; word-break: keep-all; }
.map-placeholder { min-height: 190px; border: 1px dashed #d8cbc3; border-radius: 16px; padding: 24px; background: #f8f2ee; color: var(--muted); }

.guide-hero { padding: 68px 0 48px; background: linear-gradient(135deg, #fffaf7, #f3e4df); text-align: center; }
.guide-hero h1 { max-width: 760px; margin: 0 auto 18px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(34px, 5vw, 56px); line-height: 1.18; }
.guide-hero p { margin: 0; color: var(--muted); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 730px) 270px; justify-content: space-between; gap: 40px; padding-top: 55px; }
.toc { position: sticky; top: 94px; border-left: 2px solid var(--line); padding-left: 18px; }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; margin: 9px 0; color: var(--muted); font-size: 14px; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 90px; background: #fff; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center; }
.footer-brand { color: var(--ink); font-weight: 900; }
.mobile-cta { display: none; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 560px); }
  .site-header { position: relative; }
  .header-inner { height: 60px; }
  .desktop-nav, .header-action { display: none; }
  .hero { padding: 48px 0 30px; }
  .hero-grid, .two-col, .detail-grid, .guide-layout { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 39px; }
  .hero-copy { font-size: 15px; }
  .hero-stat { order: -1; }
  .hero-stat div { padding: 15px 8px; }
  .hero-stat strong { font-size: 20px; }
  .section { padding: 48px 0; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 20px; }
  /* 모바일에서는 행사 포스터를 빠르게 비교할 수 있는 2열 그리드로 표시한다. */
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .expo-card { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; }
  .banner { min-height: 0; padding: 0; }
  .card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 12px; }
  .expo-card h3 {
    display: -webkit-box;
    min-height: 0;
    margin-bottom: 7px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .badges { margin-bottom: 7px; }
  .date-row { margin-bottom: 5px; }
  .date-row strong { font-size: 14px; }
  .place { font-size: 12px; }
  .card-cta { margin-top: auto; padding-top: 10px; font-size: 13px; }
  .calendar-item { grid-template-columns: 55px 1fr; gap: 10px; }
  .calendar-item .mini-cta { display: none; }
  .calendar-day { font-size: 16px; }
  .detail-hero { padding-top: 35px; }
  .detail-title h1 { font-size: 35px; }
  .detail-banner { min-height: 190px; }
  .info-card { position: static; }
  /* 모바일은 1열로 쌓인다. 신청 카드(개최일·지역·신청 버튼·공유)를 먼저 보여주고
     길찾기·비교·다른 일정은 그 뒤에 둔다 — 결정에 필요한 것이 위로 온다. */
  .detail-grid .detail-side { order: -1; }
  .detail-side { position: static; }
  .guide-hero { padding: 48px 0 34px; text-align: left; }
  .guide-hero h1 { margin-left: 0; font-size: 37px; }
  .toc { display: none; }
  .mobile-cta { position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 30; display: flex; min-height: 54px; align-items: center; justify-content: center; border-radius: 14px; background: var(--rose); box-shadow: 0 12px 30px rgba(145,54,71,.35); color: #fff; font-weight: 900; }
  .site-footer { padding-bottom: 100px; }
  .footer-inner { gap: 5px; }
}

/* 광고주 포스터는 세로형과 정사각형이 많다.
   1:1 영역을 고정하고 contain으로 전체 문구가 보이게 한다.
   가로형 배너가 와도 카드 높이는 유지되며 남는 공간은 연한 배경색으로 처리한다. */
.card-thumb { min-height: 0; aspect-ratio: 1 / 1; background-color: #f3ebe7; }
.card-thumb img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: contain; display: block; }
.detail-banner { min-height: 0; aspect-ratio: 1 / 1; overflow: hidden; background-color: #f3ebe7; }
.detail-banner img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: contain; display: block; }

/* 모바일도 PC와 동일하게 정사각형 프레임 안에서 원본 포스터 전체를 보존한다.
   비율이 다른 포스터의 남는 공간은 공통 크림색으로만 처리한다. */
@media (max-width: 760px) {
  .card-thumb { aspect-ratio: 1 / 1; background: #f4f1ed; }
  .card-thumb img { z-index: 0; object-fit: contain; }
}

/* ── 같은 날·같은 지역 비교표 ── */
.scroll-x { overflow-x: auto; border: 1px solid var(--line, #e6e1e3); border-radius: 12px; }
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.compare th, table.compare td { padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line, #e6e1e3); }
table.compare th { background: rgba(0,0,0,.04); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
table.compare tr:last-child td { border-bottom: 0; }
table.compare .cmp-name { min-width: 200px; font-weight: 600; }
table.compare .cmp-name a { text-decoration: none; }
table.compare .cmp-name .badges { margin-top: 5px; }
table.compare .cmp-floor { font-weight: 700; white-space: nowrap; }
table.compare .na { opacity: .45; }
.cmp-cta { display: inline-block; padding: 7px 14px; border-radius: 8px; white-space: nowrap;
  background: var(--rose, #b74d5e); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 13px; }

/* ── 상세: 층·홀을 주소보다 크게 ── */
.place-card { border: 1px solid var(--line, #e6e1e3); border-radius: 12px; padding: 18px 20px; margin: 12px 0 26px; }
.place-floor { margin: 0 0 6px; font-size: 26px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.place-name { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.place-addr { margin: 0; font-size: 14px; opacity: .72; }
.place-ways { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.place-ways .way { display: inline-block; padding: 9px 14px; border-radius: 9px; font-size: 13.5px;
  font-weight: 600; text-decoration: none; border: 1px solid var(--line, #e6e1e3); }

/* ── 같은 날 비교 페이지로 보내는 링크 묶음 ── */
.cmp-block { margin: 26px 0 30px; border: 1px solid var(--line, #e6e1e3); border-radius: 16px;
  padding: 20px 22px; background: var(--blush, #fbf3ef); }
.cmp-block h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.35; }
.cmp-block .dim { margin: 0 0 14px; font-size: 14px; color: var(--muted, #736a67); }
.cmp-links { display: flex; flex-wrap: wrap; gap: 9px; }
.cmp-link { display: inline-block; padding: 10px 15px; border-radius: 999px;
  border: 1px solid var(--rose, #b74d5e); background: #fff; color: var(--rose, #b74d5e);
  font-size: 13.5px; font-weight: 700; text-decoration: none; }
.cmp-link:hover { background: var(--rose, #b74d5e); color: #fff; }

/* ── 소개·약관 본문 ── */
.legal h2 { margin: 30px 0 8px; font-size: 19px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--ink, #292322); }
.legal-contact { display: grid; grid-template-columns: 88px 1fr; gap: 8px 14px; margin: 0; font-size: 15px; }
.legal-contact dt { color: var(--muted, #736a67); }
.legal-contact dd { margin: 0; font-weight: 600; }

/* ── 사이트맵(사람이 보는 목차) ── */
.sitemap-list { list-style: none; margin: 0 0 26px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 18px; }
.sitemap-list li { display: flex; align-items: baseline; gap: 10px;
  border-bottom: 1px solid var(--line, #e6e1e3); padding: 9px 2px; font-size: 14.5px; }
.sitemap-list a { flex: 1; min-width: 0; text-decoration: none; color: var(--ink, #292322);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sitemap-list a:hover { color: var(--rose, #b74d5e); text-decoration: underline; }
.sitemap-list .n { flex: 0 0 auto; color: var(--muted, #736a67); font-size: 12.5px;
  font-variant-numeric: tabular-nums; }
.sitemap h2 { margin: 32px 0 10px; font-size: 18px; }
.sitemap h2:first-child { margin-top: 0; }
.legal-contact dd a { color: var(--rose, #b74d5e); }



/* ── 상세: 공유 버튼 ──
   신청 버튼 바로 아래에 둔다. 자바스크립트가 동작할 때만 보인다(hidden 해제) —
   죽은 버튼을 남기지 않기 위함. */
.share { display: flex; gap: 8px; margin-top: 12px; }
.share-btn { flex: 1; border: 1px solid var(--line, #e6e1e3); border-radius: 10px;
  padding: 11px 10px; background: #fff; color: var(--ink, #292322);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.share-btn:hover { border-color: var(--rose, #b74d5e); color: var(--rose, #b74d5e); }
.share-btn.primary { background: var(--blush, #fbf3ef); border-color: var(--rose, #b74d5e);
  color: var(--rose, #b74d5e); }
.share-btn.primary:hover { background: var(--rose, #b74d5e); color: #fff; }
.share-btn.ok { border-color: var(--sage, #3c786a); color: var(--sage, #3c786a); }

/* ── 푸터: 브랜드 → 저작권 → 링크 → 대가성 고지 순으로 가운데 정렬 ── */
.footer-brand { margin: 0; color: var(--ink, #292322); font-weight: 900; font-size: 15px; }
.copyright { margin: 2px 0 0; font-size: 12.5px; opacity: .8; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 16px; margin: 14px 0 12px; }
.footer-links a { color: var(--muted, #736a67); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--rose, #b74d5e); text-decoration: underline; }
/* 제휴 고지는 최하단. 법적 고지라 눈에 띄되 본문을 가리지 않게 한 단계 작게. */
.footer-disclosure { margin: 0; padding-top: 12px; border-top: 1px solid var(--line, #e9e1dc);
  width: 100%; max-width: 520px; font-size: 12.5px; opacity: .85; }

/* ── 한눈에 보기 (월×지역 페이지의 실측 요약) ── */
.facts { margin: 0 0 26px; border: 1px solid var(--line, #e6e1e3); border-radius: 16px;
  padding: 20px 22px; background: #fff; }
.facts h2 { margin: 0 0 12px; font-size: 17px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.facts li { font-size: 14.5px; color: var(--muted, #736a67); line-height: 1.55; }
.facts li strong { display: inline-block; min-width: 108px; color: var(--ink, #292322);
  font-weight: 700; }
.more { margin: 22px 0 0; }

/* ══════════════════ 가이드 ══════════════════ */

/* 목록 — 읽는 순서가 있는 글들이라 번호가 장식이 아니라 정보다 */
.guide-list { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g-card a { position: relative; display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line, #e9e1dc); border-radius: 18px; padding: 26px 26px 22px;
  background: #fff; text-decoration: none; overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.g-card a:hover { border-color: var(--rose, #b74d5e); transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(63,40,35,.09); }
.g-card a:before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--rose, #b74d5e); opacity: 0; transition: opacity .18s ease; }
.g-card a:hover:before { opacity: 1; }
.g-num { font-family: Georgia, "Times New Roman", serif; font-size: 13px;
  font-weight: 700; letter-spacing: .12em; color: var(--rose, #b74d5e);
  margin-bottom: 12px; }
.g-card strong { display: block; margin-bottom: 9px; color: var(--ink, #292322);
  font-size: 18.5px; line-height: 1.42; letter-spacing: -.02em; word-break: keep-all; }
.g-lead { color: var(--muted, #736a67); font-size: 14.5px; line-height: 1.65;
  word-break: keep-all; }
.g-tags { display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto; padding-top: 16px; }
.g-tags span { border-radius: 999px; padding: 5px 11px;
  background: var(--blush, #fbf3ef); color: var(--rose-dark, #913647);
  font-size: 12px; font-weight: 700; }
.g-card.feature { grid-column: 1 / -1; }
.g-card.feature a { background: linear-gradient(120deg, #fff 58%, var(--blush, #fbf3ef)); }
.g-card.feature strong { font-size: 24px; }
.g-card.feature .g-lead { max-width: 52ch; font-size: 15.5px; }

/* 본문 머리 */
.g-hero .g-kicker { margin: 0 0 10px; font-family: Georgia, serif; font-size: 13px;
  font-weight: 700; letter-spacing: .16em; color: var(--rose, #b74d5e); }

/* 넓은 화면에서는 목차를 옆에 붙여 둔다 */
.g-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px;
  align-items: start; }
.g-layout .toc-box { position: sticky; top: 92px; margin: 0;
  border-left: 2px solid var(--line, #e9e1dc); padding: 2px 0 2px 18px; }
.toc-box ol { margin: 10px 0 0; padding-left: 17px; display: grid; gap: 8px; }
.toc-box a { color: var(--muted, #736a67); font-size: 14px; text-decoration: none;
  line-height: 1.45; }
.toc-box a:hover { color: var(--rose, #b74d5e); text-decoration: underline; }

.guide-body { max-width: 68ch; }
.g-sec { margin-bottom: 42px; }
.g-sec:last-child { margin-bottom: 0; }
.guide-body h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px;
  font-size: 22px; line-height: 1.35; letter-spacing: -.02em; scroll-margin-top: 92px;
  word-break: keep-all; }
.g-secno { flex: 0 0 auto; font-family: Georgia, serif; font-size: 13px;
  font-weight: 700; color: var(--rose, #b74d5e); letter-spacing: .1em; }
.guide-body p { margin: 0 0 15px; font-size: 16.5px; line-height: 1.88;
  color: var(--ink, #292322); word-break: keep-all; }
.guide-body p:last-child { margin-bottom: 0; }

/* 목록 */
.g-ul, .g-check { list-style: none; margin: 0 0 18px; padding: 0;
  display: grid; gap: 10px; }
.g-ul li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.75;
  word-break: keep-all; }
.g-ul li:before { content: ""; position: absolute; left: 2px; top: 12px; width: 5px;
  height: 5px; border-radius: 50%; background: var(--rose, #b74d5e); }
.g-check li { position: relative; border: 1px solid var(--line, #e9e1dc);
  border-radius: 12px; padding: 13px 16px 13px 46px; background: #fff;
  font-size: 15.5px; line-height: 1.6; word-break: keep-all; }
.g-check li:before { content: ""; position: absolute; left: 16px; top: 14px;
  width: 16px; height: 16px; border: 2px solid var(--rose, #b74d5e); border-radius: 5px; }
.g-check li:after { content: ""; position: absolute; left: 21px; top: 18px; width: 5px;
  height: 9px; border: solid var(--rose, #b74d5e); border-width: 0 2px 2px 0;
  transform: rotate(45deg); }

/* 단계 — 순서가 실제로 의미 있을 때만 쓴다 */
.g-steps { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: step; }
.g-steps li { position: relative; counter-increment: step; padding: 0 0 20px 44px;
  border-left: 2px solid var(--line, #e9e1dc); margin-left: 13px; }
.g-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.g-steps li:before { content: counter(step); position: absolute; left: -14px; top: -2px;
  width: 27px; height: 27px; border-radius: 50%; background: var(--rose, #b74d5e);
  color: #fff; font-size: 13px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; }
.g-steps strong { display: block; margin-bottom: 5px; font-size: 16px;
  color: var(--ink, #292322); }
.g-steps span { color: var(--muted, #736a67); font-size: 15px; line-height: 1.72;
  word-break: keep-all; }

/* 표 */
table.g-table { width: 100%; border-collapse: collapse; font-size: 15px;
  min-width: 380px; }
table.g-table th, table.g-table td { padding: 13px 16px; text-align: left;
  vertical-align: top; border-bottom: 1px solid var(--line, #e9e1dc);
  line-height: 1.65; word-break: keep-all; }
table.g-table th { background: var(--blush, #fbf3ef); font-size: 13px; font-weight: 700;
  color: var(--rose-dark, #913647); white-space: nowrap; }
table.g-table td:first-child { font-weight: 700; }
table.g-table tr:last-child td { border-bottom: 0; }
.guide-body .scroll-x { margin: 0 0 18px; background: #fff; }

/* 짚고 넘어갈 것 / 잘못하면 손해 보는 것 */
.g-note, .g-warn { display: block; margin: 0 0 18px; border-radius: 14px;
  padding: 18px 20px 18px 22px; border-left: 4px solid; }
.g-note { background: #f1f6f4; border-left-color: var(--sage, #3c786a); }
.g-warn { background: var(--blush, #fbf3ef); border-left-color: var(--rose, #b74d5e); }
.g-note strong, .g-warn strong { display: block; margin-bottom: 6px; font-size: 15.5px; }
.g-note strong { color: #2b5b50; }
.g-warn strong { color: var(--rose-dark, #913647); }
.g-note span, .g-warn span { color: var(--ink, #292322); font-size: 15px;
  line-height: 1.78; word-break: keep-all; }

/* 이전 / 다음 글 */
.guide-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px; margin-top: 22px; }
.guide-nav a { display: block; border: 1px solid var(--line, #e9e1dc);
  border-radius: 14px; padding: 16px 20px; background: #fff; text-decoration: none; }
.guide-nav a:hover { border-color: var(--rose, #b74d5e); }
.guide-nav span { display: block; margin-bottom: 5px; color: var(--muted, #736a67);
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; }
.guide-nav strong { color: var(--ink, #292322); font-size: 15.5px; line-height: 1.45;
  word-break: keep-all; }
.guide-nav .g-next { text-align: right; }

@media (max-width: 900px) {
  .g-layout { grid-template-columns: 1fr; gap: 26px; }
  .g-layout .toc-box { position: static; }
  .g-card.feature strong { font-size: 20px; }
  .guide-body h2 { font-size: 20px; }
  .guide-body p { font-size: 16px; }
}

/* ══════════════════ 모바일 메뉴 ══════════════════
   details/summary 로 만든다 — 자바스크립트 없이 열리고 닫히며
   키보드와 스크린리더도 그대로 동작한다. */
.mnav { display: none; position: relative; margin-left: auto; }
/* 테두리 없이 아이콘만. 누를 수 있다는 건 눌렀을 때 배경으로 알린다 */
.mnav > summary { list-style: none; display: flex; align-items: center;
  justify-content: center; width: 42px; height: 42px; margin-right: -8px;
  border: 0; border-radius: 11px; background: transparent; cursor: pointer; }
.mnav > summary:active, .mnav[open] > summary { background: rgba(41,35,34,.06); }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary:focus-visible { outline: 2px solid var(--rose, #b74d5e);
  outline-offset: 2px; }
/* 아이콘 — 선 세 개라야 메뉴로 읽힌다(둘이면 '=' 기호로 보인다).
   대신 두께를 1.6px 로 얇게 하고 맨 아래를 짧게 잡아 기본형보다 정돈되게 했다.
   요소 자신이 가운데 선이고 :before 가 위, :after 가 아래다.
   열면 가운데가 사라지고 위아래가 X 로 접힌다. */
.mnav-bars { position: relative; display: block; width: 19px; height: 1.6px;
  border-radius: 2px; background: var(--ink, #292322);
  transition: background-color .18s ease; }
.mnav-bars:before, .mnav-bars:after { content: ""; position: absolute; right: 0;
  height: 1.6px; border-radius: 2px; background: var(--ink, #292322);
  transition: width .22s ease, transform .22s ease, top .22s ease; }
.mnav-bars:before { top: -6px; width: 19px; }
.mnav-bars:after { top: 6px; width: 13px; }
.mnav[open] .mnav-bars { background: transparent; }
.mnav[open] .mnav-bars:before { top: 0; width: 19px; transform: rotate(45deg); }
.mnav[open] .mnav-bars:after { top: 0; width: 19px; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .mnav-bars, .mnav-bars:before, .mnav-bars:after { transition: none; }
}

.mnav-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30;
  min-width: 208px; display: grid; gap: 2px; border: 1px solid var(--line, #e9e1dc);
  border-radius: 16px; padding: 10px; background: #fff;
  box-shadow: 0 18px 40px rgba(63,40,35,.14); }
.mnav-panel a { border-radius: 10px; padding: 12px 14px; color: var(--ink, #292322);
  font-size: 15px; font-weight: 700; text-decoration: none; }
.mnav-panel a:hover { background: var(--blush, #fbf3ef); color: var(--rose, #b74d5e); }
.mnav-panel .mnav-cta { margin-top: 6px; background: var(--rose, #b74d5e); color: #fff;
  text-align: center; }
.mnav-panel .mnav-cta:hover { background: var(--rose-dark, #913647); color: #fff; }

@media (max-width: 760px) {
  .mnav { display: block; }
  .header-inner { align-items: center; }
}
