/* 사이트 공통 디자인 — 모든 페이지가 이 파일 하나를 같이 씁니다.
   여기서 바꾸면 23개 도구 + 허브 + 소개·개인정보·문의 페이지에 한 번에 반영됩니다.
   도구마다 다른 고유 색·화면은 각 도구 페이지 안에 그대로 있습니다. */

:root {
  /* 공통 글꼴 */
  --site-font: "Geist", "Noto Sans KR", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  /* 바닥글·다른 도구 카드 */
  --site-line: var(--line, #e6e6ea);
  --site-ink: var(--ink, #0a0a0b);
  --site-muted: var(--ink2, var(--muted, #5b5b66));
  --site-faint: var(--ink3, var(--faint, #8a8a95));
  --site-card: var(--card, var(--surface, #fff));
  --site-radius: 16px;
  --site-accent: #2f6bff;
}

/* ── 바닥글 ── */
#foot .site-foot { display: flex; flex-direction: column; gap: 10px; width: 100%; font-size: 14px; color: var(--site-muted); }
#foot .sf-links, #foot .sf-langs { display: flex; flex-wrap: wrap; gap: 6px 18px; }
#foot .sf-links a, #foot .sf-langs a { color: inherit; text-decoration: none; }
#foot .sf-links a:hover, #foot .sf-langs a:hover { color: var(--site-ink); text-decoration: underline; }
#foot .sf-langs a[aria-current] { color: var(--site-ink); font-weight: 600; }
#foot .sf-copy { font-size: 13px; color: var(--site-faint); }

/* ── 다른 도구 카드 ── */
#toolL .site-tool { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px; border-radius: var(--site-radius); border: 1px solid var(--site-line); background: var(--site-card);
  text-decoration: none; color: var(--site-ink); min-height: 76px; transition: border-color .16s; }
#toolL .site-tool i { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: -.2px; overflow: hidden; white-space: nowrap; }
#toolL .site-tool b { font-size: 14px; font-weight: 600; line-height: 1.3; }
#toolL .site-tool span { font-size: 13px; color: var(--site-muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) and (pointer: fine) { #toolL .site-tool:hover { border-color: var(--site-faint); } }

/* ── 소개·개인정보·문의 페이지 ── */
body.site-doc { margin: 0; font: 16px/1.75 var(--site-font); color: #111113; background: #fbfbfa; word-break: keep-all; overflow-wrap: break-word; }
.site-doc .doc-top { border-bottom: 1px solid #e7e7ea; background: #fff; }
.site-doc .doc-top a { display: inline-flex; align-items: center; gap: 9px; max-width: 720px; margin: 0 auto; padding: 14px 20px;
  font-weight: 700; font-size: 17px; color: #111113; text-decoration: none; }
.site-doc .doc-top .mk { width: 28px; height: 28px; border-radius: 8px; background: #111113; color: #fff; display: grid; place-items: center; font-size: 13px; }
.site-doc main { max-width: 720px; margin: 0 auto; padding: 28px 20px 40px; }
.site-doc h1 { font-size: 26px; line-height: 1.3; margin: 0 0 16px; }
.site-doc h2 { font-size: 18px; margin: 28px 0 6px; }
.site-doc section + section { margin-top: 36px; padding-top: 28px; border-top: 1px solid #e7e7ea; }
.site-doc a { color: var(--site-accent); }
.site-doc .mail { font-weight: 700; font-size: 18px; }
.site-doc footer#foot { max-width: 720px; margin: 0 auto; padding: 20px 20px 32px; border-top: 1px solid #e7e7ea; }
@media (prefers-color-scheme: dark) {
  body.site-doc { background: #0c0c0e; color: #f2f2f4; }
  .site-doc .doc-top { background: #151518; border-color: #26262c; }
  .site-doc .doc-top a { color: #f2f2f4; }
  .site-doc .doc-top .mk { background: #f2f2f4; color: #0c0c0e; }
  .site-doc section + section, .site-doc footer#foot { border-color: #26262c; }
  .site-doc a { color: #7ea2ff; }
}

/* ── 화면 모드 버튼 (바닥글) ── */
#foot .sf-theme { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#foot .sf-theme span { margin-right: 6px; }
#foot .sf-theme button { font: inherit; font-size: 13px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--site-line);
  background: var(--site-card); color: var(--site-muted); cursor: pointer; }
#foot .sf-theme button[aria-pressed="true"] { background: var(--site-ink); border-color: var(--site-ink); color: var(--bg, #fff); font-weight: 600; }
