/* 런닝 정보 사이트 스타일 — 색은 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?v=a4fdb93f91") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("/assets/fonts/Pretendard-Bold.woff2?v=9cf95c72dd") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 800; font-display: swap; src: url("/assets/fonts/Pretendard-ExtraBold.woff2?v=39e843b6c0") 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; text-wrap: pretty; }   /* 첫 줄은 꽉 채우고, 마지막 줄에 한 단어만 남지 않게 (대표 2026-10-01: 두 줄 고르게 나누기는 어색함) */
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; }
.logo-badge { display: block; height: 48px; width: auto; }
.footer-brand .logo-badge { height: 56px; }
@media (max-width: 640px) { .logo-badge { height: 40px; } }
.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; }

/* 홈 히어로 */
/* 첫 화면 (art-src/hero.json, 대표 선택 2026-09-30 C2): 가을, 사람(목 아래)과 Molly 가 함께 달림.
   그림은 오른쪽 절반에만 두고 왼쪽 끝을 부드럽게 지워 글자와 겹치지 않게 한다 (전면에 깔면 사람이 제목 뒤에 가려짐) */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); }
.hero::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 54%;
  background: url("/assets/img/hero.webp") 58% center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
.hero .lead { max-width: 30em; }
.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(.nav-tool):not([aria-current]) { display: none; }
  /* 휴대폰: 그림은 아래쪽에 보이고 글은 위쪽 크림색 위에 */
  .hero::before { top: auto; left: 0; width: auto; height: 320px; background: url("/assets/img/hero-sm.webp") center 30% / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
  .hero-in { padding-top: 48px; padding-bottom: 336px; 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; }
}

/* 계절 첫 화면 (art-src/hero-season/hero.json, 스위치 seasonArt): 로고와 같은 하천 산책로, 사람(목 아래)과 몰리 */
.hero-spring::before { background-image: url("/assets/img/hero/spring.webp"); }
.hero-summer::before { background-image: url("/assets/img/hero/summer.webp"); }
.hero-autumn::before { background-image: url("/assets/img/hero/autumn.webp"); }
.hero-spring::before, .hero-summer::before, .hero-autumn::before, .hero-winter::before { background-position: 88% center; }
.hero-winter::before { background-image: url("/assets/img/hero/winter.webp"); }
@media (max-width: 720px) {
  .hero-spring::before { background-image: url("/assets/img/hero/spring-sm.webp"); }
  .hero-summer::before { background-image: url("/assets/img/hero/summer-sm.webp"); }
  .hero-autumn::before { background-image: url("/assets/img/hero/autumn-sm.webp"); }
  .hero-winter::before { background-image: url("/assets/img/hero/winter-sm.webp"); }
}
/* 새 카테고리 아이콘 그림 (스위치 catIcons) */
.ico-img { padding: 0 !important; background: none !important; border-radius: 50%; stroke: none; }
.cat .ico-img { width: 48px; height: 48px; }
.cat-row .ico-img { width: 42px; height: 42px; }
.cat-head > .ico-img { width: 68px; height: 68px; }

/* 광고 자리 (정해 둔 곳에만). 채워지지 않은 광고는 자리째 숨기고, '광고' 표시는 채워졌을 때만 */
.ad-slot { margin: 40px 0; text-align: center; }
.ad-slot .ad-label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted, #6b6b6b); letter-spacing: .02em; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad-slot:not(:has(ins[data-ad-status="filled"])) .ad-label { visibility: hidden; }

/* 글 머리 그림 */
.post-hero { margin: 28px 0 8px; max-width: 1100px; }
.post-hero img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--card); }

/* ---------------------------------------------------------------- 도구: 페이스 계산기 (2026-10-01) */
.ico-watch { width: 20px; height: 20px; flex: none; }
.btn-sub { background: var(--sub); color: var(--ink); }
.btn-sub:hover { box-shadow: 0 8px 20px color-mix(in srgb, var(--sub) 40%, transparent); }
.nav .nav-tool { background: var(--tint-sub); color: var(--ink); border: 1px solid color-mix(in srgb, var(--sub) 45%, white); }
.nav .nav-tool:hover { background: var(--sub); color: var(--ink); }
.nav .nav-tool[aria-current="page"] { background: var(--sub); color: var(--ink); }
.chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
  color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--main); color: var(--main); }
