/* CS24 / CS · a compact, readable customer support directory. */
:root {
  color-scheme: light;
  --background: #f8faf9;
  --surface: #ffffff;
  --ink: #182c36;
  --muted: #65777e;
  --subtle: #8a989d;
  --line: #e3eae7;
  --accent: #087961;
  --accent-hover: #05634e;
  --accent-soft: #e9f5ef;
  --accent-line: #c5e2d5;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-site="cs"] {
  --background: #f8f9fc;
  --accent: #315fa4;
  --accent-hover: #244d8a;
  --accent-soft: #edf2fa;
  --accent-line: #ccd9ee;
  --line: #e2e7ef;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--background); font-size: 15px; line-height: 1.8; word-break: keep-all; overflow-wrap: break-word; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--accent-line); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { width: min(680px, calc(100% - 36px)); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.skip-link { position: absolute; top: -100px; left: 18px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; line-height: 1; letter-spacing: -.7px; }
.brand-symbol svg { width: 23px; height: 23px; }
.brand-title { display: block; font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -.6px; }
.brand-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.3; letter-spacing: .05em; }
.top-nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 13px; font-weight: 600; }
.top-nav a { padding-block: 10px; transition: color .15s ease; }
.top-nav a:hover { color: var(--accent); }

.hero { padding: 49px 0 27px; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .025em; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.hero-title { font-size: clamp(30px, 6.5vw, 41px); line-height: 1.35; font-weight: 800; letter-spacing: -1.8px; }
.hero-title em, .hero-title span { color: var(--accent); font-style: normal; }
.lead { margin-top: 17px; color: var(--muted); font-size: 15px; line-height: 1.9; letter-spacing: -.25px; }
.hero-note { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.hero-note strong { color: var(--accent); }
.hero-note .icon { width: 14px; height: 14px; color: var(--accent); }
.search-wrap { display: none; align-items: center; gap: 11px; padding: 0 17px; height: 58px; background: var(--surface); border: 1px solid #d5e0db; border-radius: 12px; box-shadow: 0 3px 9px #182c3603; transition: border-color .15s, box-shadow .15s; }
.js .search-wrap { display: flex; }
.search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-wrap > .icon { color: var(--accent); }
.search-wrap input { min-width: 0; width: 100%; height: 100%; border: 0; background: transparent; color: var(--ink); font-size: 14px; outline: none; }
.search-wrap input:focus-visible { outline: none; }
.search-wrap input::placeholder { color: #8a969b; }
.search-wrap input::-webkit-search-cancel-button { -webkit-appearance: none; }
#clear-search { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--background); color: var(--muted); font-size: 19px; line-height: 1; }
.category-tabs { display: none; flex-wrap: wrap; gap: 7px; margin: 16px 0 32px; }
.js .category-tabs { display: flex; }
.filter-chip { padding: 7px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.65; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.filter-chip:hover { color: var(--accent); border-color: var(--accent-line); }
.filter-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.section-intro { margin: -3px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.section-intro h2 { margin-bottom: 5px; color: var(--ink); font-size: 18px; }
#directory { scroll-margin-top: 24px; }
.search-wrap + #result-status + #directory { margin-top: 28px; }
.category-section { margin-bottom: 31px; scroll-margin-top: 28px; }
.section-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.section-heading h2 { display: flex; align-items: center; gap: 9px; font-size: 17px; letter-spacing: -.5px; font-weight: 750; }
.section-heading .text-link { margin-left: auto; flex-shrink: 0; font-size: 11px; font-weight: 500; text-decoration: none; }
.count { color: var(--subtle); font-size: 12px; font-weight: 500; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.center-card { min-height: 96px; display: flex; align-items: center; gap: 12px; padding: 17px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.center-card:hover { border-color: var(--accent-line); box-shadow: 0 5px 16px #182c3606; transform: translateY(-2px); }
.brand-avatar { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--brand, var(--accent)) 10%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--brand, var(--accent)) 7%, #fff); color: var(--brand, var(--accent)); font-size: 14px; font-weight: 800; line-height: 1; letter-spacing: -.7px; }
.brand-avatar.large { width: 58px; height: 58px; border-radius: 16px; font-size: 19px; }
.card-copy { min-width: 0; flex: 1; }
.card-copy h3 { font-size: 15px; line-height: 1.5; font-weight: 750; letter-spacing: -.5px; }
.card-copy p { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.card-arrow { width: 16px; height: 16px; margin-left: auto; color: #a9b7b6; transition: color .15s ease, transform .15s ease; }
.center-card:hover .card-arrow { color: var(--accent); transform: translateX(2px); }
#empty-state { padding: 44px 22px; margin-bottom: 30px; background: var(--surface); border: 1px dashed var(--accent-line); border-radius: var(--radius); text-align: center; color: var(--muted); }
#empty-state h2 { margin-bottom: 9px; color: var(--ink); font-size: 19px; }
#empty-state p { font-size: 13px; }
.info-panel { margin: 37px 0; padding: 25px 26px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); }
.info-panel h2 { margin-bottom: 10px; font-size: 17px; font-weight: 750; letter-spacing: -.5px; }
.info-panel p { color: var(--muted); font-size: 13px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; margin-top: 19px; }
.info-item h3 { margin-bottom: 4px; font-size: 13px; }
.info-item > strong { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 750; }
.info-item p { font-size: 12px; }
.notice { margin-top: 16px; padding: 15px 18px; border-left: 3px solid var(--accent-line); border-radius: 0 8px 8px 0; background: var(--accent-soft); color: var(--muted); font-size: 13px; line-height: 1.85; }
.notice strong { color: var(--ink); }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.text-link .icon, .source-list a .icon { display: inline-block; width: 14px; height: 14px; margin: 0 0 0 4px; vertical-align: -2px; color: currentColor; }
.info-panel > .text-link { display: inline-flex; align-items: center; gap: 3px; margin-top: 18px; font-size: 12px; }

.breadcrumbs { padding-top: 24px; margin-bottom: 28px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; list-style: none; font-size: 11px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #b2bec0; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }
.detail-hero { padding-bottom: 27px; }
.detail-hero .eyebrow { margin-bottom: 15px; }
.detail-heading { display: flex; align-items: center; gap: 16px; }
.detail-heading h1 { font-size: clamp(26px, 5.5vw, 34px); line-height: 1.4; font-weight: 800; letter-spacing: -1.2px; }
.detail-summary { margin-top: 22px; color: var(--muted); font-size: 15px; line-height: 1.95; }
.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; margin-top: 15px; color: var(--muted); font-size: 11px; }
.meta-row span { display: inline-flex; align-items: center; gap: 5px; }
.meta-row .icon { width: 13px; height: 13px; }
.meta-row time { font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 52px; padding: 12px 21px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 700; line-height: 1.6; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.button.primary { flex: 1 1 220px; background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.secondary { flex: 1 1 190px; background: var(--surface); color: var(--ink); }
.button.secondary:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.button .icon { width: 16px; height: 16px; }
.destination-note { margin-top: 11px; font-size: 11px; line-height: 1.85; color: var(--muted); text-align: center; }
.page-toc { display: flex; flex-wrap: wrap; gap: 6px 19px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.page-toc a:hover { color: var(--accent); }
.content-block { margin-top: 35px; }
.content-block h2, .prose h2 { margin-bottom: 15px; font-size: 20px; line-height: 1.55; font-weight: 750; letter-spacing: -.7px; }
.content-block > p, .prose p { color: #53676f; font-size: 14px; line-height: 2; }
.content-block > p + p, .prose p + p { margin-top: 12px; }
.content-block > .text-link { display: inline-flex; align-items: center; gap: 3px; margin-top: 13px; font-size: 13px; }
.check-list { list-style: none; padding: 19px 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.check-list li { position: relative; padding-left: 24px; color: #53676f; font-size: 13px; line-height: 1.95; }
.check-list li + li { margin-top: 10px; }
.check-list li::before { position: absolute; left: 0; top: 3px; content: "✓"; color: var(--accent); font-size: 13px; font-weight: 800; }
.topic-list { display: grid; gap: 10px; }
p + .topic-list { margin-top: 19px; }
.topic-card { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.topic-card h3 { margin-bottom: 6px; font-size: 14px; line-height: 1.6; font-weight: 750; }
.topic-card p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.steps { padding: 0; list-style: none; counter-reset: step; }
.quick-facts + .steps { margin-top: 24px; }
.steps li { position: relative; min-height: 65px; padding: 0 0 22px 46px; counter-increment: step; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; }
.steps li strong { font-size: 14px; }
.steps li p { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.quick-facts { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.quick-facts > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 15px; padding: 15px 20px; }
.quick-facts > div + div { border-top: 1px solid var(--line); }
.quick-facts dt { color: var(--muted); font-size: 12px; }
.quick-facts dd { margin: 0; font-size: 13px; line-height: 1.8; }
.quick-facts a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.ad-slot { margin: 32px 0; padding: 13px 0 0; min-height: 290px; text-align: center; background: #f2f5f3; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
body[data-site="cs"] .ad-slot { background: #f1f3f8; }
.ad-slot ins.adsbygoogle { display: block; min-height: 250px; width: 100%; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.faq details + details { margin-top: 8px; }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 17px 45px 17px 19px; font-size: 13px; line-height: 1.8; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 16px; right: 18px; color: var(--accent); font-size: 19px; line-height: 1.3; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 19px; padding: 0 0 19px; color: var(--muted); font-size: 13px; line-height: 1.95; }
.source-list { padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 2; }
.source-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.related-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 55px; padding: 13px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 600; transition: border-color .15s; }
.related-card:hover { border-color: var(--accent-line); color: var(--accent); }
.related-card .icon { width: 15px; height: 15px; color: var(--subtle); }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 31px; color: var(--muted); font-size: 12px; }
.back-link:hover { color: var(--accent); }
.back-link .icon { width: 15px; height: 15px; }
.prose { padding: 39px 0 10px; }
.prose h1 { margin-bottom: 17px; font-size: 30px; letter-spacing: -1px; line-height: 1.45; }
.prose h2 { margin-top: 30px; font-size: 19px; }
.prose ul, .prose ol { padding-left: 22px; color: #53676f; font-size: 14px; }
.prose li + li { margin-top: 8px; }
.prose a:not(.button) { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose .button, .hero > .button { margin-top: 25px; }

.site-footer { margin-top: 52px; padding: 27px 0 29px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.footer-brand { color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: -.3px; }
.footer-brand > span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.5; font-weight: 400; letter-spacing: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 13px; color: var(--muted); font-size: 11px; }
.footer-links a:hover { color: var(--accent); }
.footer-note { color: var(--muted); font-size: 11px; line-height: 1.9; }
.footer-note + .footer-note { margin-top: 5px; }
.copyright { margin-top: 12px; color: var(--subtle); font-size: 10px; }

/* Detail pages use one quiet white panel and two prominent stacked actions. */
body[data-page="detail"] { background: var(--background); }
body[data-page="detail"] .header-inner { min-height: 64px; }
body[data-page="detail"] .brand { font-size: 18px; line-height: 1.4; font-weight: 800; letter-spacing: -.5px; }
body[data-page="detail"] .detail-panel { margin-top: 16px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
body[data-page="detail"] .detail-hero { padding: 0 0 28px; }
body[data-page="detail"] .detail-hero .eyebrow { margin: 0 0 11px; font-size: 12px; }
body[data-page="detail"] .detail-hero .eyebrow::before { content: none; }
body[data-page="detail"] .detail-hero h1 { font-size: clamp(26px, 5.5vw, 32px); font-weight: 800; line-height: 1.45; letter-spacing: -1px; }
body[data-page="detail"] .detail-summary { margin-top: 14px; font-size: 15px; line-height: 1.85; }
body[data-page="detail"] .actions { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; margin: 24px 0 0; padding: 0; }
body[data-page="detail"] .actions .button { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin: 0; padding: 13px 16px; border-radius: 8px; font-size: 22px; line-height: 1.4; text-align: center; }
body[data-page="detail"] .actions .button .icon,
body[data-page="detail"] .actions .button .card-arrow { width: 20px; height: 20px; margin: 0; color: currentColor; }
body[data-page="detail"] .ad-slot { min-height: 250px; margin: 20px 0 0; padding: 0; border: 0; background: transparent; }
body[data-page="detail"] .actions + .ad-slot { margin-top: 20px; }
body[data-page="detail"] .page-toc { margin: 0; }
body[data-page="detail"] .site-footer { margin-top: 32px; }

@media (max-width: 540px) {
  body[data-page="detail"] .header-inner { min-height: 60px; }
  body[data-page="detail"] .brand { font-size: 17px; }
  body[data-page="detail"] .detail-panel { margin-top: 12px; padding: 20px; }
  body[data-page="detail"] .detail-summary { font-size: 14px; }
  .header-inner { min-height: 75px; }
  .brand-symbol { width: 34px; height: 34px; border-radius: 10px; }
  .brand { gap: 9px; }
  .brand-title { font-size: 16px; }
  .brand-subtitle { font-size: 9px; }
  .top-nav { gap: 14px; font-size: 11px; }
  .hero { padding-top: 34px; }
  .hero-title { letter-spacing: -1.3px; }
  .lead { font-size: 14px; }
  .hero-note { font-size: 11px; }
  .category-tabs { gap: 6px; margin-bottom: 27px; }
  .filter-chip { padding: 7px 11px; font-size: 11px; }
  .center-card { padding: 14px 12px; gap: 9px; min-height: 90px; }
  .brand-avatar { width: 36px; height: 36px; border-radius: 10px; font-size: 12px; }
  .card-copy h3 { font-size: 13px; }
  .card-copy p { font-size: 10px; }
  .card-arrow { width: 13px; height: 13px; }
  .detail-heading { gap: 12px; }
  .brand-avatar.large { width: 48px; height: 48px; border-radius: 13px; font-size: 16px; }
  .detail-summary { font-size: 14px; }
  .actions { flex-direction: column; }
  .button.primary, .button.secondary { flex-basis: auto; }
  .content-block { margin-top: 30px; }
  .content-block h2 { font-size: 18px; }
  .info-panel { padding: 21px; }
  .info-grid { grid-template-columns: 1fr; gap: 15px; }
  .quick-facts > div { grid-template-columns: 86px minmax(0, 1fr); padding: 13px 16px; gap: 10px; }
  .footer-top { align-items: flex-start; }
  .footer-links { justify-content: flex-end; gap: 7px 12px; }
}

@media (max-width: 430px) {
  .card-grid { grid-template-columns: 1fr; gap: 8px; }
  .center-card { min-height: 83px; padding: 14px 16px; gap: 13px; }
  .brand-avatar { width: 42px; height: 42px; border-radius: 11px; font-size: 13px; }
  .card-copy h3 { font-size: 14px; }
  .card-copy p { font-size: 11px; }
  .card-arrow { width: 16px; height: 16px; }
  .top-nav { gap: 11px; }
  .info-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .detail-heading h1 { font-size: 25px; letter-spacing: -1px; }
  .footer-top { flex-direction: column; gap: 8px; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
