/* Cloud-Barista style (Bootstrap "Solid"-like): slate navbar, sky-blue title band,
   Raleway headings + Lato body, 8/4 content+sidebar, slate footer. Light theme only. */
:root {
  color-scheme: light;
  --slate: #384452;
  --sky: #00b3fe;
  --link: #428bca;
  --text: #384452;
  --muted: #8a94a0;
  --line: #e5e8ec;
  --soft: #f4f6f8;
  --white: #ffffff;
  --accent: #127e8c;
  --surface: #ffffff;
  --thread: #f0b45a;
  --head: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
[hidden] { display: none !important; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.75; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5 { font-family: var(--head); margin: 0; text-wrap: balance; }
p { margin: 0 0 12px; }

.container {
  max-width: 1170px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: var(--slate); padding-top: env(safe-area-inset-top, 0px); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; color: var(--white); text-decoration: none !important; }
.logo span { font-family: var(--head); font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: .01em; }
.logo small { display: block; margin-top: 3px; font-weight: 600; font-size: 10.5px; line-height: 1.2; color: #c9d2db; letter-spacing: .06em; }
.nav-links { display: flex; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav-links a { color: var(--white); font-weight: 700; font-size: 12.5px; text-transform: uppercase; padding: 24px 15px; white-space: nowrap; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--sky); }
@media (max-width: 760px) {
  .navbar .container { justify-content: center; gap: 0; }
  .logo { padding-top: 10px; }
  .nav-links { flex-wrap: wrap; justify-content: center; overflow: visible; }
  .nav-links a { padding: 8px 9px 12px; font-size: 12px; }
}

main { padding-top: 70px; }
@media (max-width: 760px) { main { padding-top: 110px; } }

/* blue title band */
.band { background: var(--sky); margin-top: 60px; padding-block: 25px; }
.band h3 { color: var(--white); font-size: 24px; font-weight: 700; margin: 10px 0 10px; }
@media (max-width: 760px) { .band { margin-top: 0; } }

.mtb { margin-block: 60px 80px; }

/* typographic content */
.content h4 { font-size: 18px; font-weight: 700; color: var(--slate); margin: 34px 0 12px; }
.content h4:first-child { margin-top: 0; }
.content p { color: #555f6b; font-size: 14px; }
.content ul { margin: 0 0 12px; padding-left: 20px; color: #555f6b; }
.content li + li { margin-top: 3px; }
.figure-img { margin: 18px 0 26px; text-align: center; }
.figure-img img { border: 1px solid var(--line); }
.figure-cap { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 6px; }

/* module rows (like CB-Spider blocks) */
.module { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; padding-block: 28px; border-top: 1px solid var(--line); align-items: start; }
.module .pic { text-align: center; color: #a3762a; }
.module .pic svg { width: 96px; height: 96px; stroke-width: 1; color: var(--sky); }
.module .pic b { display: block; font-family: var(--head); font-size: 15px; color: #c47f16; margin-top: 6px; }
.module h4 { margin-top: 0 !important; }
.module h4 em { font-style: normal; color: #c47f16; }
@media (max-width: 640px) { .module { grid-template-columns: minmax(0, 1fr); gap: 8px; } .module .pic svg { width: 72px; height: 72px; } }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 12px 0 22px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { border: 1px solid #dddddd; padding: 9px 11px; text-align: left; vertical-align: top; line-height: 1.6; }
thead th { background: var(--soft); font-weight: 700; white-space: nowrap; }
tbody th { font-weight: 700; white-space: nowrap; }
tbody tr:nth-child(even) td, tbody tr:nth-child(even) th { background: #fafbfc; }

.btn { display: inline-block; background: var(--white); color: #333; border: 1px solid #ccc; border-radius: 4px; padding: 6px 12px; font-size: 13.5px; text-decoration: none !important; }
.btn:hover { background: #e6e6e6; }
.btn.dark { background: var(--slate); color: var(--white); border-color: var(--slate); }
.btn.dark:hover { background: #2b3540; }

/* blog layout */
.blog { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 30px; }
@media (max-width: 900px) { .blog { grid-template-columns: minmax(0, 1fr); } }
.post { border-top: 2px solid var(--slate); padding-top: 24px; margin-bottom: 40px; }
.post h3 { font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.post h3 a { color: var(--sky); }
.post .meta { font-size: 11.5px; color: var(--muted); margin-bottom: 14px; }
.post p { color: #555f6b; }
.post .ph { margin: 6px 0 14px; max-width: 520px; aspect-ratio: 16 / 9; display: grid; place-items: center; align-content: center; gap: 8px; background: repeating-linear-gradient(45deg, #f3f5f8 0 12px, #eceff3 12px 24px); color: var(--muted); border: 1px solid var(--line); font-size: 13px; }
.post .ph svg { width: 40px; height: 40px; stroke-width: 1.2; }
.post .doc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sample { display: inline-block; font-family: var(--body); font-size: 11px; font-weight: 700; color: #b26a00; border: 1px dashed #d79a3b; border-radius: 4px; padding: 0 6px; margin-left: 6px; vertical-align: 3px; white-space: nowrap; }

.side h4 { font-size: 18px; font-weight: 700; color: var(--slate); margin: 0 0 12px; }
.side .hline { height: 2px; background: var(--slate); width: 100%; margin-bottom: 14px; }
.side section { margin-bottom: 36px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { padding: 6px 0; border-bottom: 1px solid #f0f2f4; }
.side li a { display: flex; align-items: center; gap: 6px; }
.side li svg { width: 14px; height: 14px; color: var(--link); flex: none; }
.side .count { margin-left: auto; color: var(--muted); font-size: 12px; }
.side .recent a { display: block; }
.side .recent small { display: block; color: var(--muted); font-style: italic; font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { background: var(--soft); border: 1px solid var(--line); padding: 2px 10px; border-radius: 3px; font-size: 12.5px; color: var(--slate); }

/* home */
.banner { padding-top: 34px; background: #eef1f4; }
.banner .container { display: grid; place-items: center; padding-bottom: 34px; }
.banner img { max-width: 920px; width: 100%; border: 1px solid #d5dbe1; background: var(--white); }
.services { padding-block: 60px; }
.services .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; text-align: center; }
.services svg { width: 52px; height: 52px; color: var(--sky); stroke-width: 1.6; }
.services h4 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: 10px 0 10px; color: var(--slate); }
.services p { color: #555f6b; max-width: 30em; margin: 0 auto 16px; }
@media (max-width: 760px) { .services .grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.latest { background: var(--soft); padding-block: 50px; }
.latest h4 { font-size: 18px; font-weight: 700; color: var(--slate); }
.latest .hline { height: 2px; background: var(--slate); margin: 10px 0 14px; }
.latest ul { list-style: none; margin: 0; padding: 0; }
.latest li { padding: 4px 0; }
.members { padding-block: 50px 60px; text-align: center; }
.members h4 { font-size: 15px; font-weight: 700; text-transform: uppercase; color: var(--slate); margin-bottom: 30px; }
.members .grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 28px; }
.member { min-width: 150px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 4px; display: grid; gap: 2px; }
.member b { font-family: var(--head); font-size: 15.5px; color: var(--slate); }
.member small { color: var(--muted); font-size: 12px; }

/* footer */
.footer { background: var(--slate); color: #d4dbe2; padding-block: 60px; }
.footer .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
.footer h4 { color: var(--white); font-size: 16px; font-weight: 700; }
.footer .hline { height: 2px; background: var(--white); opacity: .85; margin: 10px 0 16px; width: 55%; }
.footer .icons { display: flex; gap: 14px; }
.footer .icons a { color: var(--white); }
.footer .icons svg { width: 26px; height: 26px; }
.footer p { margin: 0 0 4px; font-size: 13px; }
.footer .credit { grid-column: 1 / -1; font-size: 11.5px; color: #9aa6b2; }
.footer .right { justify-self: end; width: 100%; max-width: 380px; }
@media (max-width: 640px) { .footer .container { grid-template-columns: minmax(0, 1fr); } .footer .right { justify-self: start; } }

/* fabric svg (from previous version) */
.fabric-fig .scroll { overflow-x: auto; background: #0b1d2b; padding: 14px; }
.fabric-fig svg { display: block; width: 100%; min-width: 560px; height: auto; }
.svg-ink { fill: #e6f1f6; } .svg-muted { fill: #8fb1c2; } .svg-surface { fill: #12303f; stroke: #2b5468; }
.svg-accent { fill: #127e8c; } .svg-accent-soft { fill: #10394a; stroke: #4fc3d0; }
.svg-thread-line { stroke: #f0b45a; fill: none; } .svg-accent-line { stroke: #4fc3d0; fill: none; }
.svg-on-accent { fill: #ffffff; } .svg-mono { font-family: ui-monospace, Menlo, monospace; } .svg-sans { font-family: var(--body); }
.btn svg { width: 15px; height: 15px; vertical-align: -3px; }

/* information aids */
.content [id] { scroll-margin-top: 130px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--slate); margin-bottom: 10px; }
.facts > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.facts span { color: var(--muted); font-size: 13px; }
.facts b { color: var(--slate); font-weight: 700; font-size: 14px; line-height: 1.6; }
.facts > div:first-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.callout { background: #eaf7ff; border-left: 4px solid var(--sky); padding: 14px 18px; margin: 14px 0 18px; }
.callout b { font-family: var(--head); color: var(--slate); }
.callout p { margin: 6px 0 0; }
.content h5 { font-family: var(--head); font-size: 15px; font-weight: 700; color: var(--slate); margin: 22px 0 8px; }
.who { display: inline-block; font-size: 12.5px !important; color: var(--white) !important; background: var(--slate); padding: 1px 10px; border-radius: 3px; margin-bottom: 10px !important; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0 20px; }
.kpis > div { border: 1px solid var(--line); border-top: 3px solid var(--sky); padding: 16px; display: grid; gap: 2px; align-content: start; }
.kpis b { font-family: var(--head); font-size: 28px; color: var(--sky); line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpis span { font-weight: 700; color: var(--slate); }
.kpis small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .kpis { grid-template-columns: minmax(0, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chips span { border: 1px solid var(--line); background: var(--soft); padding: 4px 12px; border-radius: 3px; font-size: 13.5px; color: var(--slate); }
table.compare td, table.compare th { text-align: center; white-space: nowrap; }
table.compare tbody th { text-align: left; }
.ours { background: #eaf7ff !important; color: #0077aa; font-weight: 700; }
.quick { padding-block: 40px 0; }
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
@media (max-width: 900px) { .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .kpis.four { grid-template-columns: minmax(0, 1fr); } }
.quick .kpis b { font-size: 24px; }
.quick-more { text-align: right; margin: 10px 0 0; }

/* in-page section tabs (sticky under the navbar) */
.subnav { position: sticky; top: calc(70px + env(safe-area-inset-top, 0px)); z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 14px 12px 12px; font-size: 14px; font-weight: 500; color: var(--slate); border-bottom: 3px solid transparent; text-decoration: none !important; white-space: nowrap; }
.subnav a:hover { color: var(--sky); }
.subnav a.active { color: var(--sky); border-bottom-color: var(--sky); font-weight: 700; }
.subnav + .mtb { margin-top: 44px; }
@media (max-width: 760px) { .subnav { top: calc(var(--navh, 104px) + env(safe-area-inset-top, 0px)); } }
@media (max-width: 760px) { .content [id] { scroll-margin-top: calc(var(--navh, 104px) + 64px); } }
td, th { overflow-wrap: break-word; }

.plain-title { font-size: 13px !important; font-weight: 700; color: var(--sky) !important; margin: 0 0 2px !important; }
.kpis em { font-style: normal; font-size: 13px; color: #555f6b; line-height: 1.6; margin-top: 4px; }
.kpis small { margin-top: 4px; }
table.compare small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 8px 0 0; border-top: 2px solid var(--slate); }
.terms > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.terms dt { font-weight: 700; color: var(--slate); }
.terms dd { margin: 0; color: #555f6b; font-size: 14px; line-height: 1.65; }
@media (max-width: 760px) { .terms { grid-template-columns: minmax(0, 1fr); } .terms > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* minimal footer — 연락처 없이 저작권 한 줄 */
.footer.minimal { padding-block: 34px; }
.footer.minimal .container { grid-template-columns: minmax(0, 1fr); }
.footer.minimal .credit { grid-column: 1 / -1; text-align: center; margin: 0; }
.footer .credit a { color: #d4dbe2; text-decoration: underline; }
.footer .credit a:hover { color: #ffffff; }

/* 아이콘 없는 모듈 라벨 */
.module.compact { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; }
.module .pic.text-only { text-align: left; }
.module .pic.text-only b { margin-top: 0; white-space: nowrap; }
@media (max-width: 640px) { .module.compact { grid-template-columns: minmax(0, 1fr); } }

/* 알림마당 — 사이드바 없는 단일 열 */
.blog.single { grid-template-columns: minmax(0, 1fr); }
.news-group { font-family: var(--head); font-size: 20px; font-weight: 700; color: var(--slate); margin: 34px 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--slate); }
.news-group:first-child { margin-top: 0; }
.blog.single .post { border-top: 1px solid var(--line); }
