/* 런닝 정보 사이트 스타일 — 색은 site.config.json 의 mainColor·subColor 가 --main·--sub 로 들어온다 */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("/assets/fonts/Pretendard-Regular.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("/assets/fonts/Pretendard-Bold.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 800; font-display: swap; src: url("/assets/fonts/Pretendard-ExtraBold.woff2") format("woff2"); }

:root {
  --main: #1F5F4E; --sub: #E9A23B;
  --ink: #18201C; --body: #2F3934; --muted: #66716B; --line: #E4E1D8; --paper: #FAF8F3; --card: #FFFFFF;
  --tint: color-mix(in srgb, var(--main) 7%, white);
  --tint-sub: color-mix(in srgb, var(--sub) 14%, white);
  --radius: 18px; --wrap: 1120px; --read: 700px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .04), 0 8px 24px rgba(20, 30, 25, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--body); font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px; line-height: 1.75; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
a { color: var(--main); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { color: var(--ink); line-height: 1.3; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--main) 55%, white); outline-offset: 2px; border-radius: 6px; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.03em; flex: none; }
.logo { width: 54px; height: 34px; flex: none; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--body); text-decoration: none; font-size: 15px; font-weight: 700; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--tint); color: var(--main); }
.nav a[aria-current="page"] { background: var(--main); color: #fff; }
.nav .nav-all { display: none; }

/* 브레드크럼 */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; margin: 0 auto; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--main); }
.crumbs li[aria-current] { max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--main); color: #fff; text-decoration: none; font-weight: 800;
  padding: 14px 22px; border-radius: 999px; font-size: 16px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--main) 30%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--main); color: var(--main); box-shadow: none; }

/* 홈 히어로 */
/* 첫 화면: Molly 일러스트 전면 (art-src/hero.json, 대표 선택 2026-09-29). 왼쪽은 글이 읽히게 크림색으로 덮는다 */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #F4E7CF url("/assets/img/hero.webp") right center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(250, 248, 243, .94) 34%, rgba(250, 248, 243, .55) 52%, rgba(250, 248, 243, 0) 68%); }
.hero-in { padding-top: 104px; padding-bottom: 112px; position: relative; z-index: 1; min-height: 540px; }
.hero h1, .hero .lead { text-shadow: 0 1px 0 rgba(250, 248, 243, .6); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 800; color: var(--main); background: var(--card); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: 1.14; max-width: 14em; }
.lead { font-size: 19px; color: var(--muted); max-width: 38em; margin-top: 18px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* 블록 공통 */
.block { margin-top: 72px; }
.block-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.block-head h2 { font-size: 26px; font-weight: 800; }
.block-head p { margin: 0; color: var(--muted); }
.block-head .more { margin-left: auto; font-weight: 700; font-size: 15px; }
.page-head { padding-top: 36px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.04em; }
.empty { color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; margin: 0; grid-column: 1 / -1; }

/* 카테고리 */
.ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px;
  text-decoration: none; color: var(--body); transition: border-color .15s, transform .15s, box-shadow .15s; }
