/* 코사이트 2026 디자인 (2026-10-31)
 * 대상: index, app, 툰코, 북코, 애니24, 코티비씨, 스포코
 * 주의: .nav-column 은 주소 갱신기(check_urls.php)가 class 값으로 찾는다.
 *       .nav-column 에 다른 클래스를 붙이지 말고, 바깥 감싸개(.ks-directory, .ks-go)로만 꾸민다.
 * 밝은 화면 전용이다(로고 그림이 어두운 글자 한 종류뿐이라 어두운 화면을 두지 않는다). */

:root {
  color-scheme: light;
  --ink: #0f1b2d;
  --ink-2: #364254;
  --muted: #4a5668;
  --line: #e3e7ed;
  --line-2: #cdd4de;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --primary: #2061eb;
  --primary-ink: #1849b8;
  --primary-soft: #edf2fe;
  --accent: #cd2e3a;
  --footer-bg: #0f1b2d;
  --footer-ink: #c3cbd6;
  --radius: 10px;
  --wrap: 1180px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
}

/* ---------- 기본 ---------- */
html { scroll-padding-top: 80px; }
body.ks {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
.ks h1, .ks h2, .ks h3 { color: var(--ink); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; margin: 0; }
.ks p { margin: 0; }
.ks a { color: var(--primary); text-decoration: none; }
.ks a:hover { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 3px; }
.ks img { max-width: 100%; height: auto; }
.ks :focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.ks-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.ks-skip {
  position: absolute; left: 8px; top: -60px; z-index: 2000;
  background: var(--ink); color: #fff !important; padding: 10px 14px; border-radius: 6px;
}
.ks-skip:focus { top: 8px; }

/* ---------- 머리글 ---------- */
.ks-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.ks-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.ks-logo { display: inline-flex; align-items: center; padding: 6px 0; }
.ks-logo img { width: 150px; height: auto; display: block; }
.ks-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer;
}
.ks-menu { flex-basis: 100%; }
.ks-menu ul { list-style: none; margin: 0; padding: 0; }
.ks-menu a {
  display: block; padding: 12px 4px; color: var(--ink); font-weight: 600; font-size: 15px;
  border-top: 1px solid var(--line);
}
.ks-menu a:hover { color: var(--primary); text-decoration: none; }
.ks-menu a[aria-current="page"] { color: var(--primary); }
.ks-menu__label { display: block; padding: 14px 4px 4px; font-size: 13px; color: var(--muted); font-weight: 600; border-top: 1px solid var(--line); }
.ks-menu__sites { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 16px; padding-bottom: 12px !important; }
.ks-menu__sites a { border-top: 0; padding: 8px 4px; }

@media (min-width: 992px) {
  .ks-menu-btn { display: none; }
  .ks-menu, .ks-menu.collapse:not(.show) { display: flex !important; flex-basis: auto; align-items: center; gap: 28px; height: auto !important; }
  .ks-menu ul { display: flex; align-items: center; gap: 4px; }
  .ks-menu a { border-top: 0; padding: 8px 10px; font-size: 15px; position: relative; }
  .ks-menu a[aria-current="page"]::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: -13px; height: 2px; background: var(--primary);
  }
  .ks-menu__label { display: none; }
  .ks-menu__sites { display: flex !important; padding: 0 0 0 20px !important; border-left: 1px solid var(--line); }
  .ks-menu__sites a { padding: 8px 10px; color: var(--ink-2); font-weight: 500; }
}

/* ---------- 공통 조각 ---------- */
.ks-lead { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 46em; }
@media (min-width: 768px) { .ks-lead { font-size: 18px; } }
.ks-status-line { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ks-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(205, 46, 58, 0.14); flex: none; }
.ks-section { padding: 56px 0; }
@media (min-width: 992px) { .ks-section { padding: 80px 0; } }
.ks-section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ks-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.ks-section-head h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.ks-section-head p { color: var(--muted); font-size: 15px; }

