/* SHIFT 고객센터 — 관리자 콘솔(admin_console)의 글래시모피즘 문법을 그대로 따른다.
   토큰·유리 표면·배경 글로우/격자/노이즈 규격은 콘솔 styles.css 기준.
   굴절·색분리는 src/liquid-glass.js(콘솔 이식본)가 backdrop-filter:url()로 입힌다.
   색은 무채색만 쓴다 — 강조는 명도와 굵기로만 준다(사장 지시). */

:root {
  color-scheme: dark;

  /* 콘솔 다크 토큰 */
  --bg: #0c0c11;
  --surface: #16161c;
  --surface-soft: #1e1e26;
  --line: #26262f;
  --text: #ededf0;
  --sub: #b6b6c2;
  --muted: #85858f;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.55);

  /* 글래시모피즘 토큰(콘솔과 동일) */
  --glass: rgba(255, 255, 255, 0.055);
  --glass-soft: rgba(255, 255, 255, 0.035);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-blur: 22px;

  /* 무채색만 사용한다(사장 지시). 강조는 색이 아니라 명도·굵기로 준다. */
  --accent: #f2f2f4;
  --accent-ink: #101014;
  --accent-weak: rgba(255, 255, 255, 0.1);

  /* 타이포·간격 스케일 */
  --t-hero: clamp(28px, 4.2vw, 38px);
  --t-h2: 20px;
  --t-q: 15.5px;
  --t-a: 14.5px;
  --t-meta: 13px;
  --gap-section: clamp(48px, 7vw, 68px);
  --pad-card: 22px;
  --radius: 16px;
  --maxw: 1140px;

  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Segoe UI", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* 유리가 굴절할 배경 깊이 — 콘솔과 같은 구조, 글로우는 브랜드 톤으로 옅게 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 40% at 10% -4%, rgba(255, 255, 255, 0.14), transparent 62%),
    radial-gradient(44% 38% at 100% 2%, rgba(255, 255, 255, 0.09), transparent 64%),
    radial-gradient(48% 42% at 88% 104%, rgba(255, 255, 255, 0.11), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.075) 0 1.5px, transparent 1.5px 46px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.065) 0 1.5px, transparent 1.5px 46px);
}

/* 유리 그레인 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── 공통 유리 표면 ─────────────────────── */
/* 유리판이 둘 이상 겹치면 backdrop-filter가 뒤 판을 비우고 그리는 브라우저가 있다.
   각 판을 자기 스택 컨텍스트로 분리해 서로의 합성에 끼어들지 않게 한다. */
.glass,
.glass-soft {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    var(--shadow);
}

.glass-soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
    var(--glass-soft);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ── 상단바 ─────────────────────────────── */
.hc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}

.hc-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand .mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.brand .wordmark {
  height: 15px;
  width: auto;
  object-fit: contain;
}

.brand em {
  margin-left: 2px;
  color: var(--sub);
  font-style: normal;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hc-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hc-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--sub);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease;
}

.hc-header nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hc-header nav a.cta {
  margin-left: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.hc-header nav a.cta:hover {
  background: #fff;
}

/* ── 히어로 ─────────────────────────────── */
.hero {
  padding: clamp(56px, 8vw, 84px) 0 clamp(40px, 6vw, 60px);
  text-align: center;
}

.hero h1 {
  margin-bottom: 10px;
  font-size: var(--t-hero);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.24;
}

.hero > .shell > p {
  max-width: 520px;
  margin: 0 auto 30px;
  color: var(--sub);
  font-size: 15px;
}

.search {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.search input {
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 13px;
  outline: 0;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.16s ease;
}

.search input::placeholder {
  color: var(--muted);
}

.search input:focus {
  border-color: rgba(255, 255, 255, 0.26);
}

/* ── 섹션 ───────────────────────────────── */
section.block {
  padding-bottom: var(--gap-section);
}

.block-head {
  margin-bottom: 18px;
}

.block-head h2 {
  margin-bottom: 4px;
  font-size: var(--t-h2);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.block-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--t-meta);
}

/* ── 카테고리 ───────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--pad-card);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.cat-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.cat-card strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.cat-card span {
  color: var(--muted);
  font-size: var(--t-meta);
  line-height: 1.5;
}

.cat-card .cat-count {
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
}

/* ── 필터 칩 ────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.chip {
  padding: 7px 13px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-soft);
  color: var(--sub);
  font-size: var(--t-meta);
  font-weight: 600;
  transition: color 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.chip[aria-pressed="true"] {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}

/* ── FAQ ────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── 공지 ───────────────────────────────── */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notice-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  border-radius: var(--radius);
  font-size: var(--t-q);
  font-weight: 650;
  letter-spacing: -0.015em;
  transition: background 0.14s ease, border-color 0.16s ease;
}