.tool-band-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--tint-sub);
  border: 1px solid color-mix(in srgb, var(--sub) 40%, white); border-radius: var(--radius); padding: 22px 26px; }
.tool-band-text { display: flex; gap: 14px; align-items: flex-start; }
.tool-band-text .ico-watch { width: 34px; height: 34px; color: #B7771A; margin-top: 2px; }
.tool-band-text p { margin: 0; }
.tool-band-h { font-size: 20px; font-weight: 800; color: var(--ink); }
.tool-band-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tool-callout { display: flex; gap: 12px; align-items: center; margin: 22px 0 0; padding: 14px 18px; border-radius: 14px;
  background: var(--tint-sub); border: 1px solid color-mix(in srgb, var(--sub) 40%, white); }
.tool-callout p { margin: 0; font-size: 16px; }
.tool-callout .ico-watch { color: #B7771A; }
.tool-callout a { font-weight: 800; }

.pace-calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; max-width: 880px; }
.pc-mode { border: 0; padding: 0; margin: 0 0 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.pc-mode legend { font-weight: 800; color: var(--ink); margin-bottom: 10px; font-size: 16px; }
.pc-mode label { cursor: pointer; }
.pc-mode input { position: absolute; opacity: 0; pointer-events: none; }
.pc-mode span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; }
.pc-mode input:checked + span { background: var(--main); border-color: var(--main); color: #fff; }
.pc-mode input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--main) 55%, white); outline-offset: 2px; }
.pc-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pc-field[hidden] { display: none; }
.pc-label { font-weight: 800; color: var(--ink); margin: 0 0 8px; font-size: 15px; }
.pc-row { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.tool-head .card-cat { display: inline-block; }
.pc-row input { width: 3.8em; min-width: 0; font: inherit; font-size: 20px; font-weight: 800; color: var(--ink); padding: 8px 10px; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--paper); font-variant-numeric: tabular-nums; }
.pc-row input#pc-d { width: 7em; }
.pc-row input:focus { border-color: var(--main); outline: none; }
.pc-unit { color: var(--muted); font-size: 15px; margin-right: 4px; white-space: nowrap; }
.pc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pc-result { margin-top: 24px; padding: 22px 24px; border-radius: 16px; background: var(--main); color: #fff; }
.pc-result p { margin: 0; }
.pc-result-label { font-size: 14px; font-weight: 700; opacity: .85; }
.pc-result-main { font-size: clamp(34px, 6vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pc-result-main span { font-size: .45em; font-weight: 700; opacity: .85; }
.pc-result-sub { margin-top: 6px !important; font-size: 15px; opacity: .9; }
.pc-more { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 20px; align-items: start; }
.pc-h { font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.pace-calc table, .pc-ex { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 16px; }
.pace-calc td, .pace-calc th, .pc-ex td, .pc-ex th { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.pace-calc td:last-child, .pc-ex td:last-child { text-align: right; font-weight: 700; color: var(--ink); }
.pc-splits summary { font-weight: 800; color: var(--main); cursor: pointer; padding: 6px 0; }
.pc-splits tbody { display: block; max-height: 320px; overflow-y: auto; }
.pc-splits thead, .pc-splits tr { display: table; width: 100%; table-layout: fixed; }
.pc-note { margin: 16px 0 0; font-size: 14px; }
.tool-doc { max-width: var(--read); }
.tool-doc h2 { font-size: 22px; font-weight: 800; margin: 34px 0 12px; }
.tool-doc h2:first-child { margin-top: 0; }
@media (max-width: 720px) {
  .pace-calc { padding: 20px 16px; }
  .pc-row input { font-size: 18px; width: 3.4em; padding: 8px 6px; }
  .tool-band-in { padding: 18px; }
}