.ks-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 1px solid transparent;
  font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer; text-decoration: none !important;
}
.ks-btn--primary { background: var(--primary); color: #fff !important; }
.ks-btn--primary:hover { background: var(--primary-ink); }
.ks-btn--line { background: #fff; color: var(--ink) !important; border-color: var(--line-2); }
.ks-btn--line:hover { border-color: var(--ink); }

/* ---------- 첫 화면: 바로가기 목록 (주인공, 기능 블록) ----------
 * .nav-column / a.nav-link 마크업은 그대로. 장식 없이 글자 위계로만 나눈다.
 * 판 하나(은은한 흐림) 안을 휴대폰 2열 · PC 4열로 나누고, 열 사이는 가는 선 하나. */
.ks-directory { padding: 16px 0 28px; }
@media (min-width: 992px) { .ks-directory { padding: 32px 0 44px; } }
.ks-dir-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 20px; margin-bottom: 12px; }
.ks-dir-head h1 { font-size: 1.125rem; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); }
.ks-dir-head h1 span { color: inherit; }
.ks-dir-head p { font-size: 13px; color: var(--muted); }
@media (min-width: 992px) {
  .ks-dir-head { margin-bottom: 16px; }
  .ks-dir-head h1 { font-size: 1.375rem; }
  .ks-dir-head p { font-size: 14px; }
}

.ks-directory .nav-container {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 27, 45, 0.08); border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 27, 45, 0.04);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ks-directory .nav-container { background: rgba(255, 255, 255, 0.95); }
}
.ks-directory .nav-column { padding: 14px 12px 10px; margin: 0; border-radius: 0; background: none; }
.ks-directory .nav-column:nth-child(even) { border-left: 1px solid var(--line); }
.ks-directory .nav-column:nth-child(n+3) { border-top: 1px solid var(--line); }
.ks-directory .nav-title {
  margin: 0 0 4px; padding: 0 8px; border: 0;
  font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; line-height: 1.4;
}
.ks-directory .nav-links { display: block; }
.ks-directory .nav-column a.nav-link {
  display: flex; align-items: center; min-height: 44px; padding: 0 8px; margin: 0;
  color: var(--ink); background: none; border: 0; border-radius: 6px;
  font-size: 16px; font-weight: 500; line-height: 1.3; text-align: left;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.ks-directory .nav-column a.nav-link:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.ks-directory .nav-column a.nav-link:active { background: #dfe8fd; }
.ks-directory .nav-column a.nav-link:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
/* 추천 5곳: 같은 자리, 글자 굵기만 한 단계 */
.ks-directory .nav-column a.nav-link:is([title^="툰코 "], [title^="북코 "], [title^="애니24 "], [title^="무비코 "], [title^="스포코 "]) { font-weight: 700; }

@media (min-width: 992px) {
  .ks-directory .nav-container { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ks-directory .nav-column { padding: 18px 16px 14px; border-top: 0 !important; border-left: 1px solid var(--line); }
  .ks-directory .nav-column:first-child { border-left: 0; }
  .ks-directory .nav-title { margin-bottom: 6px; }
  .ks-directory .nav-column a.nav-link { font-size: 17px; min-height: 46px; }
}

/* ---------- 첫 화면: 소개 (목록 아래) ---------- */
.ks-intro { padding: 40px 0; border-bottom: 1px solid var(--line); }
.ks-intro__grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
.ks-intro h2 { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem); margin-bottom: 12px; }
.ks-intro__app { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--muted); }
@media (min-width: 992px) {
  .ks-intro { padding: 56px 0; }
  .ks-intro__grid { grid-template-columns: 1fr auto; gap: 64px; }
}

/* ---------- 첫 화면: 인기 사이트 5곳 ---------- */
.ks-sites { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.ks-site { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ks-site__media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); aspect-ratio: 16 / 9; }
.ks-site__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.ks-site__media:hover img { transform: scale(1.02); }
.ks-site__cat { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px !important; }
.ks-site h3 { font-size: 1.5rem; margin-bottom: 10px; }
.ks-site h3 a { color: var(--ink); }
.ks-site__desc { color: var(--ink-2); max-width: 40em; }
.ks-site__menu { margin-top: 10px !important; font-size: 15px; color: var(--muted); }
.ks-site__menu b { color: var(--ink-2); font-weight: 700; margin-right: 6px; }
.ks-site__more { display: inline-block; margin-top: 14px; font-weight: 700; }
@media (min-width: 768px) {
  .ks-site { grid-template-columns: 300px 1fr; gap: 32px; align-items: center; }
}
@media (min-width: 1100px) {
  .ks-site { grid-template-columns: 360px 1fr; gap: 48px; }
}

/* ---------- 바로가기 앱 안내 띠 ---------- */
.ks-appband__grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.ks-appband h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); margin-bottom: 14px; }
.ks-appband__facts { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.ks-appband__facts li { position: relative; padding-left: 26px; color: var(--ink-2); }
.ks-appband__facts li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 800; }
.ks-appband__media { justify-self: center; width: min(240px, 70%); }
.ks-appband__media img { display: block; width: 100%; }
@media (min-width: 900px) {
  .ks-appband__grid { grid-template-columns: 1fr 300px; gap: 64px; }
  .ks-appband__media { width: 280px; }
}

