/* 오타이산 — 공용 스타일
   빌드 도구 없이 이 파일 하나로 끝낸다. 수정 시 build.js 의 ?v= 쿼리를 올릴 것. */

:root {
  --red: #b8232f;
  --red-dark: #8d1a23;
  --ink: #1c1917;
  --ink-2: #44403c;
  --ink-3: #78716c;
  --line: #e7e2da;
  --bg: #fdfbf7;
  --paper: #ffffff;
  --warn-bg: #fdf6ec;
  --warn-line: #e6c88a;
  --max: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
               'Malgun Gothic', 'Noto Sans KR', sans-serif;
  font-size: 17px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--red); }

.ot-skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.ot-skip:focus { left: 8px; top: 8px; }

/* ── 헤더 ─────────────────────────────────────────── */
.ot-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.ot-header__inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 20px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px;
}
.ot-logo {
  font-size: 1.25rem; font-weight: 800; color: var(--red);
  text-decoration: none; letter-spacing: -0.02em; flex: none;
}
.ot-nav { flex: 1 1 auto; min-width: 0; }
.ot-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: flex-end;
}
.ot-nav__list a {
  color: var(--ink-2); text-decoration: none; font-size: 0.94rem; font-weight: 600;
}
.ot-nav__list a:hover { color: var(--red); }
.ot-nav__list a[aria-current="page"] {
  color: var(--red); border-bottom: 2px solid var(--red);
}

/* ── 본문 ─────────────────────────────────────────── */
.ot-main { max-width: var(--max); margin: 0 auto; padding: 0 20px 64px; }

.ot-crumb { font-size: 0.86rem; color: var(--ink-3); margin: 24px 0 4px; }
.ot-crumb a { color: var(--ink-3); }

.ot-article h1 {
  font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.35; margin: 24px 0 12px;
}
.ot-lead {
  font-size: 1.06rem; color: var(--ink-2); margin: 0 0 32px;
  padding-bottom: 24px; border-bottom: 2px solid var(--red);
}

.ot-body h2 {
  font-size: 1.32rem; font-weight: 800; letter-spacing: -0.02em;
  margin: 52px 0 16px; padding-left: 12px; border-left: 4px solid var(--red);
  line-height: 1.5;
}
.ot-body h3 { font-size: 1.1rem; font-weight: 700; margin: 32px 0 10px; }
.ot-body p { margin: 0 0 18px; }
.ot-body ul, .ot-body ol { margin: 0 0 18px; padding-left: 22px; }
.ot-body li { margin-bottom: 8px; }
.ot-body strong { font-weight: 700; }
.ot-body em { font-style: normal; background: linear-gradient(transparent 62%, #fde8ea 62%); }

/* 표 — 모바일에서 가로 스크롤 */
.ot-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 0.94rem; line-height: 1.6; background: var(--paper);
  display: block; overflow-x: auto; white-space: nowrap;
}
.ot-body th, .ot-body td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: middle; }
.ot-body th { background: #f7f3ec; font-weight: 700; }
.ot-body tbody tr:nth-child(even) { background: #fcfaf6; }

@media (min-width: 640px) {
  .ot-body table { display: table; white-space: normal; }
}

/* 콜아웃 */
.ot-callout {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--ink-3);
  border-radius: 4px; padding: 18px 20px; margin: 24px 0;
}
.ot-callout > :first-child { margin-top: 0; }
.ot-callout > :last-child { margin-bottom: 0; }
.ot-callout--warn { background: var(--warn-bg); border-color: var(--warn-line); border-left-color: #c9962c; }

/* ── FAQ ──────────────────────────────────────────── */
.ot-faq { margin-top: 56px; }
.ot-faq h2 {
  font-size: 1.32rem; font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 16px; padding-left: 12px; border-left: 4px solid var(--red);
}
.ot-faq__item { border-bottom: 1px solid var(--line); background: var(--paper); }
.ot-faq__item:first-of-type { border-top: 1px solid var(--line); }
.ot-faq__q {
  cursor: pointer; list-style: none; padding: 16px 40px 16px 16px;
  font-weight: 700; position: relative; line-height: 1.6;
}
.ot-faq__q::-webkit-details-marker { display: none; }
.ot-faq__q::after {
  content: "+"; position: absolute; right: 16px; top: 14px;
  font-size: 1.3rem; font-weight: 400; color: var(--red);
}
.ot-faq__item[open] .ot-faq__q::after { content: "−"; }
.ot-faq__a { padding: 0 16px 18px; color: var(--ink-2); }
.ot-faq__a p { margin: 0; }

/* ── 카드 목록 (캐러셀 마크업과 같은 원천) ──────────── */
.ot-cards {
  margin: 64px 0 0; padding-top: 40px; border-top: 1px solid var(--line);
}
.ot-cards__title { font-size: 1.1rem; font-weight: 800; margin: 0 0 18px; letter-spacing: -0.02em; }
.ot-cards__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 14px;
}
@media (min-width: 560px) { .ot-cards__list { grid-template-columns: repeat(4, 1fr); } }
.ot-cards__item { counter-increment: none; }
.ot-cards__link { display: block; text-decoration: none; color: var(--ink); }
.ot-cards__thumb {
  display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 8px; border: 1px solid var(--line); background: #f2ece3;
}
.ot-cards__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ot-cards__name {
  display: block; margin-top: 8px; font-size: 0.9rem; font-weight: 600;
  line-height: 1.45; text-align: center;
}
.ot-cards__link:hover .ot-cards__name { color: var(--red); }

/* ── 푸터 ─────────────────────────────────────────── */
.ot-footer {
  border-top: 1px solid var(--line); background: var(--paper);
  padding: 32px 20px 48px; font-size: 0.85rem; color: var(--ink-3); line-height: 1.75;
}
.ot-footer__note { max-width: var(--max); margin: 0 auto 10px; }
.ot-footer__copy { max-width: var(--max); margin: 20px auto 0; color: #a8a29e; }
