/* MOOV — shared styles for sub pages */
:root {
  --blue: #1999bd;
  --teal: #1da9b3;
  --ink: #1a2b33;
  --gray: #5c6874;
  --gray-light: #9aa5ad;
  --line: #e8ebed;
  --bg: #ffffff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 0.14em; font-size: 17px;
  color: var(--ink); text-decoration: none;
}
.brand img { width: 24px; height: 24px; object-fit: contain; display: block; }
.site-header nav { display: flex; gap: clamp(16px, 2.5vw, 32px); align-items: center; }
.site-header nav a {
  color: var(--gray); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color 0.25s var(--ease);
}
.site-header nav a:hover { color: var(--blue); }
.site-header nav a.cta {
  color: #fff; background: linear-gradient(120deg, var(--blue), var(--teal));
  padding: 8px 18px; border-radius: 100px; font-weight: 600;
}

/* ===== Breadcrumb ===== */
.crumb {
  max-width: 880px; margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 40px) 0;
  font-size: 13.5px; color: var(--gray-light);
}
.crumb a { color: var(--gray); text-decoration: none; }
.crumb a:hover { color: var(--blue); text-decoration: underline; }
.crumb span { margin: 0 7px; }

/* ===== Article ===== */
.doc {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 40px) 100px;
}
.doc .eyebrow {
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--teal); font-weight: 700; margin-bottom: 16px;
}
.doc h1 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.22;
  margin-bottom: 20px;
}
.doc .lead {
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: var(--gray); line-height: 1.8;
  padding-bottom: 30px; margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.doc h2 {
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 700; letter-spacing: -0.01em;
  margin: 52px 0 16px; padding-top: 6px;
}
.doc h3 {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 600; margin: 32px 0 10px; color: var(--ink);
}
.doc p { margin-bottom: 16px; color: var(--gray); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul, .doc ol { margin: 0 0 20px; padding-left: 4px; list-style: none; }
.doc ol { counter-reset: item; }
.doc ul li, .doc ol li {
  position: relative; padding-left: 22px; margin-bottom: 9px; color: var(--gray);
}
.doc ul li::before {
  content: ""; position: absolute; left: 2px; top: 0.68em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--teal);
}
.doc ol li { counter-increment: item; padding-left: 28px; }
.doc ol li::before {
  content: counter(item); position: absolute; left: 0; top: 0.05em;
  font-size: 12px; font-weight: 700; color: var(--blue);
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(25,153,189,0.10);
  display: flex; align-items: center; justify-content: center;
}
.doc a { color: var(--blue); text-decoration: none; font-weight: 500; }
.doc a:hover { text-decoration: underline; }

/* Callout box */
.note {
  background: linear-gradient(120deg, rgba(25,153,189,0.05), rgba(29,169,179,0.05));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 28px 0;
}
.note h4 {
  font-size: 0.95rem; font-weight: 700; color: var(--blue);
  margin-bottom: 8px; letter-spacing: 0.01em;
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

/* Table */
.doc table {
  width: 100%; border-collapse: collapse; margin: 24px 0 28px;
  font-size: 0.94rem;
}
.doc th, .doc td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.doc th {
  font-weight: 600; color: var(--ink); background: rgba(25,153,189,0.045);
  border-bottom: 1px solid rgba(25,153,189,0.2);
  font-size: 0.9rem; letter-spacing: 0.01em;
}
.doc td { color: var(--gray); }

/* Tag row */
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 8px; }
.tags span {
  font-size: 11.5px; font-weight: 600; color: var(--blue);
  background: rgba(25,153,189,0.08); padding: 5px 11px; border-radius: 100px;
}

/* Related links */
.related {
  margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--line);
}
.related h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-grid a {
  display: block; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.related-grid a small {
  display: block; font-weight: 400; font-size: 0.85rem;
  color: var(--gray-light); margin-top: 4px;
}
.related-grid a:hover {
  border-color: transparent; transform: translateY(-3px);
  box-shadow: 0 16px 30px -18px rgba(25,153,189,0.4); text-decoration: none;
}

/* CTA */
.doc-cta {
  margin-top: 48px; padding: 34px 30px; text-align: center;
  border-radius: 20px;
  background: linear-gradient(180deg, #f6fcfd 0%, #e9f7f9 100%);
  border: 1px solid var(--line);
}
.doc-cta h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.doc-cta p { color: var(--gray); margin-bottom: 20px; font-size: 0.97rem; }
.doc-cta a.btn {
  display: inline-block;
  background: linear-gradient(120deg, var(--blue), var(--teal));
  color: #fff; text-decoration: none; font-weight: 600;
  padding: 13px 30px; border-radius: 100px; font-size: 0.98rem;
  box-shadow: 0 14px 30px -14px rgba(29,169,179,0.55);
  transition: transform 0.3s var(--ease);
}
.doc-cta a.btn:hover { transform: translateY(-2px); text-decoration: none; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfc 100%);
  padding: 44px clamp(20px, 5vw, 64px) 40px;
}
.foot-inner {
  max-width: 880px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.foot-inner .fb {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 0.14em; font-size: 15px; color: var(--ink);
  text-decoration: none;
}
.foot-inner .fb img { width: 20px; height: 20px; object-fit: contain; }
.foot-inner .copy { font-size: 12.5px; color: var(--gray-light); }
.foot-links {
  max-width: 880px; margin: 26px auto 0; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 13px;
}
.foot-links a { color: var(--gray); text-decoration: none; }
.foot-links a:hover { color: var(--blue); text-decoration: underline; }

@media (max-width: 700px) {
  .related-grid { grid-template-columns: 1fr; }
  .site-header nav a:not(.cta) { display: none; }
  .doc table { font-size: 0.87rem; }
  .doc th, .doc td { padding: 10px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* 'the' in brand wordmark — thin, lighter, lowercase (matches CI) */
.brand-the {
  font-weight: 300;
  color: var(--gray-light);
  letter-spacing: 0.02em;
  margin-right: 0.34em;
  text-transform: lowercase;
}