/* ---------- 자주 묻는 질문 ---------- */
.ks-faq { margin: 0; border-top: 1px solid var(--line-2); max-width: 860px; }
.ks-faq dt { color: var(--ink); font-weight: 800; font-size: 17px; padding: 22px 0 6px; border-top: 1px solid var(--line); }
.ks-faq dt:first-child { border-top: 0; }
.ks-faq dd { margin: 0; padding-bottom: 20px; color: var(--ink-2); }

/* ---------- 안내 페이지 머리 ---------- */
.ks-pagehead { padding: 28px 0 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 992px) { .ks-pagehead { padding: 40px 0 56px; } }
.ks-pagehead__grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 992px) { .ks-pagehead__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.ks-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.ks-crumbs a { color: var(--muted); }
.ks-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.ks-cat { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 8px !important; }
.ks-pagehead h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); margin-bottom: 16px; }
.ks-pagehead__media { margin: 0; }
.ks-pagehead__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--bg-soft); }

/* 안내 페이지 "OO 바로가기" (기능 블록: .nav-column > .btn_go > a) */
.ks-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.ks-go .nav-column { padding: 0; margin: 0; }
.ks-go .btn_go { display: block; margin: 0; padding: 0; background: none; min-width: 0; border-radius: 0; line-height: 1; }
.ks-go .btn_go a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 26px;
  background: var(--primary); color: #fff; font-size: 17px; font-weight: 800; border-radius: 8px;
  text-decoration: none; transition: background-color 0.15s ease;
}
.ks-go .btn_go a:hover { background: var(--primary-ink); color: #fff; text-decoration: none; }
.ks-go__note { margin-top: 12px !important; font-size: 14px; color: var(--muted); }

/* ---------- 안내 페이지 본문 ---------- */
.ks-guide__grid { display: grid; grid-template-columns: 1fr; gap: 48px; padding-top: 40px; padding-bottom: 72px; }
@media (min-width: 992px) { .ks-guide__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; padding-top: 56px; } }
.ks-article { max-width: 720px; }
.ks-article h2 { font-size: 1.375rem; margin: 44px 0 14px; padding-top: 4px; }
.ks-article h2:first-of-type { margin-top: 40px; }
.ks-article p + p { margin-top: 14px; }
.ks-article ul, .ks-article ol { margin: 14px 0 0; padding-left: 1.25em; }
.ks-article li { margin-top: 8px; }
.ks-article li strong { color: var(--ink); }
.ks-facts { display: grid; grid-template-columns: 1fr; margin: 0; border-top: 2px solid var(--ink); }
.ks-facts > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ks-facts dt { font-weight: 700; color: var(--ink); font-size: 15px; }
.ks-facts dd { margin: 0; font-size: 15px; }
.ks-facts-title { font-size: 1.125rem !important; margin: 0 0 12px !important; }