.notice-list a:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.24);
}

.notice-list a::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 1.7px solid var(--muted);
  border-bottom: 1.7px solid var(--muted);
  transform: rotate(-45deg);
}

.notice-list .n-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-list .n-date {
  flex: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.notice-body {
  padding: 2px 20px 20px;
  color: var(--sub);
  font-size: var(--t-a);
  line-height: 1.8;
}

.notice-body > :first-child {
  margin-top: 0;
}

.notice-body > :last-child {
  margin-bottom: 0;
}

.notice-body h2,
.notice-body h3 {
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 700;
}

.notice-body p {
  margin: 0 0 10px;
}

.notice-body ul,
.notice-body ol {
  margin: 0 0 10px;
  padding-left: 19px;
}

.notice-body li {
  margin-bottom: 4px;
}

.notice-body strong,
.notice-body b {
  color: var(--text);
  font-weight: 650;
}

.notice-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.notice-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.notice-state {
  padding: 26px 20px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

/* 항목마다 독립된 유리판으로 둔다. 하나의 거대한 판은 backdrop-filter가
   내용을 통째로 비우고 그리는 문제가 있어 잘게 나눈다. */
.faq details {
  border-radius: var(--radius);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
  font-size: var(--t-q);
  font-weight: 650;
  letter-spacing: -0.015em;
  transition: background 0.14s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 1.7px solid var(--muted);
  border-bottom: 1.7px solid var(--muted);
  transform: rotate(-45deg) translate(-2px, 0);
  transition: transform 0.18s ease;
}

.faq details[open] summary {
  padding-bottom: 8px;
}

.faq details[open] summary::after {
  transform: rotate(45deg) translate(-1px, -1px);
}

.faq .answer {
  padding: 0 20px 20px;
  color: var(--sub);
  font-size: var(--t-a);
  line-height: 1.78;
}

.faq .answer > :last-child {
  margin-bottom: 0;
}

.faq .answer p {
  margin: 0 0 9px;
}

.faq .answer ul,
.faq .answer ol {
  margin: 0 0 9px;
  padding-left: 19px;
}

.faq .answer li {
  margin-bottom: 4px;
}

.faq .answer b {
  color: var(--text);
  font-weight: 650;
}

.faq .answer a {
  color: var(--text);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.grp {
  flex: none;
  min-width: 52px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.empty {
  padding: 40px 20px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ── 문의 ───────────────────────────────── */
.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 24px 26px;
  border-radius: var(--radius);
}

.contact-box h3 {
  margin-bottom: 3px;
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.contact-box p {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-meta);
}

.contact-actions {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid var(--glass-border);
  background: var(--glass-soft);
  font-size: 14px;
  font-weight: 650;
  transition: background 0.15s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn.primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.btn.primary:hover {
  background: #fff;
}

/* ── 푸터 ───────────────────────────────── */
.hc-footer {
  padding: 30px 0 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

.hc-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.hc-footer .links a {
  color: var(--sub);
  font-weight: 600;
}

.hc-footer .links a:hover {
  color: var(--text);
}

.hc-footer .biz {
  max-width: 680px;
}

.hc-footer .biz b {
  color: var(--sub);
  font-weight: 650;
}

/* ── 문서 페이지 ────────────────────────── */
.doc {
  padding: 40px 0 var(--gap-section);
}

.crumb {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: var(--t-meta);
}

.crumb a {
  color: var(--sub);
  font-weight: 600;
}

.crumb a:hover {
  color: var(--text);
}

.doc h1 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3.6vw, 31px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.28;
}

.doc .lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.75;
}

.doc h2 {
  margin: 34px 0 12px;
  font-size: 17.5px;
  font-weight: 750;
  letter-spacing: -0.022em;
}

.doc p,
.doc li {
  color: var(--sub);
  font-size: 14.8px;
  line-height: 1.8;
}

.doc b {
  color: var(--text);
  font-weight: 650;
}

.doc a {
  color: var(--text);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.doc ol,
.doc ul {
  padding-left: 20px;
}

.doc li {
  margin-bottom: 5px;
}

.panel {
  padding: 20px 22px;
  border-radius: var(--radius);
  margin: 14px 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

.mail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 6px;
  padding: 0 16px;
  border-radius: 11px;
  background: var(--accent-weak);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
}

table.terms {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 12px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

table.terms th,
table.terms td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  font-size: 14.2px;
  vertical-align: top;
}

table.terms tr:last-child th,
table.terms tr:last-child td {
  border-bottom: 0;
}

table.terms th {
  width: 46%;
  color: var(--text);
  font-weight: 650;
}

table.terms td {
  color: var(--sub);
}

.note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.2px;
  line-height: 1.72;
}

/* ── 반응형 ─────────────────────────────── */
@media (max-width: 840px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hc-header nav a:not(.cta) {
    display: none;
  }

  .grp {
    display: none;
  }

  .faq summary {
    padding: 16px 17px;
  }

  .faq .answer {
    padding: 0 17px 18px;
  }

  .contact-box {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  table.terms th,
  table.terms td {
    display: block;
    width: 100%;
  }

  table.terms th {
    padding-bottom: 2px;
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}


/* ── 카테고리 페이지 ────────────────────── */
.cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.cat-head .back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-soft);
  transition: background 0.14s ease;
}

.cat-head .back:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cat-head .back::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 1.8px solid var(--sub);
  border-bottom: 1.8px solid var(--sub);
  transform: rotate(45deg) translate(1px, -1px);
}

.cat-head h1 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.032em;
}

.cat-sub {
  margin: 0 0 30px 46px;
  color: var(--muted);
  font-size: 14px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 34px;
  align-items: start;
}

.group h2 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -0.022em;
}

.group .q-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group details {
  border-radius: 13px;
  overflow: hidden;
}

.group summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  cursor: pointer;
  list-style: none;
  font-size: 14.6px;
  font-weight: 600;
  letter-spacing: -0.012em;
  transition: background 0.14s ease;
}

