/* 도구 소개 페이지(/solutions/·/en/solutions/) 공용 — 2026-11-04 검색·AI 노출 정비.
   허브 화면이 아니라 검색 로봇·AI·처음 온 사람이 읽는 정적 페이지라, 자바스크립트 없이 글이 다 보이게 만든다.
   색은 허브와 같은 계열(어두운 화면 기본), 시스템이 밝은 화면이면 밝게. 원본: tools/seo/build_solutions.mjs */
:root {
  --bg: #0f1117; --panel: #161b27; --card: #1c2333; --border: #2a3347;
  --text: #e2e8f0; --muted: #a8bdd1; --accent: #3b82f6; --accent2: #06b6d4; --chip: #1e3a5f;
  --radius: 12px;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f6f8fb; --panel: #ffffff; --card: #ffffff; --border: #dbe3ee;
          --text: #142033; --muted: #4a5d75; --accent: #1d5fd1; --accent2: #0b7c93; --chip: #e6efff; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  font-size: 16px; line-height: 1.75;
  word-break: keep-all; overflow-wrap: break-word;      /* 낱말 가운데서 줄을 바꾸지 않는다(전역 규칙) */
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* 머리말 */
.top { border-bottom: 1px solid var(--border); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); white-space: nowrap; }
.brand img { width: 28px; height: 28px; flex: none; display: block; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: 14px; }
.top nav a { color: var(--muted); white-space: nowrap; }
.top nav a.btn { color: #fff; }

/* 단추 */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 9px;
       background: var(--accent); color: #fff; font-weight: 600; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 6px; }
.cta .btn { white-space: normal; text-align: center; text-wrap: balance; }   /* 도구 이름이 긴 단추(영문)가 좁은 화면에서 넘치지 않게 — 줄은 낱말 단위로만 */

/* 본문 */
main { padding: 26px 0 48px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--muted); }
.crumb span[aria-hidden] { margin: 0 6px; opacity: .6; }
h1 { font-size: clamp(26px, 4.4vw, 36px); line-height: 1.3; margin: 0 0 12px; text-wrap: balance; }
h2 { font-size: 21px; line-height: 1.4; margin: 40px 0 14px; padding-top: 4px; }
h3 { font-size: 17px; line-height: 1.5; margin: 0 0 6px; }
.lead { font-size: 18px; color: var(--text); margin: 0; max-width: 760px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--chip); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px;
            font-size: 13px; color: var(--text); }
.facts b { font-weight: 600; color: var(--muted); margin-right: 6px; }

ul.plain { margin: 0; padding-left: 20px; }
ul.plain li { margin: 4px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
ol.steps { margin: 0; padding-left: 22px; }
ol.steps li { margin: 6px 0; padding-left: 4px; }
.faq .q { margin-top: 18px; }
.faq .q:first-child { margin-top: 0; }
.faq p { margin: 0; color: var(--muted); }
.notes { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent2);
         border-radius: var(--radius); padding: 12px 16px; font-size: 15px; color: var(--muted); }
.notes p { margin: 4px 0; }

/* 목록 페이지 */
.cat { margin-top: 34px; }
.cat h2 { margin-top: 0; }
a.tool { display: block; color: var(--text); }
a.tool:hover { text-decoration: none; border-color: var(--accent); }
a.tool h3 { color: var(--text); }
.tag { display: inline-block; font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px;
       padding: 0 8px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.updated { font-size: 13px; color: var(--muted); margin-top: 28px; }

/* 꼬리말 */
.foot { border-top: 1px solid var(--border); background: var(--panel); font-size: 13px; color: var(--muted); padding: 22px 0 30px; }
.foot p { margin: 4px 0; }
.foot a { color: var(--muted); text-decoration: underline; }
.nowrap { white-space: nowrap; }

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .lead { font-size: 16.5px; }
  h2 { font-size: 19px; margin-top: 32px; }
  .top .wrap { padding-top: 8px; padding-bottom: 8px; }
  .top nav { margin-left: 0; width: 100%; }
}