.ks-aside { display: grid; gap: 40px; align-content: start; }
@media (min-width: 992px) { .ks-aside { position: sticky; top: 96px; } }
.ks-phone { margin: 0; text-align: center; }
.ks-phone img { width: 220px; max-width: 70%; display: inline-block; }
.ks-phone figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.ks-others h2 { font-size: 1rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.ks-others ul { list-style: none; margin: 0; padding: 0; }
.ks-others li a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.ks-others li a span { color: var(--muted); font-weight: 500; font-size: 14px; }
.ks-others li a:hover { color: var(--primary); text-decoration: none; }

/* ---------- 그림 자리표시 (Codex 가 실제 그림으로 바꾼다) ---------- */
.ks-ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #e9ecf1; border: 1px dashed #9aa4b2; border-radius: 8px; color: #5f6b7b;
  font-size: 13px; line-height: 1.5; padding: 8px;
}
.ks-ph--phone { aspect-ratio: 360 / 640; width: 100%; max-width: 170px; }
@media (min-width: 900px) { .ks-ph--phone { max-width: 200px; } }
.ks-ph--phone-tall { aspect-ratio: 360 / 688; width: 220px; max-width: 70%; margin: 0 auto; }
.ks-ph--pc { aspect-ratio: 16 / 9; width: 100%; max-width: 360px; }
.ks-ph--video-phone { aspect-ratio: 9 / 16; width: min(240px, 70vw); }
.ks-ph--video-pc { aspect-ratio: 16 / 9; width: min(480px, 100%); }

/* ---------- 앱 설치 안내 ---------- */
.ks-appfacts { display: grid; grid-template-columns: 1fr; margin: 24px 0 0; border-top: 1px solid var(--line-2); }
.ks-appfacts > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ks-appfacts dt { font-weight: 700; color: var(--ink); }
.ks-appfacts dd { margin: 0; }