.cat .ico { color: var(--main); width: 34px; height: 34px; padding: 6px; background: var(--tint); border-radius: 12px; box-sizing: content-box; }
.cat:hover { border-color: var(--main); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-name { display: block; font-weight: 800; color: var(--ink); font-size: 17px; }
.cat-sum { display: block; font-size: 14px; color: var(--muted); line-height: 1.55; }
.cat-list { display: flex; flex-direction: column; gap: 12px; }
.cat-row { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px; text-decoration: none; color: var(--body); }
.cat-row .ico { color: var(--main); width: 30px; height: 30px; }
.cat-row:hover { border-color: var(--main); }
.cat-count { font-weight: 800; color: var(--main); font-size: 15px; }
.cat-head { display: flex; gap: 18px; align-items: center; }
.cat-head > .ico { width: 44px; height: 44px; padding: 10px; background: var(--tint); color: var(--main); border-radius: 16px; box-sizing: content-box; flex: none; }
.cat-head .lead { margin-top: 6px; }
.intro { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; font-size: 17px; max-width: 820px; }
.read-first { counter-reset: rf; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 820px; }
.read-first li { counter-increment: rf; display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.read-first li::before { content: counter(rf); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--main); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.read-first a { color: var(--ink); font-weight: 700; text-decoration: none; }
.read-first a:hover { color: var(--main); }

/* 카드 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--main) 35%, var(--line)); }
.card-cat { align-self: flex-start; font-size: 13px; font-weight: 800; color: var(--main); background: var(--tint); padding: 4px 10px; border-radius: 999px; text-decoration: none; margin: 0; }
.card-title { font-size: 19px; font-weight: 800; line-height: 1.4; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--main); }
.card-sub { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; flex: 1; }
.card-meta { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.card-column .card-cat { color: #7A4B0B; background: var(--tint-sub); }

/* 홈 하단 패널 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.panel h2 { font-size: 22px; margin-bottom: 14px; }
.principles { margin: 0; padding-left: 1.1em; }
.principles li { margin-bottom: 6px; }
.principles li::marker { color: var(--main); }
.owner-box, .editor-box { display: flex; gap: 18px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.owner-box p, .editor-box p { margin: 0; }
.owner-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--main); color: #fff; font-weight: 800; font-size: 22px; display: grid; place-items: center; }
.owner-name { font-weight: 800; color: var(--ink); margin-bottom: 4px !important; }
.owner-name a { color: var(--ink); }
.cta { background: var(--ink); color: #E9EEEA; border-radius: calc(var(--radius) + 6px); padding: 44px; text-align: center; }
.cta h2 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.cta p { color: #B9C4BE; }
.cta .btn { background: var(--sub); color: var(--ink); margin-top: 8px; }

/* 글 상세 */
.article { padding-top: 28px; }
.post-head { max-width: 860px; }
.post-head h1 { font-size: clamp(32px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1.22; margin-top: 16px; }
.subtitle { font-size: 20px; color: var(--muted); margin-top: 14px; }
.post-meta { font-size: 14px; color: var(--muted); padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.post-meta a { color: var(--muted); font-weight: 700; }
.post-layout { display: grid; grid-template-columns: 240px minmax(0, var(--read)); gap: 56px; margin-top: 34px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.toc summary { font-weight: 800; color: var(--ink); cursor: pointer; list-style: none; margin-bottom: 10px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.5; }
.toc li a:hover { color: var(--ink); }
.toc li a.is-on { color: var(--main); border-left-color: var(--main); font-weight: 700; }
.post-body { min-width: 0; }
.sec { margin-top: 44px; }
.sec h2, .faq h2, .box h2, .sources h2, .related h2 { font-size: 25px; font-weight: 800; margin-bottom: 16px; }
.sec h3 { font-size: 20px; margin: 26px 0 10px; }
.sec ul, .sec ol { padding-left: 1.2em; }
.sec li { margin-bottom: 8px; }
.sec li::marker { color: var(--main); font-weight: 800; }
.sec strong { color: var(--ink); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sub) 38%, transparent) 62%); }
blockquote { margin: 20px 0; padding: 14px 20px; border-left: 4px solid var(--sub); background: var(--card); border-radius: 0 12px 12px 0; }
.box { border-radius: var(--radius); padding: 24px 26px; margin-top: 40px; }
.box h2 { font-size: 19px !important; margin-bottom: 12px !important; }
.box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.box li { position: relative; padding-left: 30px; }
.box-key { background: var(--tint); border: 1px solid color-mix(in srgb, var(--main) 18%, white); margin-top: 0; }
.box-key li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--main); }
.box-mistake { background: #FFF6F4; border: 1px solid #F4D9D3; }
.box-mistake li::before, .box-mistake li::after { content: ""; position: absolute; left: 3px; top: .8em; width: 14px; height: 2.5px; border-radius: 2px; background: #C8452F; transform: rotate(45deg); }
.box-mistake li::after { transform: rotate(-45deg); }
.box-check { background: var(--card); border: 1px solid var(--line); }
.box-check li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--main); }
.box-check li::after { content: ""; position: absolute; left: 6px; top: .5em; width: 5px; height: 9px; border: solid var(--main); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.faq { margin-top: 48px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--ink); padding: 14px 28px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--body); padding-bottom: 8px; }
.sources { margin-top: 40px; font-size: 15px; }
.sources h2 { font-size: 19px !important; }
.editor-box { margin-top: 48px; }
.notice { margin-top: 18px; font-size: 14px; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: 16px 20px; }
.related { margin-top: 80px; }
.column-body { max-width: var(--read); margin-top: 30px; }
.column-body h2 { font-size: 23px; font-weight: 800; margin: 36px 0 12px; }

