:root {
  color-scheme: light;
  --ifm-text: #172033;
  --ifm-muted: #647087;
  --ifm-line: #dfe4ec;
  --ifm-soft: #f6f8fb;
  --ifm-accent: #c93352;
  --ifm-accent-dark: #9f203c;
  --ifm-font-sans: "Pretendard Variable", Pretendard, "SUIT Variable", SUIT, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ifm-text);
  font-family: var(--ifm-font-sans);
  font-size: 18px;
  line-height: 1.82;
  letter-spacing: -0.012em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 228, 236, .92);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: flex;
  width: min(100% - 32px, 1080px);
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--ifm-text);
  font-weight: 900;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}

.brand small { color: var(--ifm-accent); font-size: 12px; font-weight: 800; letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: #3c4659; font-size: 14px; font-weight: 750; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ifm-accent-dark); }
.site-main { min-height: 70vh; }

.breadcrumb {
  display: flex;
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding-top: 28px;
  align-items: center;
  gap: 10px;
  color: var(--ifm-muted);
  font-size: 13px;
  line-height: 1.5;
}

.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb span[aria-current="page"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-meta { margin: -18px 0 32px; color: var(--ifm-muted); font-size: 13px !important; line-height: 1.65; }

.site-footer { border-top: 1px solid var(--ifm-line); background: #111827; color: #d8deea; }
.footer-inner { display: grid; width: min(100% - 32px, 1080px); margin: 0 auto; padding: 48px 0; gap: 30px; }
.footer-inner section { display: grid; gap: 12px; }
.footer-inner strong { color: #fff; font-size: 14px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-inner a { color: #d8deea; font-size: 14px; text-decoration: none; }
.footer-inner a:hover, .footer-inner a:focus-visible { color: #fff; text-decoration: underline; }
.footer-inner p { margin: 0; color: #9ba7bb; font-size: 13px; }
.footer-inner .operator-profile { max-width: 920px; line-height: 1.8; }
.footer-inner .operator-profile a { font-size: inherit; overflow-wrap: anywhere; }

.support-page > p:first-of-type {
  padding: 20px 22px;
  border: 1px solid #f0c9d2;
  border-radius: 14px;
  background: #fff7f9;
  color: #4f2732;
}

.ifm-article {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 48px 0 96px;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.ifm-article code,
.ifm-article a { overflow-wrap: anywhere; }

.ifm-article h1 { font-size: clamp(2.2rem, 6vw, 3.15rem); font-weight: 850; letter-spacing: -0.045em; line-height: 1.22; margin: 0 0 30px; }
.ifm-article h2 { font-size: clamp(1.55rem, 4vw, 2.05rem); font-weight: 820; letter-spacing: -0.035em; line-height: 1.34; margin: 60px 0 20px; }
.ifm-article h3 { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.48; margin: 38px 0 13px; }
.ifm-article p, .ifm-article li { font-size: 18px; }
.ifm-article table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin: 28px 0; }
.ifm-article th, .ifm-article td { min-width: 140px; padding: 14px; border: 1px solid var(--ifm-line); text-align: left; vertical-align: top; }
.ifm-article th { background: var(--ifm-soft); }
.ifm-article blockquote { margin: 28px 0; padding: 18px 20px; border-left: 4px solid var(--ifm-accent); background: var(--ifm-soft); color: #354056; }
.ifm-article pre { padding: 20px; overflow-x: auto; border-radius: 12px; background: #111827; color: #f9fafb; }
.ifm-article a { color: #0b57d0; text-underline-offset: 3px; }

.top-funnel {
  margin: 22px 0 48px;
}

.ifm-article .top-answer {
  margin: 0 2px 22px;
  color: #202a3d;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.027em;
  line-height: 1.62;
}

.top-action-links {
  display: grid;
  gap: 12px;
}

.top-action-link {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 17px 14px 22px;
  border-radius: 10px;
  background: var(--ifm-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 12px rgba(159, 32, 60, .1);
  color: #fff !important;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.top-action-link:hover,
.top-action-link:focus-visible {
  background: var(--ifm-accent-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 7px 18px rgba(159, 32, 60, .18);
  transform: translateY(-1px);
}

.top-action-link:focus-visible {
  outline: 3px solid rgba(11, 87, 208, .32);
  outline-offset: 3px;
}

.top-action-label { min-width: 0; }

.top-action-arrow {
  display: inline-grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: transform .16s ease;
}

.top-action-link:hover .top-action-arrow,
.top-action-link:focus-visible .top-action-arrow { transform: translateX(3px); }

.official-cta-zone,
.calculator-zone {
  margin: 80px 0;
  padding: 24px;
  border: 1px solid var(--ifm-line);
  border-radius: 16px;
  background: var(--ifm-soft);
}

.official-cta-zone > p:first-of-type > a,
.official-cta-zone > a {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 10px;
  background: var(--ifm-accent);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.official-cta-zone > p:first-of-type > a:hover,
.official-cta-zone > p:first-of-type > a:focus-visible,
.official-cta-zone > a:hover,
.official-cta-zone > a:focus-visible { background: var(--ifm-accent-dark); }

.ad-slot-shell {
  min-height: 120px;
  margin: 80px 0;
  padding: 24px 0;
  border-block: 1px solid var(--ifm-line);
  text-align: center;
}

.ad-label { display: block; margin-bottom: 12px; color: var(--ifm-muted); font-size: 11px; letter-spacing: .06em; }
.ad-placeholder { min-height: 70px; background: repeating-linear-gradient(135deg, #f8f9fb, #f8f9fb 8px, #eef1f5 8px, #eef1f5 16px); }

.calculator-grid { display: grid; gap: 18px; }
.calculator-grid label { display: grid; gap: 7px; font-weight: 700; }
.calculator-grid input, .calculator-grid select, .calculator-grid button { min-height: 48px; border: 1px solid #aeb7c6; border-radius: 8px; padding: 10px 12px; font: inherit; }
.calculator-grid button { background: #172033; color: #fff; font-weight: 800; cursor: pointer; }
.calculator-result { min-height: 52px; margin-top: 20px; padding: 16px; border-radius: 8px; background: #fff; border: 1px solid var(--ifm-line); }

@media (max-width: 600px) {
  .site-header { position: static; }
  .site-header-inner { min-height: auto; padding: 15px 0; align-items: flex-start; gap: 12px; }
  .brand { display: grid; gap: 0; line-height: 1.25; }
  .site-nav { gap: 13px; }
  .site-nav a { font-size: 12px; }
  .site-nav a:nth-child(2) { display: none; }
  .breadcrumb { width: min(100% - 24px, 760px); padding-top: 20px; }
  .ifm-article { width: min(100% - 24px, 760px); padding-top: 32px; }
  .ifm-article h1 { font-size: clamp(2.15rem, 9vw, 2.65rem); margin-bottom: 26px; }
  .ifm-article h2 { font-size: clamp(1.55rem, 7vw, 1.85rem); }
  .ifm-article p, .ifm-article li { font-size: 17px; }
  .official-cta-zone, .calculator-zone, .ad-slot-shell { margin-block: 80px; }
  .official-cta-zone, .calculator-zone { padding: 18px; }
  .top-funnel { margin-top: 16px; }
  .ifm-article .top-answer { margin-bottom: 20px; font-size: 20px; line-height: 1.58; }
  .top-action-link { min-height: 64px; padding: 13px 14px 13px 18px; font-size: 18px; }
  .top-action-arrow { flex-basis: 30px; width: 30px; height: 30px; font-size: 19px; }
  .page-meta { margin-top: -14px; }
  .footer-inner { width: min(100% - 24px, 1080px); padding: 38px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .top-action-link,
  .top-action-arrow { transition: none; }
}