.install-warp { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ks .setup-btn, .ks .setup-btn1 {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 20px; border-radius: 8px; font-size: 16px; font-weight: 700;
  cursor: pointer; text-decoration: none !important; width: auto;
}
.ks .setup-btn { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.ks .setup-btn:hover { background: var(--primary-ink); }
.ks .setup-btn[disabled] { opacity: 0.55; cursor: not-allowed; background: var(--muted); border-color: var(--muted); }
.ks .setup-btn1 { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.ks .setup-btn1:hover { border-color: var(--ink); color: var(--ink); }
.ks .setup-btn img, .ks .setup-btn1 img { height: 22px; width: auto; }
.ks-install-note { margin-top: 12px !important; font-size: 14px; color: var(--muted); max-width: 40em; }
.ks-app-shot { justify-self: center; width: min(260px, 72%); }
.ks-app-shot img { display: block; width: 100%; }
@media (min-width: 992px) { .ks-pagehead__grid--app { grid-template-columns: 1fr 320px; } }

/* 기기 고르기(탭) */
.ks-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.ks-tabs[hidden] { display: none; }
.ks-tab {
  appearance: none; border: 0; background: #fff; color: var(--ink-2);
  min-height: 56px; padding: 10px 12px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ks-tab:nth-child(2n) { border-right: 0; }
.ks-tab small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.ks-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.ks-tab[aria-selected="true"] small { color: #c3cbd6; }
.ks-tab:focus-visible { outline-offset: -4px; }
@media (min-width: 768px) {
  .ks-tabs { grid-template-columns: repeat(4, 1fr); }
  .ks-tab { border-bottom: 0; border-right: 1px solid var(--line) !important; }
  .ks-tab:last-child { border-right: 0 !important; }
}

.ks-device + .ks-device { margin-top: 56px; }
.ks-device[hidden] { display: none; }
.ks-device__head { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.ks-device__head h3 { font-size: 1.5rem; margin-bottom: 8px; }
.ks-device__head p { color: var(--ink-2); }
.ks-device__video { justify-self: center; width: 100%; display: flex; justify-content: center; }
@media (min-width: 900px) { .ks-device__head { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }

.ks-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.ks-step { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 6px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.ks-step::before {
  content: counter(step); grid-row: 1 / span 2;
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
.ks-step__text { color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.6; padding-top: 4px; }
.ks-step__text em { font-style: normal; background: var(--primary-soft); color: var(--primary-ink); padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.ks-step__sub { color: var(--muted); font-size: 15px; font-weight: 400; margin-top: 4px !important; }
.ks-step__fig { grid-column: 2; margin: 10px 0 0; }
@media (min-width: 900px) {
  .ks-steps { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
}

/* ---------- 바닥글 ---------- */
.ks-footer { background: var(--footer-bg); color: var(--footer-ink); font-size: 15px; padding: 56px 0 0; }
.ks-footer a { color: #fff; }
.ks-footer a:hover { color: #9fbcff; }
.ks-footer__grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
@media (min-width: 720px) { .ks-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ks-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 48px; } }
.ks-footer__brand { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 10px !important; letter-spacing: -0.01em; }
.ks-footer h2 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); letter-spacing: 0; }
.ks-footer ul { list-style: none; margin: 0; padding: 0; }
.ks-footer li + li { margin-top: 8px; }
.ks-footer__status { margin: 0; }
.ks-footer__status > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.ks-footer__status dt { font-weight: 500; color: var(--footer-ink); }
.ks-footer__status dd { margin: 0; color: #fff; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.ks-footer #lastUpdateTime { color: #9fbcff; }
.ks-footer #remainingTime { color: #ffd166; }
.ks-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; padding-bottom: 24px; font-size: 14px; }

#back-to-top {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 900;
  width: 48px; height: 48px; border-radius: 8px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 27, 45, 0.16);
}
#back-to-top:hover { border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .ks *, .ks *::before, .ks *::after { transition: none !important; animation: none !important; }
}
.ks-footer__cat { opacity: 0.6; font-weight: 400; }
.ks-demo-gif { display: block; width: min(240px, 70vw); height: auto; border-radius: 24px; border: 1px solid var(--line-2); }

/* 자리표시를 실제 영상·그림으로 바꿀 때 쓰는 모양 (IMAGE-NEEDS.md 참조) */
.ks-demo-video { display: block; height: auto; background: var(--bg-soft); border: 1px solid var(--line-2); }
.ks-demo-video--phone { width: min(240px, 70vw); border-radius: 24px; }
.ks-demo-video--pc { width: min(480px, 100%); border-radius: 10px; }
.ks-step__img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-soft); }
.ks-step__img--phone { max-width: 170px; }
.ks-step__img--pc { max-width: 360px; }
@media (min-width: 900px) { .ks-step__img--phone { max-width: 200px; } }


/* =====================================================================
 * 절제 층 (2026-10-31 두목님 지시: 장식을 걷어낸 미니멀·글자 중심)
 * 색은 흰·남색·파랑 하나. 유리 느낌은 배경 그라데이션 + 판 하나의 은은한 흐림까지만.
 * 뱃지·색 덩어리 버튼·화살표 장식·겹친 상자·큰 그림자를 쓰지 않는다. 7쪽 공통, CSS 로만.
 * ===================================================================== */
:root {
  --line: rgba(15, 27, 45, 0.09);
  --line-2: rgba(15, 27, 45, 0.16);
  --panel: rgba(255, 255, 255, 0.74);
  --panel-line: rgba(15, 27, 45, 0.08);
  --panel-shadow: 0 1px 3px rgba(15, 27, 45, 0.04);
}
body.ks {
  background-color: #f2f7fc;
  background-image:
    radial-gradient(40rem 28rem at 6% 0, rgba(72, 170, 255, 0.20), transparent 70%),
    radial-gradient(34rem 26rem at 98% 4rem, rgba(40, 190, 175, 0.14), transparent 70%),
    linear-gradient(180deg, #edf5fd 0, #f5f9fd 50rem, #f7fafd 100%);
  background-repeat: no-repeat;
}
.ks-dot { display: none; }

/* 판: 겹치지 않는 한 겹만. 흐림은 머리글과 바로가기 판에만 */
.ks-article, .ks-sites, .ks-faq, .ks-device {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 10px; box-shadow: var(--panel-shadow);
}
.ks-header {
  background: rgba(255, 255, 255, 0.8); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ks-menu-btn { background: transparent; border: 1px solid var(--line-2); border-radius: 8px; }
.ks-section--soft, .ks-pagehead, .ks-intro, .ks-appband { background: transparent; border: 0; }
@media (min-width: 992px) { .ks-section { padding: 56px 0; } }

/* 버튼: 납작한 파랑 하나 + 선 버튼. 그라데이션·빛 그림자·화살표 없음 */
.ks-btn, .ks-go .btn_go a, .ks .setup-btn, .ks .setup-btn1 { border-radius: 8px; box-shadow: none; transform: none; }
.ks-btn--primary, .ks-go .btn_go a, .ks .setup-btn { background: var(--primary); border: 1px solid var(--primary); color: #fff; }
.ks-btn--primary:hover, .ks-go .btn_go a:hover, .ks .setup-btn:hover { background: var(--primary-ink); border-color: var(--primary-ink); }
.ks-btn--line, .ks .setup-btn1 { background: transparent; border: 1px solid var(--line-2); color: var(--ink); }
.ks-btn--line:hover, .ks .setup-btn1:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.ks-go .btn_go a { font-size: 16px; font-weight: 700; padding: 13px 24px; min-height: 48px; }

/* 첫 화면 소개·앱 안내: 상자 없이 위쪽 가는 선으로만 구분 */
.ks-intro { padding: 28px 0 8px; }
.ks-intro__grid, .ks-appband__grid { padding-top: 28px; border-top: 1px solid var(--line); }
.ks-intro h2 { font-size: 1.25rem; }
@media (min-width: 992px) { .ks-intro h2 { font-size: 1.5rem; } }
.ks-appband__facts li::before { content: "\2013"; color: var(--muted); font-weight: 400; }
.ks-appband__media img, .ks-app-shot img { border-radius: 0; box-shadow: none; }

/* 인기 사이트 5곳: 판 하나 안에서 가는 선으로 나눈 목록 */
.ks-sites { padding: 0 16px; }
@media (min-width: 768px) { .ks-sites { padding: 0 28px; } }
.ks-site { padding: 22px 0; border-bottom: 1px solid var(--line); background: none; box-shadow: none; }
.ks-site:last-child { border-bottom: 0; }
.ks-site__media { border-radius: 8px; }
.ks-site__media:hover img { transform: none; }
.ks-site__cat { color: var(--muted); font-weight: 600; font-size: 13px; }
.ks-site__more { font-weight: 600; }

.ks-faq { padding: 0 18px; }
@media (min-width: 768px) { .ks-faq { padding: 0 28px; } }

/* 안내 페이지 머리: 상자 없이 글과 그림만 */
.ks-pagehead { padding-top: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.ks-cat { color: var(--muted); font-size: 14px; font-weight: 600; }
.ks-pagehead__media img { border-radius: 10px; box-shadow: none; }

/* 안내 본문 판 하나 + 옆은 상자 없이 */
.ks-guide__grid { padding-top: 32px; }
.ks-article { padding: 4px 20px 28px; max-width: none; }
@media (min-width: 768px) { .ks-article { padding: 8px 36px 36px; } }
.ks-article h2:first-of-type { margin-top: 28px; }
.ks-facts { border-top: 1px solid var(--ink); }
.ks-others h2 { border-bottom: 1px solid var(--ink); }

/* 앱 안내: 탭은 밑줄형, 단계 번호는 글자로 */
.ks-tabs { border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; overflow: visible; }
.ks-tab { background: transparent !important; border: 0 !important; border-radius: 0; color: var(--muted); box-shadow: none !important; margin-bottom: -1px; border-bottom: 2px solid transparent !important; }
.ks-tab small { color: var(--muted) !important; }
.ks-tab:hover { color: var(--ink); }
.ks-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--primary) !important; }
.ks-device { padding: 22px 18px; }
@media (min-width: 768px) { .ks-device { padding: 32px 36px; } }
.ks-step { grid-template-columns: 28px 1fr; }
.ks-step::before { width: auto; height: auto; background: none; border-radius: 0; color: var(--primary); font-size: 20px; line-height: 1.4; justify-content: flex-start; }
.ks-step__text em { background: none; padding: 0; color: var(--ink); font-weight: 800; }
.ks-demo-gif, .ks-demo-video, .ks-step__img { border-radius: 8px; }
.ks-ph { border-radius: 8px; }

.ks-footer { margin-top: 48px; border-radius: 0; }
#back-to-top { background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: none; }
/* .ks-wrap 과 같은 요소의 위쪽 선이 바깥 여백까지 뻗지 않게 폭을 맞춘다 */
.ks-intro__grid.ks-wrap, .ks-appband__grid.ks-wrap {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); padding-left: 0; padding-right: 0;
}
#back-to-top { width: auto; min-width: 48px; padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--ink); }
.ks-step::before { align-self: start; }
/* 설치 버튼 안 브라우저 아이콘 그림은 장식이라 숨긴다(app.js 가 다시 붙여도 숨겨진 채로 둔다) */
.ks .setup-btn img, .ks .setup-btn1 img { display: none; }

/* =====================================================================
 * 마감 손질 (impeccable craft-floor · apple-design · emil-design-eng 기준)
 * ===================================================================== */
/* 브라우저 기본 표면도 같은 팔레트로 */
.ks ::selection { background: rgba(32, 97, 235, 0.18); color: var(--ink); }
body.ks { caret-color: var(--primary); accent-color: var(--primary); scrollbar-color: rgba(15, 27, 45, 0.28) transparent; }
.ks a:hover { text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* 제목은 줄을 고르게, 큰 글자일수록 자간을 좁게 */
.ks h1, .ks h2, .ks h3 { text-wrap: balance; }
.ks-pagehead h1 { letter-spacing: -0.025em; line-height: 1.2; }
.ks-article p, .ks-article li, .ks-lead { max-width: 68ch; }
.ks-footer__status dd, #lastUpdateTime, #nextUpdateTime, #remainingTime { font-variant-numeric: tabular-nums; }

/* 구역 머리: 왼쪽 정렬 한 줄 쌓기로 통일 */
.ks-section-head { display: block; }
.ks-section-head p { margin-top: 6px !important; }

/* 인기 사이트 이름 옆 분류(제목 위 라벨 대신) */
.ks-site h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.ks-site__kind { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* 앱 안내 띠의 목록 표시 글리프 대신 기본 목록 */
.ks-appband__facts { list-style: disc; padding-left: 1.2em; gap: 6px; }
.ks-appband__facts li { padding-left: 0; }
.ks-appband__facts li::before { content: none; }

/* 머리글: 맨 위에서는 경계선 없이, 내용이 밑으로 지나갈 때만 옅은 경계(korsite.js 의 nav-sticky) */
.ks-header { border-bottom-color: transparent; transition: border-color 0.2s ease-out, background-color 0.2s ease-out; }
.ks-header.nav-sticky { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.86); }

/* 누르는 순간 반응(손을 떼기 전에) */
.ks-btn, .ks-go .btn_go a, .ks .setup-btn, .ks .setup-btn1, .ks-tab {
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out, transform 0.1s ease-out;
}
.ks-btn:active, .ks-go .btn_go a:active, .ks .setup-btn:active, .ks .setup-btn1:active { transform: scale(0.98); }
.ks-btn--primary:active, .ks-go .btn_go a:active, .ks .setup-btn:active { background: #143f9f; }
.ks-menu a:active, .ks-others li a:active { color: var(--primary-ink); }

/* 투명도 줄이기·대비 높이기 설정을 따른다 */
@media (prefers-reduced-transparency: reduce) {
  .ks-header, .ks-directory .nav-container { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #364254; --line: rgba(15, 27, 45, 0.3); }
  .ks-directory .nav-container, .ks-article, .ks-sites, .ks-faq, .ks-device { background: #fff; border-color: var(--ink); }
}
.ks-dir-head { display: block; } .ks-dir-head p { margin-top: 4px !important; }