/* 신뢰 페이지 (소개·운영자·문의·정책·사이트맵·404) */
.doc > * { max-width: 820px; }          /* 폭만 줄이고 제목과 왼쪽 정렬을 맞춘다 */
.doc h2 { font-size: 23px; font-weight: 800; margin: 40px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 18px; margin-bottom: 10px; }
.doc .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.doc .two ul, .doc-ul { margin: 0; padding-left: 1.1em; }
.doc .two li, .doc-ul li { margin-bottom: 6px; }
.doc-list { padding-left: 1.3em; }
.doc-list li { margin-bottom: 12px; }
.doc-list li::marker { color: var(--main); font-weight: 800; }
.doc .box { margin-top: 0; }
.doc .box p { margin: 0; }
.author-head { display: flex; gap: 24px; align-items: flex-start; }
.owner-avatar.big { width: 84px; height: 84px; font-size: 34px; }
.author-branch { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.author-branch p { margin: 0; font-weight: 700; color: var(--main); }
.contact-mail { margin: 20px 0 8px; }
.contact-mail p { margin: 0; }
.mail-big { font-size: 22px; font-weight: 800; }
.contact-form { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 14px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; color: var(--ink); font-size: 15px; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; color: var(--body); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--main); box-shadow: 0 0 0 3px var(--tint); }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.sitemap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.sitemap h2 { font-size: 18px !important; margin: 0 0 10px !important; }
.sitemap h2 a { color: var(--ink); text-decoration: none; }
.sitemap ul { margin: 0; padding-left: 1.1em; }
.sitemap li { margin-bottom: 4px; }
.nf { text-align: center; padding: 90px 0 30px; }
.nf-code { font-size: 96px; font-weight: 800; color: var(--main); letter-spacing: -.05em; line-height: 1; margin-bottom: 18px; }
.nf h1 { font-size: 32px; }
.nf .lead { margin: 14px auto 0; }
.nf .hero-cta { justify-content: center; }
@media (max-width: 720px) {
  .doc .two, .sitemap { grid-template-columns: 1fr; }
  .author-head { flex-direction: column; }
}

/* 푸터 */
.site-footer { margin-top: 110px; background: var(--card); border-top: 1px solid var(--line); padding: 54px 0 30px; font-size: 15px; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin: 12px 0 0; }
.footer-h { font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--main); }
.footer-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-note p { margin: 0; }

/* 반응형 */
@media (max-width: 1024px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 28px; }
  .toc summary { margin: 0; }
  .toc details[open] summary { margin-bottom: 10px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .header-in { gap: 14px; min-height: 60px; }
  .nav .nav-all { display: inline-block; }
  .nav a:not(.nav-all):not([aria-current]) { display: none; }
  /* 휴대폰: 그림은 아래쪽에 보이고 글은 위쪽 크림색 위에 */
  .hero { background: #F4E7CF url("/assets/img/hero-sm.webp") 72% bottom / auto 300px no-repeat; }
  .hero::before { background: linear-gradient(180deg, var(--paper) 0%, rgba(250, 248, 243, .96) 55%, rgba(250, 248, 243, .2) 78%, rgba(250, 248, 243, 0) 100%); }
  .hero-in { padding-top: 48px; padding-bottom: 250px; min-height: 0; }
  .lead { font-size: 17px; }
  .cats, .grid, .split, .footer-in { grid-template-columns: 1fr; }
  .cat { flex-direction: row; align-items: center; }
  .cat .cat-sum { display: none; }
  .block { margin-top: 52px; }
  .cta { padding: 32px 22px; }
  .owner-box, .editor-box { padding: 20px; }
}