.group summary::-webkit-details-marker {
  display: none;
}

.group summary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.group summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 1.7px solid var(--muted);
  border-bottom: 1.7px solid var(--muted);
  transform: rotate(-45deg) translate(-2px, 0);
  transition: transform 0.18s ease;
}

.group details[open] summary::after {
  transform: rotate(45deg) translate(-1px, -1px);
}

.group details[open] summary {
  padding-bottom: 6px;
}

.group .answer {
  padding: 0 17px 16px;
  color: var(--sub);
  font-size: 14.2px;
  line-height: 1.78;
}

.group .answer > :last-child {
  margin-bottom: 0;
}

.group .answer p {
  margin: 0 0 9px;
}

.group .answer ol,
.group .answer ul {
  margin: 0 0 9px;
  padding-left: 19px;
}

.group .answer li {
  margin-bottom: 4px;
}

.group .answer b {
  color: var(--text);
  font-weight: 650;
}

.group .answer a {
  color: var(--text);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.more-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

@media (max-width: 840px) {
  .group-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cat-sub {
    margin-left: 0;
  }
}


/* ── 정책 문서 페이지 ───────────────────── */
.policy-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.policy-nav {
  position: sticky;
  top: 74px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: var(--radius);
}

.policy-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--sub);
  font-size: 13.6px;
  font-weight: 600;
  transition: background 0.14s ease, color 0.14s ease;
}

.policy-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.policy-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-weight: 700;
}

.policy-body h2 {
  margin: 28px 0 10px;
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -0.022em;
}

.policy-body h2:first-child {
  margin-top: 0;
}

.policy-body p {
  margin: 0 0 9px;
  color: var(--sub);
  font-size: 14.6px;
  line-height: 1.82;
}

@media (max-width: 840px) {
  .policy-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .policy-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .policy-nav a {
    font-size: 13px;
  }
}
